Completed
Pull Request — 1.0 (#53)
by Harald
07:01
created
src/Transfer/EzPlatform/Repository/Manager/ContentTypeManager.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Transfer/EzPlatform/Repository/Manager/LocationManager.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Transfer/EzPlatform/Repository/Manager/UserManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Transfer/EzPlatform/Repository/Manager/LanguageManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.