Completed
Branch master (ad3607)
by Gaetano
19:11
created
Core/DefinitionParser/PHPDefinitionParser.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -90,6 +90,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Core/Executor/ContentTypeManager.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -393,8 +393,7 @@
 block discarded – undo
393 393
                     $ret[$key] = $this->referenceResolver->getReferenceValue($val);
394 394
                 }
395 395
             }
396
-        }
397
-        else {
396
+        } else {
398 397
             $ret = $value;
399 398
 
400 399
             if ($this->referenceResolver->isReference($value)) {
Please login to merge, or discard this patch.
Core/Executor/RoleManager.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -287,7 +287,7 @@
 block discarded – undo
287 287
      *
288 288
      * @param \eZ\Publish\API\Repository\Values\User\Role $role
289 289
      * @param \eZ\Publish\API\Repository\RoleService $roleService
290
-     * @param array $policies
290
+     * @param array $policy
291 291
      */
292 292
     private function addPolicy(Role $role, RoleService $roleService, array $policy)
293 293
     {
Please login to merge, or discard this patch.
Core/Executor/TagManager.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
 
67 67
     /**
68 68
      * @param $object
69
-     * @return mixed
69
+     * @return false|null
70 70
      */
71 71
     protected function setReferences($object)
72 72
     {
Please login to merge, or discard this patch.
Core/ReferenceResolver/AbstractResolver.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Core/Loader/Filesystem.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,8 +85,7 @@
 block discarded – undo
85 85
                             );
86 86
                     }
87 87
                 }
88
-            }
89
-            else {
88
+            } else {
90 89
                 throw new \Exception("Path '$path' is neither a file nor directory");
91 90
             }
92 91
         }
Please login to merge, or discard this patch.
Core/ComplexField/ComplexFieldManager.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,7 @@
 block discarded – undo
32 32
         {
33 33
             $fieldService = $this->fieldTypeMap[$fieldTypeIdentifier];
34 34
             return $fieldService->createValue($fieldValueArray, $context);
35
-        }
36
-        else
35
+        } else
37 36
         {
38 37
             throw new \InvalidArgumentException("Field of type '$fieldTypeIdentifier' can not be handled as it does not have a complex field class defined");
39 38
         }
Please login to merge, or discard this patch.