1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-31 01:29:51 +02:00

Merge pull request #1172 from MathiasReker/0-logical-operators

Logical operators
This commit is contained in:
Oliver Vogel
2022-07-05 15:49:37 +02:00
committed by GitHub
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
);
}