diff options
author | Alex Bilbie <alex@alexbilbie.com> | 2012-06-02 12:07:47 +0200 |
---|---|---|
committer | Alex Bilbie <alex@alexbilbie.com> | 2012-06-02 12:07:47 +0200 |
commit | ed944a3c70a0bad158cd5a6ca5ce1f2e717aff5d (patch) | |
tree | efe969ad1ab4c8eec3f9af743f49a51c82a13a93 /system/core/Router.php | |
parent | f3b95d383806a9366de9a526a37d78287a09d8b6 (diff) |
Replaced `==` with `===` and `!=` with `!==` in /system/core
Diffstat (limited to 'system/core/Router.php')
-rwxr-xr-x | system/core/Router.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/system/core/Router.php b/system/core/Router.php index 5ea13797b..93875bdd9 100755 --- a/system/core/Router.php +++ b/system/core/Router.php @@ -165,7 +165,7 @@ class CI_Router { $this->uri->_fetch_uri_string(); // Is there a URI string? If not, the default controller specified in the "routes" file will be shown. - if ($this->uri->uri_string == '') + if ($this->uri->uri_string === '') { return $this->_set_default_controller(); } @@ -435,7 +435,7 @@ class CI_Router { */ public function fetch_method() { - return ($this->method == $this->fetch_class()) ? 'index' : $this->method; + return ($this->method === $this->fetch_class()) ? 'index' : $this->method; } // -------------------------------------------------------------------- @@ -483,14 +483,14 @@ class CI_Router { $this->set_directory($routing['directory']); } - if (isset($routing['controller']) && $routing['controller'] != '') + if (isset($routing['controller']) && $routing['controller'] !== '') { $this->set_class($routing['controller']); } if (isset($routing['function'])) { - $routing['function'] = ($routing['function'] == '') ? 'index' : $routing['function']; + $routing['function'] = ($routing['function'] === '') ? 'index' : $routing['function']; $this->set_method($routing['function']); } } |