@@ -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 | { |
@@ -117,7 +117,7 @@ |
||
117 | 117 | $rows = $statement->fetchAll(PDO::FETCH_ASSOC); |
118 | 118 | |
119 | 119 | return array_map( |
120 | - static function (array $row) { |
|
120 | + static function(array $row) { |
|
121 | 121 | return $row['identifier']; |
122 | 122 | }, |
123 | 123 | $rows |
@@ -52,8 +52,7 @@ |
||
52 | 52 | } |
53 | 53 | |
54 | 54 | $hash = is_array($value['identifiers']) ? |
55 | - $value['identifiers'] : |
|
56 | - [$value['identifiers']]; |
|
55 | + $value['identifiers'] : [$value['identifiers']]; |
|
57 | 56 | |
58 | 57 | return $this->fieldType->fromHash($hash); |
59 | 58 | } |