@@ -141,6 +141,9 @@ |
||
| 141 | 141 | return $this->validateListItems(array_slice($keys, $count, count($list) - $count)); |
| 142 | 142 | } |
| 143 | 143 | |
| 144 | + /** |
|
| 145 | + * @param integer[] $array |
|
| 146 | + */ |
|
| 144 | 147 | private function validateListItems($array) |
| 145 | 148 | { |
| 146 | 149 | foreach ($array as $item) { |
@@ -92,13 +92,13 @@ |
||
| 92 | 92 | return $this->validateList($value); |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | - private function convertToArray($value) |
|
| 96 | - { |
|
| 97 | - if (!is_array($value)) { |
|
| 98 | - $value = json_decode(json_encode($value), true); |
|
| 99 | - } |
|
| 100 | - return $value; |
|
| 101 | - } |
|
| 95 | + private function convertToArray($value) |
|
| 96 | + { |
|
| 97 | + if (!is_array($value)) { |
|
| 98 | + $value = json_decode(json_encode($value), true); |
|
| 99 | + } |
|
| 100 | + return $value; |
|
| 101 | + } |
|
| 102 | 102 | |
| 103 | 103 | |
| 104 | 104 | /** |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | return true; |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | - return $this->executePropertiesValidation($this->convertToArray( $value )); |
|
| 73 | + return $this->executePropertiesValidation($this->convertToArray($value)); |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | private function executePropertiesValidation($value) |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | |
| 95 | 95 | private function convertToArray($value) |
| 96 | 96 | { |
| 97 | - if (!is_array($value)) { |
|
| 97 | + if (!is_array($value)) { |
|
| 98 | 98 | $value = json_decode(json_encode($value), true); |
| 99 | 99 | } |
| 100 | 100 | return $value; |