@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | if (count(array_filter(array_keys($rule[$key]), 'is_string')) === 0) { |
| 39 | - throw new \InvalidArgumentException('Rule option ' . $key . ' must be a an associative array'); |
|
| 39 | + throw new \InvalidArgumentException('Rule option '.$key.' must be a an associative array'); |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | } |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | if (!is_bool($rule[$key])) { |
| 51 | - throw new \InvalidArgumentException('Rule option ' . $key . ' must be true or false'); |
|
| 51 | + throw new \InvalidArgumentException('Rule option '.$key.' must be true or false'); |
|
| 52 | 52 | } |
| 53 | 53 | } |
| 54 | 54 | |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | if (count(array_filter(array_keys($rule[$key]), 'is_string')) > 0) { |
| 62 | - throw new \InvalidArgumentException('Rule option ' . $key |
|
| 62 | + throw new \InvalidArgumentException('Rule option '.$key |
|
| 63 | 63 | . ' must be a sequential array, not an associative array'); |
| 64 | 64 | } |
| 65 | 65 | } |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | |
| 71 | 71 | foreach ($rule as $name => $value) { |
| 72 | 72 | if (!in_array($name, $validKeys)) { |
| 73 | - throw new \InvalidArgumentException('Invalid rule option: ' . $name); |
|
| 73 | + throw new \InvalidArgumentException('Invalid rule option: '.$name); |
|
| 74 | 74 | } |
| 75 | 75 | } |
| 76 | 76 | } |