@@ -24,13 +24,13 @@ discard block |
||
| 24 | 24 | |
| 25 | 25 | if ($this->usingLegacyFieldType()) { |
| 26 | 26 | $rows = array(); |
| 27 | - foreach($fieldValue as $data) { |
|
| 27 | + foreach ($fieldValue as $data) { |
|
| 28 | 28 | $rows[] = new \EzSystems\MatrixBundle\FieldType\Matrix\Row($data); |
| 29 | 29 | } |
| 30 | 30 | return new \EzSystems\MatrixBundle\FieldType\Matrix\Value($rows); |
| 31 | 31 | } else { |
| 32 | 32 | $rows = array(); |
| 33 | - foreach($fieldValue as $data) { |
|
| 33 | + foreach ($fieldValue as $data) { |
|
| 34 | 34 | $rows[] = new \EzSystems\EzPlatformMatrixFieldtype\FieldType\Value\Row($data); |
| 35 | 35 | } |
| 36 | 36 | return new \EzSystems\EzPlatformMatrixFieldtype\FieldType\Value($rows); |
@@ -42,11 +42,11 @@ discard block |
||
| 42 | 42 | $data = array(); |
| 43 | 43 | |
| 44 | 44 | if ($this->usingLegacyFieldType()) { |
| 45 | - foreach($fieldValue->getRows() as $row) { |
|
| 45 | + foreach ($fieldValue->getRows() as $row) { |
|
| 46 | 46 | $data[] = $row->toArray(); |
| 47 | 47 | } |
| 48 | 48 | } else { |
| 49 | - foreach($fieldValue->getRows() as $row) { |
|
| 49 | + foreach ($fieldValue->getRows() as $row) { |
|
| 50 | 50 | $data[] = $row->getCells(); |
| 51 | 51 | } |
| 52 | 52 | } |
@@ -545,7 +545,7 @@ discard block |
||
| 545 | 545 | $locations = $locationService->loadLocations($content->contentInfo); |
| 546 | 546 | if (count($locations) > 1) { |
| 547 | 547 | $otherParentLocations = array(); |
| 548 | - foreach($locations as $otherLocation) { |
|
| 548 | + foreach ($locations as $otherLocation) { |
|
| 549 | 549 | if ($otherLocation->id != $location->id) { |
| 550 | 550 | $otherParentLocations[] = $otherLocation->parentLocationId; |
| 551 | 551 | } |
@@ -596,7 +596,7 @@ discard block |
||
| 596 | 596 | } |
| 597 | 597 | |
| 598 | 598 | $attributes = array(); |
| 599 | - foreach($languages as $lang) { |
|
| 599 | + foreach ($languages as $lang) { |
|
| 600 | 600 | foreach ($content->getFieldsByLanguage($lang) as $fieldIdentifier => $field) { |
| 601 | 601 | $fieldDefinition = $contentType->getFieldDefinition($fieldIdentifier); |
| 602 | 602 | $fieldValue = $this->fieldHandlerManager->fieldValueToHash( |
@@ -744,7 +744,7 @@ discard block |
||
| 744 | 744 | }, |
| 745 | 745 | array_filter( |
| 746 | 746 | $this->repository->getContentLanguageService()->loadLanguages(), |
| 747 | - function ($language) { |
|
| 747 | + function($language) { |
|
| 748 | 748 | return $language->enabled; |
| 749 | 749 | } |
| 750 | 750 | ) |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | protected $ioDecorator; |
| 11 | 11 | protected $ioService; |
| 12 | 12 | |
| 13 | - public function __construct($ioRootDir, UrlDecorator $ioDecorator=null, $ioService=null) |
|
| 13 | + public function __construct($ioRootDir, UrlDecorator $ioDecorator = null, $ioService = null) |
|
| 14 | 14 | { |
| 15 | 15 | $this->ioRootDir = $ioRootDir; |
| 16 | 16 | $this->ioDecorator = $ioDecorator; |