@@ -85,7 +85,7 @@ |
||
| 85 | 85 | * @param ObjectInterface|EzPlatformObject $object |
| 86 | 86 | * @param bool $throwException |
| 87 | 87 | * |
| 88 | - * @return ContentType|false |
|
| 88 | + * @return ContentType |
|
| 89 | 89 | * |
| 90 | 90 | * @throws NotFoundException |
| 91 | 91 | */ |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | try { |
| 96 | 96 | $contentType = $this->contentTypeService->loadContentTypeByIdentifier($object->data['identifier']); |
| 97 | 97 | } catch (NotFoundException $notFoundException) { |
| 98 | - if($throwException) { |
|
| 98 | + if ($throwException) { |
|
| 99 | 99 | throw $notFoundException; |
| 100 | 100 | } |
| 101 | 101 | } |
@@ -109,7 +109,7 @@ |
||
| 109 | 109 | * @param int $id |
| 110 | 110 | * @param bool $throwException |
| 111 | 111 | * |
| 112 | - * @return Location|false |
|
| 112 | + * @return Location |
|
| 113 | 113 | */ |
| 114 | 114 | public function findById($id, $throwException = false) |
| 115 | 115 | { |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | $user = $this->userService->loadUserByLogin($object->data['username']); |
| 91 | 91 | } |
| 92 | 92 | } catch (NotFoundException $notFoundException) { |
| 93 | - if($throwException) { |
|
| 93 | + if ($throwException) { |
|
| 94 | 94 | throw $notFoundException; |
| 95 | 95 | } |
| 96 | 96 | } |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | |
| 142 | 142 | $user = $this->find($object, true); |
| 143 | 143 | |
| 144 | - if($user) { |
|
| 144 | + if ($user) { |
|
| 145 | 145 | // Populate struct |
| 146 | 146 | $userUpdateStruct = $this->userService->newUserUpdateStruct(); |
| 147 | 147 | $object->getMapper()->getNewUserUpdateStruct($userUpdateStruct); |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | try { |
| 84 | 84 | $language = $this->languageService->loadLanguage($object->data['code']); |
| 85 | 85 | } catch (NotFoundException $notFoundException) { |
| 86 | - if($throwExceptions) { |
|
| 86 | + if ($throwExceptions) { |
|
| 87 | 87 | throw $notFoundException; |
| 88 | 88 | } |
| 89 | 89 | } |