1
0
mirror of https://github.com/Intervention/image.git synced 2025-09-03 02:42:45 +02:00

Logical operators

Use && and || logical operators instead of and and or.
This commit is contained in:
MathiasReker
2022-07-04 17:43:51 +02:00
parent 43fef9cdf2
commit b17d7b9812
2 changed files with 6 additions and 6 deletions

View File

@@ -201,9 +201,9 @@ class Color extends AbstractColor
];
return (
$delta['r'] > $color_tolerance or
$delta['g'] > $color_tolerance or
$delta['b'] > $color_tolerance or
$delta['r'] > $color_tolerance ||
$delta['g'] > $color_tolerance ||
$delta['b'] > $color_tolerance ||
$delta['a'] > $alpha_tolerance
);
}

View File

@@ -193,9 +193,9 @@ class Color extends AbstractColor
];
return (
$delta['r'] > $color_tolerance or
$delta['g'] > $color_tolerance or
$delta['b'] > $color_tolerance or
$delta['r'] > $color_tolerance ||
$delta['g'] > $color_tolerance ||
$delta['b'] > $color_tolerance ||
$delta['a'] > $alpha_tolerance
);
}