diff --git a/lib/Cake/Console/Command/Task/ExtractTask.php b/lib/Cake/Console/Command/Task/ExtractTask.php index b6ac07302..d616839cd 100644 --- a/lib/Cake/Console/Command/Task/ExtractTask.php +++ b/lib/Cake/Console/Command/Task/ExtractTask.php @@ -398,7 +398,7 @@ class ExtractTask extends AppShell { } list($type, $string, $line) = $countToken; - if (($type == T_STRING) && ($string == $functionName) && ($firstParenthesis === '(')) { + if (($type == T_STRING) && ($string === $functionName) && ($firstParenthesis === '(')) { $position = $count; $depth = 0; diff --git a/lib/Cake/Test/Case/Network/Email/CakeEmailTest.php b/lib/Cake/Test/Case/Network/Email/CakeEmailTest.php index b91e66e80..76be238c2 100644 --- a/lib/Cake/Test/Case/Network/Email/CakeEmailTest.php +++ b/lib/Cake/Test/Case/Network/Email/CakeEmailTest.php @@ -2096,7 +2096,7 @@ class CakeEmailTest extends CakeTestCase { $result['html'] = false; $length = count($message); for ($i = 0; $i < $length; ++$i) { - if ($message[$i] == $boundary) { + if ($message[$i] === $boundary) { $flag = false; $type = ''; while (!preg_match('/^$/', $message[$i])) { diff --git a/lib/Cake/Test/Case/Utility/DebuggerTest.php b/lib/Cake/Test/Case/Utility/DebuggerTest.php index 7c5ec5802..0379e4f4d 100644 --- a/lib/Cake/Test/Case/Utility/DebuggerTest.php +++ b/lib/Cake/Test/Case/Utility/DebuggerTest.php @@ -540,8 +540,8 @@ TEXT; Debugger::dump($var, 1); $result = ob_get_clean(); - $open = php_sapi_name() == 'cli' ? "\n" : '
'; - $close = php_sapi_name() == 'cli' ? "\n" : ''; + $open = php_sapi_name() === 'cli' ? "\n" : '
'; + $close = php_sapi_name() === 'cli' ? "\n" : ''; $expected = <<