@@ -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 | } |
@@ -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 | |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | if (is_string($key) && is_string($value)) { |
| 32 | 32 | return array('identifier' => $key, 'attribute' => $value); |
| 33 | 33 | } |
| 34 | - if (!is_array($value) || !isset($value['identifier']) || ! isset($value['attribute'])) { |
|
| 34 | + if (!is_array($value) || !isset($value['identifier']) || !isset($value['attribute'])) { |
|
| 35 | 35 | throw new InvalidStepDefinitionException("Invalid reference definition for reference number $key"); |
| 36 | 36 | } |
| 37 | 37 | return $value; |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | if (is_object($value) || is_resource($value)) { |
| 51 | 51 | return false; |
| 52 | 52 | } |
| 53 | - foreach($value as $subValue) { |
|
| 53 | + foreach ($value as $subValue) { |
|
| 54 | 54 | if (!$this->isValidReferenceValue($subValue)) { |
| 55 | 55 | return false; |
| 56 | 56 | } |