@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | * @param array $fieldIds Array of field IDs |
| 54 | 54 | * @param array $context |
| 55 | 55 | * |
| 56 | - * @return bool |
|
| 56 | + * @return boolean|null |
|
| 57 | 57 | */ |
| 58 | 58 | public function deleteFieldData(VersionInfo $versionInfo, array $fieldIds, array $context) |
| 59 | 59 | { |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | * @param \eZ\Publish\SPI\Persistence\Content\Field $field |
| 80 | 80 | * @param array $context |
| 81 | 81 | * |
| 82 | - * @return \eZ\Publish\SPI\Search\Field[] |
|
| 82 | + * @return boolean |
|
| 83 | 83 | */ |
| 84 | 84 | public function getIndexData(VersionInfo $versionInfo, Field $field, array $context) |
| 85 | 85 | { |
@@ -428,7 +428,7 @@ |
||
| 428 | 428 | * |
| 429 | 429 | * @param \eZ\Publish\Core\FieldType\Value $value |
| 430 | 430 | * |
| 431 | - * @return mixed |
|
| 431 | + * @return boolean |
|
| 432 | 432 | */ |
| 433 | 433 | protected function getSortInfo(BaseValue $value) |
| 434 | 434 | { |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | * |
| 46 | 46 | * @param mixed $data |
| 47 | 47 | * |
| 48 | - * @return mixed |
|
| 48 | + * @return EnhancedSelectionValue |
|
| 49 | 49 | */ |
| 50 | 50 | public function convertFieldValueFromForm($data) |
| 51 | 51 | { |
@@ -161,7 +161,7 @@ |
||
| 161 | 161 | $rows = $statement->fetchAll(PDO::FETCH_ASSOC); |
| 162 | 162 | |
| 163 | 163 | return array_map( |
| 164 | - function (array $row) { |
|
| 164 | + function(array $row) { |
|
| 165 | 165 | return $row['identifier']; |
| 166 | 166 | }, |
| 167 | 167 | $rows |
@@ -50,8 +50,7 @@ |
||
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | $hash = is_array($value['identifiers']) ? |
| 53 | - $value['identifiers'] : |
|
| 54 | - array($value['identifiers']); |
|
| 53 | + $value['identifiers'] : array($value['identifiers']); |
|
| 55 | 54 | |
| 56 | 55 | return $this->fieldType->fromHash($hash); |
| 57 | 56 | } |