@@ -90,6 +90,9 @@ |
||
| 90 | 90 | ); |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | + /** |
|
| 94 | + * @param string $fileName |
|
| 95 | + */ |
|
| 93 | 96 | protected function getClassNameFromFile($fileName) |
| 94 | 97 | { |
| 95 | 98 | $parts = explode('_', pathinfo($fileName, PATHINFO_FILENAME), 2); |
@@ -179,7 +179,7 @@ |
||
| 179 | 179 | * @throws \InvalidArgumentException When trying to set |
| 180 | 180 | * |
| 181 | 181 | * @param \eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType |
| 182 | - * @return boolean |
|
| 182 | + * @return false|null |
|
| 183 | 183 | */ |
| 184 | 184 | protected function setReferences($contentType) |
| 185 | 185 | { |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | 25 | * @param string $stringIdentifier |
| 26 | - * @return mixed |
|
| 26 | + * @return integer |
|
| 27 | 27 | */ |
| 28 | 28 | public function isReference($stringIdentifier) |
| 29 | 29 | { |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | !isset($match['parent_location_id']) && |
| 44 | 44 | !isset($match['parent_location_remote_id']) |
| 45 | 45 | ) { |
| 46 | - throw new \Exception('Either the ID or remote ID of a content, the ID or remote ID of a location or the id or remote ID |
|
| 46 | + throw new \Exception('Either the ID or remote ID of a content, the ID or remote ID of a location or the id or remote ID |
|
| 47 | 47 | of the parent location of the contents you want to create a new location are required to create a new location.'); |
| 48 | 48 | } |
| 49 | 49 | |