mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 01:38:41 +00:00
change to strict comparison
This commit is contained in:
parent
8c3d4fffa5
commit
868ad1d5c4
|
|
@ -86,7 +86,7 @@ final class Kernel
|
|||
$im = \imagecreatefromgif($inPath);
|
||||
}
|
||||
|
||||
if ($im == false) {
|
||||
if ($im === false) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ final class Skew
|
|||
$im = \imagecreatefromgif($inPath);
|
||||
}
|
||||
|
||||
if ($im == false) {
|
||||
if ($im === false) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -97,7 +97,7 @@ final class Skew
|
|||
}
|
||||
|
||||
$im = \imagerotate($im, $bestDegree, 1);
|
||||
if ($im == false) {
|
||||
if ($im === false) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ final class Thresholding
|
|||
$im = \imagecreatefromgif($inPath);
|
||||
}
|
||||
|
||||
if ($im == false) {
|
||||
if ($im === false) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user