@@ 175-186 (lines=12) @@ | ||
172 | * |
|
173 | * @return bool |
|
174 | */ |
|
175 | private function checkEncodedData(array $encodedData): bool |
|
176 | { |
|
177 | $isValid = true; |
|
178 | foreach ($encodedData as $locale => $namespaceResources) { |
|
179 | $isValid = |
|
180 | $isValid === true && $isValid = $this->checkNonEmptyString($locale) === true && |
|
181 | $isValid === true && $isValid = is_array($namespaceResources) === true && |
|
182 | $isValid === true && $isValid = $this->checkNamespaceResources($namespaceResources); |
|
183 | } |
|
184 | ||
185 | return $isValid; |
|
186 | } |
|
187 | ||
188 | /** |
|
189 | * @param array $namespaceResources |
|
@@ 193-204 (lines=12) @@ | ||
190 | * |
|
191 | * @return bool |
|
192 | */ |
|
193 | private function checkNamespaceResources(array $namespaceResources): bool |
|
194 | { |
|
195 | $isValid = true; |
|
196 | foreach ($namespaceResources as $namespace => $resources) { |
|
197 | $isValid = |
|
198 | $isValid === true && $isValid = $this->checkNonEmptyString($namespace) === true && |
|
199 | $isValid === true && $isValid = is_array($resources) === true && |
|
200 | $isValid === true && $isValid = $this->checkResources($resources); |
|
201 | } |
|
202 | ||
203 | return $isValid; |
|
204 | } |
|
205 | ||
206 | /** |
|
207 | * @param array $resources |