We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79a7025 commit 8f47124Copy full SHA for 8f47124
src/Generator.php
@@ -3,6 +3,7 @@
3
use DirectoryIterator;
4
use Exception;
5
use App;
6
+use Traversable;
7
8
class Generator
9
{
@@ -281,10 +282,10 @@ private function adjustArray(array $arr)
281
282
foreach ($arr as $key => $val) {
283
$key = $this->removeEscapeCharacter($this->adjustString($key));
284
- if (is_string($val)) {
285
- $res[$key] = $this->removeEscapeCharacter($this->adjustString($val));
286
- } else {
+ if (is_array($val)) {
287
$res[$key] = $this->adjustArray($val);
+ } else {
288
+ $res[$key] = $this->removeEscapeCharacter($this->adjustString($val));
289
}
290
291
return $res;
0 commit comments