@@ -136,10 +136,10 @@ discard block |
||
| 136 | 136 | * @param string|array $actual |
| 137 | 137 | */ |
| 138 | 138 | public static function contains($needle, $actual): void { |
| 139 | - if(!is_string($needle) AND !is_array($needle)) { |
|
| 139 | + if(!is_string($needle) and !is_array($needle)) { |
|
| 140 | 140 | Environment::testResult("The variable is not string or array.", false); |
| 141 | 141 | } elseif(is_string($actual)) { |
| 142 | - if($needle !== "" AND strpos($actual, $needle) !== FALSE) { |
|
| 142 | + if($needle !== "" and strpos($actual, $needle) !== FALSE) { |
|
| 143 | 143 | Environment::testResult(""); |
| 144 | 144 | } else { |
| 145 | 145 | Environment::testResult("$needle is not in the variable.", false); |
@@ -162,10 +162,10 @@ discard block |
||
| 162 | 162 | * @param string|array $actual |
| 163 | 163 | */ |
| 164 | 164 | public static function notContains($needle, $actual): void { |
| 165 | - if(!is_string($needle) AND !is_array($needle)) { |
|
| 165 | + if(!is_string($needle) and !is_array($needle)) { |
|
| 166 | 166 | Environment::testResult("The variable is not string or array.", false); |
| 167 | 167 | } elseif(is_string($actual)) { |
| 168 | - if($needle === "" OR strpos($actual, $needle) === FALSE) { |
|
| 168 | + if($needle === "" or strpos($actual, $needle) === FALSE) { |
|
| 169 | 169 | Environment::testResult(""); |
| 170 | 170 | } else { |
| 171 | 171 | Environment::testResult("$needle is in the variable.", false); |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | * @param string|array|\Countable $value |
| 188 | 188 | */ |
| 189 | 189 | public static function count(int $count, $value): void { |
| 190 | - if(!is_array($value) AND !$value instanceof \Countable) { |
|
| 190 | + if(!is_array($value) and !$value instanceof \Countable) { |
|
| 191 | 191 | Environment::testResult("The variable is not array or countable object.", false); |
| 192 | 192 | } elseif(count($value) === $count) { |
| 193 | 193 | Environment::testResult(""); |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | * @param string|array|\Countable $value |
| 204 | 204 | */ |
| 205 | 205 | public static function notCount(int $count, $value): void { |
| 206 | - if(!is_array($value) AND !$value instanceof \Countable) { |
|
| 206 | + if(!is_array($value) and !$value instanceof \Countable) { |
|
| 207 | 207 | Environment::testResult("The variable is not array or countable object.", false); |
| 208 | 208 | } elseif(count($value) === $count) { |
| 209 | 209 | $actual = count($value); |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | * @param mixed $value |
| 221 | 221 | */ |
| 222 | 222 | public static function type($type, $value): void { |
| 223 | - if(!is_object($type) AND !is_string($type)) { |
|
| 223 | + if(!is_object($type) and !is_string($type)) { |
|
| 224 | 224 | Environment::testResult("Type must be string or object.", false); |
| 225 | 225 | } elseif(in_array($type, ["array", "bool", "callable", "float", |
| 226 | 226 | "int", "integer", "null", "object", "resource", "scalar", "string"], true)) { |