@@ -105,10 +105,10 @@ discard block |
||
105 | 105 | * @param string|array $actual |
106 | 106 | */ |
107 | 107 | public static function contains($needle, $actual): void { |
108 | - if(!is_string($needle) AND !is_array($needle)) { |
|
108 | + if(!is_string($needle) and !is_array($needle)) { |
|
109 | 109 | Environment::testResult("The variable is not string or array.", false); |
110 | 110 | } elseif(is_string($actual)) { |
111 | - if($needle !== "" AND strpos($actual, $needle) !== FALSE) { |
|
111 | + if($needle !== "" and strpos($actual, $needle) !== FALSE) { |
|
112 | 112 | Environment::testResult("$needle is in the variable."); |
113 | 113 | } else { |
114 | 114 | Environment::testResult("$needle is not in the variable.", false); |
@@ -131,10 +131,10 @@ discard block |
||
131 | 131 | * @param string|array $actual |
132 | 132 | */ |
133 | 133 | public static function notContains($needle, $actual): void { |
134 | - if(!is_string($needle) AND !is_array($needle)) { |
|
134 | + if(!is_string($needle) and !is_array($needle)) { |
|
135 | 135 | Environment::testResult("The variable is not string or array.", false); |
136 | 136 | } elseif(is_string($actual)) { |
137 | - if($needle === "" OR strpos($actual, $needle) === FALSE) { |
|
137 | + if($needle === "" or strpos($actual, $needle) === FALSE) { |
|
138 | 138 | Environment::testResult("$needle is not in the variable."); |
139 | 139 | } else { |
140 | 140 | Environment::testResult("$needle is in the variable.", false); |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | * @param string|array|\Countable $value |
157 | 157 | */ |
158 | 158 | public static function count(int $count, $value): void { |
159 | - if(!is_array($value) AND !$value instanceof \Countable) { |
|
159 | + if(!is_array($value) and !$value instanceof \Countable) { |
|
160 | 160 | Environment::testResult("The variable is not array or countable object.", false); |
161 | 161 | } elseif(count($value) == $count) { |
162 | 162 | Environment::testResult("Count of the variable is $count."); |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | * @param string|array|\Countable $value |
173 | 173 | */ |
174 | 174 | public static function notCount(int $count, $value): void { |
175 | - if(!is_array($value) AND !$value instanceof \Countable) { |
|
175 | + if(!is_array($value) and !$value instanceof \Countable) { |
|
176 | 176 | Environment::testResult("The variable is not array or countable object.", false); |
177 | 177 | } elseif(count($value) == $count) { |
178 | 178 | $actual = count($value); |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | * @param mixed $value |
190 | 190 | */ |
191 | 191 | public static function type($type, $value): void { |
192 | - if(!is_object($type) AND !is_string($type)) { |
|
192 | + if(!is_object($type) and !is_string($type)) { |
|
193 | 193 | Environment::testResult("Type must be string or object.", false); |
194 | 194 | } elseif(in_array($type, ["array", "bool", "callable", "float", |
195 | 195 | "int", "integer", "null", "object", "resource", "scalar", "string"], true)) { |