@@ -445,7 +445,7 @@ |
||
445 | 445 | protected function sortPolicyLimitationsDefinitions(array &$limitations) |
446 | 446 | { |
447 | 447 | usort($limitations, function($l1, $l2) { |
448 | - if (($iComp = strcmp($l1['identifier'], $l2['identifier'])) != 0 ) { |
|
448 | + if (($iComp = strcmp($l1['identifier'], $l2['identifier'])) != 0) { |
|
449 | 449 | return $iComp; |
450 | 450 | } |
451 | 451 | if (is_int($l1['values']) || is_float($l1['values'])) { |
@@ -248,10 +248,10 @@ |
||
248 | 248 | $names = array(); |
249 | 249 | $descriptions = array(); |
250 | 250 | foreach ($objectStateGroup->languageCodes as $languageCode) { |
251 | - $names[$languageCode] = $objectStateGroup->getName($languageCode); |
|
251 | + $names[$languageCode] = $objectStateGroup->getName($languageCode); |
|
252 | 252 | } |
253 | 253 | foreach ($objectStateGroup->languageCodes as $languageCode) { |
254 | - $descriptions[$languageCode] = $objectStateGroup->getDescription($languageCode); |
|
254 | + $descriptions[$languageCode] = $objectStateGroup->getDescription($languageCode); |
|
255 | 255 | } |
256 | 256 | $groupData = array_merge( |
257 | 257 | $groupData, |
@@ -232,7 +232,7 @@ |
||
232 | 232 | |
233 | 233 | if ($input->getOption('todo')) { |
234 | 234 | foreach ($data as $migrationData) { |
235 | - $output->writeln("$migrationData", OutputInterface::OUTPUT_RAW|OutputInterface::VERBOSITY_QUIET); |
|
235 | + $output->writeln("$migrationData", OutputInterface::OUTPUT_RAW | OutputInterface::VERBOSITY_QUIET); |
|
236 | 236 | } |
237 | 237 | return 0; |
238 | 238 | } |
@@ -216,7 +216,7 @@ |
||
216 | 216 | |
217 | 217 | $multivalued = ($this->expectedResultsType($step) == self::$RESULT_TYPE_MULTIPLE); |
218 | 218 | |
219 | - if ($item instanceof AbstractCollection || is_array($item)) { |
|
219 | + if ($item instanceof AbstractCollection || is_array($item)) { |
|
220 | 220 | $items = $item; |
221 | 221 | } else { |
222 | 222 | $items = array($item); |
@@ -178,7 +178,7 @@ |
||
178 | 178 | return $this->matchConditions($values); |
179 | 179 | |
180 | 180 | default: |
181 | - throw new InvalidStepDefinitionException("Unknown until condition: '$key' when suspending a migration ".var_export($conditions, true)); |
|
181 | + throw new InvalidStepDefinitionException("Unknown until condition: '$key' when suspending a migration " . var_export($conditions, true)); |
|
182 | 182 | } |
183 | 183 | } |
184 | 184 | } |
@@ -58,25 +58,25 @@ |
||
58 | 58 | { |
59 | 59 | $format = array(); |
60 | 60 | if (0 != $dateInterval->y) { |
61 | - $format[] = $dateInterval->y.' years'; |
|
61 | + $format[] = $dateInterval->y . ' years'; |
|
62 | 62 | } |
63 | 63 | if (0 != $dateInterval->m) { |
64 | - $format[] = $dateInterval->m.' months'; |
|
64 | + $format[] = $dateInterval->m . ' months'; |
|
65 | 65 | } |
66 | 66 | if (0 != $dateInterval->d) { |
67 | - $format[] = $dateInterval->d.' days'; |
|
67 | + $format[] = $dateInterval->d . ' days'; |
|
68 | 68 | } |
69 | 69 | //if (0 < $dateInterval->h || 0 < $dateInterval->i || 0 < $dateInterval->s) { |
70 | 70 | // $format .= 'T'; |
71 | 71 | //} |
72 | 72 | if (0 != $dateInterval->h) { |
73 | - $format[] = $dateInterval->h.' hours'; |
|
73 | + $format[] = $dateInterval->h . ' hours'; |
|
74 | 74 | } |
75 | 75 | if (0 != $dateInterval->i) { |
76 | - $format[] = $dateInterval->i.' minutes'; |
|
76 | + $format[] = $dateInterval->i . ' minutes'; |
|
77 | 77 | } |
78 | 78 | if (0 != $dateInterval->s) { |
79 | - $format[] = $dateInterval->s.' seconds'; |
|
79 | + $format[] = $dateInterval->s . ' seconds'; |
|
80 | 80 | } |
81 | 81 | return implode(', ', $format); |
82 | 82 | } |
@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | |
3 | 3 | namespace Kaliop\eZMigrationBundle\Core\Matcher; |
4 | 4 | |
5 | -use eZ\Publish\API\Repository\Exceptions\UnauthorizedException ; |
|
5 | +use eZ\Publish\API\Repository\Exceptions\UnauthorizedException; |
|
6 | 6 | use eZ\Publish\API\Repository\Repository; |
7 | 7 | use eZ\Publish\API\Repository\Values\Content\Content; |
8 | 8 | use eZ\Publish\API\Repository\Values\Content\VersionInfo; |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | } |
212 | 212 | } else { |
213 | 213 | // negative $acceptedVersionNo means 'leave the last X versions', eg: -1 = leave the last version |
214 | - if ($i < $contentVersionsCount + $acceptedVersionNo) { |
|
214 | + if ($i < $contentVersionsCount + $acceptedVersionNo) { |
|
215 | 215 | $versions[$versionKey] = $versionInfo; |
216 | 216 | break; |
217 | 217 |