@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | } |
151 | 151 | |
152 | 152 | // allow to generate migrations for many entities |
153 | - if (strpos($matchValue, ',') !== false ) { |
|
153 | + if (strpos($matchValue, ',') !== false) { |
|
154 | 154 | $matchValue = explode(',', $matchValue); |
155 | 155 | } |
156 | 156 | |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | { |
261 | 261 | $migrationService = $this->getMigrationService(); |
262 | 262 | $executors = $migrationService->listExecutors(); |
263 | - foreach($executors as $key => $name) { |
|
263 | + foreach ($executors as $key => $name) { |
|
264 | 264 | $executor = $migrationService->getExecutor($name); |
265 | 265 | if (!$executor instanceof MigrationGeneratorInterface) { |
266 | 266 | unset($executors[$key]); |
@@ -234,11 +234,11 @@ |
||
234 | 234 | if ($mode != 'delete') { |
235 | 235 | $names = array(); |
236 | 236 | $descriptions = array(); |
237 | - foreach($objectStateGroup->languageCodes as $languageCode) { |
|
238 | - $names[$languageCode] = $objectStateGroup->getName($languageCode); |
|
237 | + foreach ($objectStateGroup->languageCodes as $languageCode) { |
|
238 | + $names[$languageCode] = $objectStateGroup->getName($languageCode); |
|
239 | 239 | } |
240 | - foreach($objectStateGroup->languageCodes as $languageCode) { |
|
241 | - $descriptions[$languageCode] = $objectStateGroup->getDescription($languageCode); |
|
240 | + foreach ($objectStateGroup->languageCodes as $languageCode) { |
|
241 | + $descriptions[$languageCode] = $objectStateGroup->getDescription($languageCode); |
|
242 | 242 | } |
243 | 243 | $groupData = array_merge( |
244 | 244 | $groupData, |
@@ -248,11 +248,11 @@ |
||
248 | 248 | if ($mode != 'delete') { |
249 | 249 | $names = array(); |
250 | 250 | $descriptions = array(); |
251 | - foreach($objectState->languageCodes as $languageCode) { |
|
252 | - $names[$languageCode] = $objectState->getName($languageCode); |
|
251 | + foreach ($objectState->languageCodes as $languageCode) { |
|
252 | + $names[$languageCode] = $objectState->getName($languageCode); |
|
253 | 253 | } |
254 | - foreach($objectState->languageCodes as $languageCode) { |
|
255 | - $descriptions[$languageCode] = $objectState->getDescription($languageCode); |
|
254 | + foreach ($objectState->languageCodes as $languageCode) { |
|
255 | + $descriptions[$languageCode] = $objectState->getDescription($languageCode); |
|
256 | 256 | } |
257 | 257 | $groupData = array_merge( |
258 | 258 | $groupData, |
@@ -114,7 +114,7 @@ |
||
114 | 114 | { |
115 | 115 | $migrationService = $this->migrationService; |
116 | 116 | $executors = $migrationService->listExecutors(); |
117 | - foreach($executors as $key => $name) { |
|
117 | + foreach ($executors as $key => $name) { |
|
118 | 118 | $executor = $migrationService->getExecutor($name); |
119 | 119 | if (!$executor instanceof MigrationGeneratorInterface) { |
120 | 120 | unset($executors[$key]); |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | |
105 | 105 | foreach ($contentIds as $contentId) { |
106 | 106 | $content = $this->repository->getContentService()->loadContent($contentId); |
107 | - foreach($this->repository->getLocationService()->loadLocations($content->contentInfo) as $location) { |
|
107 | + foreach ($this->repository->getLocationService()->loadLocations($content->contentInfo) as $location) { |
|
108 | 108 | $locations[$location->id] = $location; |
109 | 109 | } |
110 | 110 | } |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | |
125 | 125 | foreach ($remoteContentIds as $remoteContentId) { |
126 | 126 | $content = $this->repository->getContentService()->loadContentByRemoteId($remoteContentId); |
127 | - foreach($this->repository->getLocationService()->loadLocations($content->contentInfo) as $location) { |
|
127 | + foreach ($this->repository->getLocationService()->loadLocations($content->contentInfo) as $location) { |
|
128 | 128 | $locations[$location->id] = $location; |
129 | 129 | } |
130 | 130 | } |
@@ -71,7 +71,9 @@ discard block |
||
71 | 71 | if (!empty($sort)) { |
72 | 72 | $query->sortClauses = $this->getSortClauses($sort); |
73 | 73 | } |
74 | - if (isset($query->performCount)) $query->performCount = false; |
|
74 | + if (isset($query->performCount)) { |
|
75 | + $query->performCount = false; |
|
76 | + } |
|
75 | 77 | $query->filter = $this->getQueryCriterion($key, $values); |
76 | 78 | $results = $this->repository->getSearchService()->findLocations($query); |
77 | 79 | |
@@ -218,7 +220,9 @@ discard block |
||
218 | 220 | { |
219 | 221 | $query = new LocationQuery(); |
220 | 222 | $query->limit = self::INT_MAX_16BIT; |
221 | - if (isset($query->performCount)) $query->performCount = false; |
|
223 | + if (isset($query->performCount)) { |
|
224 | + $query->performCount = false; |
|
225 | + } |
|
222 | 226 | $query->filter = new Query\Criterion\ParentLocationId($parentLocationIds); |
223 | 227 | |
224 | 228 | $results = $this->repository->getSearchService()->findLocations($query); |
@@ -11,7 +11,7 @@ |
||
11 | 11 | protected $ioRootDir; |
12 | 12 | protected $ioDecorator; |
13 | 13 | |
14 | - public function __construct($ioRootDir, UrlDecorator $ioDecorator=null) |
|
14 | + public function __construct($ioRootDir, UrlDecorator $ioDecorator = null) |
|
15 | 15 | { |
16 | 16 | $this->ioRootDir = $ioRootDir; |
17 | 17 | $this->ioDecorator = $ioDecorator; |
@@ -133,7 +133,7 @@ |
||
133 | 133 | throw new \Exception("Invalid step definition: file '$fileName' for saving references already exists"); |
134 | 134 | } |
135 | 135 | |
136 | - if (! $this->referenceResolver instanceof EnumerableReferenceResolverInterface) { |
|
136 | + if (!$this->referenceResolver instanceof EnumerableReferenceResolverInterface) { |
|
137 | 137 | throw new \Exception("Can not save references as resolver is not enumerable"); |
138 | 138 | } |
139 | 139 |
@@ -98,7 +98,7 @@ |
||
98 | 98 | $refs = array(); |
99 | 99 | |
100 | 100 | foreach ($this->resolvers as $resolver) { |
101 | - if (! $resolver instanceof EnumerableReferenceResolverInterface) { |
|
101 | + if (!$resolver instanceof EnumerableReferenceResolverInterface) { |
|
102 | 102 | throw new \Exception("Could not enumerate references because of chained resolver of type: " . get_class($resolver)); |
103 | 103 | } |
104 | 104 |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | |
82 | 82 | switch ($key) { |
83 | 83 | case self::MATCH_AND: |
84 | - foreach($values as $subCriterion) { |
|
84 | + foreach ($values as $subCriterion) { |
|
85 | 85 | $value = $this->match($subCriterion); |
86 | 86 | if (!reset($value)) { |
87 | 87 | return $value; |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | return array(true); |
91 | 91 | |
92 | 92 | case self::MATCH_OR: |
93 | - foreach($values as $subCriterion) { |
|
93 | + foreach ($values as $subCriterion) { |
|
94 | 94 | $value = $this->match($subCriterion); |
95 | 95 | if (reset($value)) { |
96 | 96 | return $value; |