| @@ -80,7 +80,7 @@ | ||
| 80 | 80 | } | 
| 81 | 81 | |
| 82 | 82 | /** | 
| 83 | - * @return string[] | |
| 83 | + * @return integer[] | |
| 84 | 84 | */ | 
| 85 | 85 | public function listExecutors() | 
| 86 | 86 |      { | 
| @@ -648,7 +648,7 @@ | ||
| 648 | 648 | * @param string $contentTypeIdentifier | 
| 649 | 649 | * @param array $context | 
| 650 | 650 | * @throws \InvalidArgumentException | 
| 651 | - * @return mixed | |
| 651 | + * @return \Kaliop\eZMigrationBundle\API\Value\MigrationStep | |
| 652 | 652 | */ | 
| 653 | 653 | protected function getFieldValue($value, FieldDefinition $fieldDefinition, $contentTypeIdentifier, array $context = array()) | 
| 654 | 654 |      { | 
| @@ -112,7 +112,7 @@ | ||
| 112 | 112 | |
| 113 | 113 | /** | 
| 114 | 114 | * @todo cache this for faster access | 
| 115 | - * @return array | |
| 115 | + * @return integer[] | |
| 116 | 116 | */ | 
| 117 | 117 | protected function getGeneratingExecutors() | 
| 118 | 118 |      { | 
| @@ -50,7 +50,7 @@ discard block | ||
| 50 | 50 | /** | 
| 51 | 51 | * @param array $dsl | 
| 52 | 52 | * @param array $context | 
| 53 | - * @return true | |
| 53 | + * @return boolean | |
| 54 | 54 | * @throws \Exception | 
| 55 | 55 | */ | 
| 56 | 56 | protected function cancel($dsl, $context) | 
| @@ -70,7 +70,7 @@ discard block | ||
| 70 | 70 | /** | 
| 71 | 71 | * @param array $dsl | 
| 72 | 72 | * @param array $context | 
| 73 | - * @return true | |
| 73 | + * @return boolean | |
| 74 | 74 | * @throws \Exception | 
| 75 | 75 | */ | 
| 76 | 76 | protected function suspend($dsl, $context) | 
| @@ -48,7 +48,7 @@ | ||
| 48 | 48 | /** | 
| 49 | 49 | * @param array $dsl | 
| 50 | 50 | * @param array $context | 
| 51 | - * @return true | |
| 51 | + * @return boolean | |
| 52 | 52 | * @throws \Exception | 
| 53 | 53 | */ | 
| 54 | 54 | protected function send($dsl, $context) | 
| @@ -447,6 +447,9 @@ | ||
| 447 | 447 | ); | 
| 448 | 448 | } | 
| 449 | 449 | |
| 450 | + /** | |
| 451 | + * @param APIMigration $migration | |
| 452 | + */ | |
| 450 | 453 | protected function getEntityName($migration) | 
| 451 | 454 |      { | 
| 452 | 455 |          return end(explode('\\', get_class($migration))); | 
| @@ -652,6 +652,9 @@ discard block | ||
| 652 | 652 | return $fieldDefinitionUpdateStruct; | 
| 653 | 653 | } | 
| 654 | 654 | |
| 655 | + /** | |
| 656 | + * @param string $contentTypeIdentifier | |
| 657 | + */ | |
| 655 | 658 | protected function getFieldSettings($value, $fieldTypeIdentifier, $contentTypeIdentifier) | 
| 656 | 659 |      { | 
| 657 | 660 | // 1st update any references in the value array | 
| @@ -704,7 +707,7 @@ discard block | ||
| 704 | 707 | * | 
| 705 | 708 | * @param string|array $newValue if passed a string, we will use $lang as its language. If passed an array, it will be used as is - expected format [ "eng-GB": "Name", "fre-FR": "Nom", ... ] | 
| 706 | 709 | * @param string $lang ex: eng-GB. Not used when $newValue is an array | 
| 707 | - * @param array $currentValue current set of values in all known languages. Will be merged with $newValue, $newValue taking precedence | |
| 710 | + * @param string[] $currentValue current set of values in all known languages. Will be merged with $newValue, $newValue taking precedence | |
| 708 | 711 | * @return array in the format [ "eng-GB": "Name", "fre-FR": "Nom", ... ] | 
| 709 | 712 | */ | 
| 710 | 713 | protected function getMultilingualValue($newValue, $lang, $currentValue = array()) | 
| @@ -50,7 +50,9 @@ discard block | ||
| 50 | 50 | |
| 51 | 51 | $query = new LocationQuery(); | 
| 52 | 52 | $query->limit = self::INT_MAX_16BIT; | 
| 53 | - if (isset($query->performCount)) $query->performCount = false; | |
| 53 | +            if (isset($query->performCount)) { | |
| 54 | + $query->performCount = false; | |
| 55 | + } | |
| 54 | 56 | $query->filter = $this->getQueryCriterion($key, $values); | 
| 55 | 57 | $results = $this->repository->getSearchService()->findLocations($query); | 
| 56 | 58 | |
| @@ -196,7 +198,9 @@ discard block | ||
| 196 | 198 |      { | 
| 197 | 199 | $query = new LocationQuery(); | 
| 198 | 200 | $query->limit = self::INT_MAX_16BIT; | 
| 199 | - if (isset($query->performCount)) $query->performCount = false; | |
| 201 | +        if (isset($query->performCount)) { | |
| 202 | + $query->performCount = false; | |
| 203 | + } | |
| 200 | 204 | $query->filter = new Query\Criterion\ParentLocationId($parentLocationIds); | 
| 201 | 205 | |
| 202 | 206 | $results = $this->repository->getSearchService()->findLocations($query); | 
| @@ -85,7 +85,9 @@ discard block | ||
| 85 | 85 | |
| 86 | 86 | $query = new Query(); | 
| 87 | 87 | $query->limit = self::INT_MAX_16BIT; | 
| 88 | - if (isset($query->performCount)) $query->performCount = false; | |
| 88 | +                    if (isset($query->performCount)) { | |
| 89 | + $query->performCount = false; | |
| 90 | + } | |
| 89 | 91 | $query->filter = $this->getQueryCriterion($key, $values); | 
| 90 | 92 |                      switch ($key) { | 
| 91 | 93 | case 'content_type_id': | 
| @@ -206,7 +208,9 @@ discard block | ||
| 206 | 208 |      { | 
| 207 | 209 | $query = new Query(); | 
| 208 | 210 | $query->limit = self::INT_MAX_16BIT; | 
| 209 | - if (isset($query->performCount)) $query->performCount = false; | |
| 211 | +        if (isset($query->performCount)) { | |
| 212 | + $query->performCount = false; | |
| 213 | + } | |
| 210 | 214 | $query->filter = new Query\Criterion\ParentLocationId($parentLocationIds); | 
| 211 | 215 | $results = $this->repository->getSearchService()->findContent($query); | 
| 212 | 216 | |
| @@ -246,7 +250,9 @@ discard block | ||
| 246 | 250 |      { | 
| 247 | 251 | $query = new Query(); | 
| 248 | 252 | $query->limit = self::INT_MAX_16BIT; | 
| 249 | - if (isset($query->performCount)) $query->performCount = false; | |
| 253 | +        if (isset($query->performCount)) { | |
| 254 | + $query->performCount = false; | |
| 255 | + } | |
| 250 | 256 | $query->filter = new Query\Criterion\ContentTypeIdentifier($contentTypeIdentifiers); | 
| 251 | 257 | // sort objects by depth, lower to higher, so that deleting them has less chances of failure | 
| 252 | 258 | // NB: we only do this in eZP versions that allow depth sorting on content queries | 
| @@ -274,7 +280,9 @@ discard block | ||
| 274 | 280 |      { | 
| 275 | 281 | $query = new Query(); | 
| 276 | 282 | $query->limit = self::INT_MAX_16BIT; | 
| 277 | - if (isset($query->performCount)) $query->performCount = false; | |
| 283 | +        if (isset($query->performCount)) { | |
| 284 | + $query->performCount = false; | |
| 285 | + } | |
| 278 | 286 | $query->filter = new Query\Criterion\ContentTypeId($contentTypeIds); | 
| 279 | 287 | // sort objects by depth, lower to higher, so that deleting them has less chances of failure | 
| 280 | 288 | // NB: we only do this in eZP versions that allow depth sorting on content queries |