src/Config/ConfigJsonSerializer.php 1 location
|
@@ 88-97 (lines=10) @@
|
| 85 |
|
} |
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
private function objectsToArrays($data) |
| 89 |
|
{ |
| 90 |
|
$data = (array) $data; |
| 91 |
|
|
| 92 |
|
foreach ($data as $key => $value) { |
| 93 |
|
$data[$key] = is_object($value) ? $this->objectsToArrays($value) : $value; |
| 94 |
|
} |
| 95 |
|
|
| 96 |
|
return $data; |
| 97 |
|
} |
| 98 |
|
} |
| 99 |
|
|
src/Package/PackageJsonSerializer.php 1 location
|
@@ 532-541 (lines=10) @@
|
| 529 |
|
return $jsonData; |
| 530 |
|
} |
| 531 |
|
|
| 532 |
|
private function objectsToArrays($data) |
| 533 |
|
{ |
| 534 |
|
$data = (array) $data; |
| 535 |
|
|
| 536 |
|
foreach ($data as $key => $value) { |
| 537 |
|
$data[$key] = is_object($value) ? $this->objectsToArrays($value) : $value; |
| 538 |
|
} |
| 539 |
|
|
| 540 |
|
return $data; |
| 541 |
|
} |
| 542 |
|
|
| 543 |
|
private function assertVersionSupported($version, $path = null) |
| 544 |
|
{ |