Completed
Push — tree_move_visibility ( 733279...093ea4 )
by André
21:39
created
Core/Persistence/Legacy/Content/Location/Gateway/DoctrineDatabase.php 1 patch
Doc Comments   +26 added lines, -23 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      *
92 92
      * @todo optimize
93 93
      *
94
-     * @param mixed $remoteId
94
+     * @param string $remoteId
95 95
      *
96 96
      * @return array
97 97
      */
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
     /**
247 247
      * Returns data for the first level children of the location identified by given $locationId.
248 248
      *
249
-     * @param mixed $locationId
249
+     * @param integer $locationId
250 250
      *
251 251
      * @return array
252 252
      */
@@ -380,6 +380,9 @@  discard block
 block discarded – undo
380 380
         }
381 381
     }
382 382
 
383
+    /**
384
+     * @param string $pathString
385
+     */
383 386
     private function isHiddenByParent($pathString, array $rows)
384 387
     {
385 388
         $parentNodeIds = explode('/', trim($pathString, '/'));
@@ -579,10 +582,10 @@  discard block
 block discarded – undo
579 582
      * Make the location identified by $locationId1 refer to the Content
580 583
      * referred to by $locationId2 and vice versa.
581 584
      *
582
-     * @param mixed $locationId1
583
-     * @param mixed $locationId2
585
+     * @param integer $locationId1
586
+     * @param integer $locationId2
584 587
      *
585
-     * @return bool
588
+     * @return boolean|null
586 589
      */
587 590
     public function swap($locationId1, $locationId2)
588 591
     {
@@ -739,7 +742,7 @@  discard block
 block discarded – undo
739 742
      * Create an entry in the node assignment table.
740 743
      *
741 744
      * @param \eZ\Publish\SPI\Persistence\Content\Location\CreateStruct $createStruct
742
-     * @param mixed $parentNodeId
745
+     * @param string $parentNodeId
743 746
      * @param int $type
744 747
      */
745 748
     public function createNodeAssignment(CreateStruct $createStruct, $parentNodeId, $type = self::NODE_ASSIGNMENT_OP_CODE_CREATE_NOP)
@@ -867,8 +870,8 @@  discard block
 block discarded – undo
867 870
      *
868 871
      * Convert existing node assignments into real locations.
869 872
      *
870
-     * @param mixed $contentId
871
-     * @param mixed $versionNo
873
+     * @param integer $contentId
874
+     * @param integer $versionNo
872 875
      */
873 876
     public function createLocationsFromNodeAssignments($contentId, $versionNo)
874 877
     {
@@ -936,8 +939,8 @@  discard block
 block discarded – undo
936 939
     /**
937 940
      * Updates all Locations of content identified with $contentId with $versionNo.
938 941
      *
939
-     * @param mixed $contentId
940
-     * @param mixed $versionNo
942
+     * @param integer $contentId
943
+     * @param integer $versionNo
941 944
      */
942 945
     public function updateLocationsContentVersionNo($contentId, $versionNo)
943 946
     {
@@ -1096,8 +1099,8 @@  discard block
 block discarded – undo
1096 1099
      * the node identified by given $locationId (current main node).
1097 1100
      * Assumes that content has more than one location.
1098 1101
      *
1099
-     * @param mixed $contentId
1100
-     * @param mixed $locationId
1102
+     * @param integer $contentId
1103
+     * @param integer $locationId
1101 1104
      *
1102 1105
      * @return array
1103 1106
      */
@@ -1133,9 +1136,9 @@  discard block
 block discarded – undo
1133 1136
      *
1134 1137
      * The associated content object is left untouched.
1135 1138
      *
1136
-     * @param mixed $locationId
1139
+     * @param integer $locationId
1137 1140
      *
1138
-     * @return bool
1141
+     * @return boolean|null
1139 1142
      */
1140 1143
     public function trashLocation($locationId)
1141 1144
     {
@@ -1164,8 +1167,8 @@  discard block
 block discarded – undo
1164 1167
      * at the old position. If this is not possible ( because the old location
1165 1168
      * does not exist any more) and exception is thrown.
1166 1169
      *
1167
-     * @param mixed $locationId
1168
-     * @param mixed|null $newParentId
1170
+     * @param integer $locationId
1171
+     * @param integer $newParentId
1169 1172
      *
1170 1173
      * @return \eZ\Publish\SPI\Persistence\Content\Location
1171 1174
      */
@@ -1339,10 +1342,10 @@  discard block
 block discarded – undo
1339 1342
     /**
1340 1343
      * Set section on all content objects in the subtree.
1341 1344
      *
1342
-     * @param mixed $pathString
1343
-     * @param mixed $sectionId
1345
+     * @param string $pathString
1346
+     * @param integer $sectionId
1344 1347
      *
1345
-     * @return bool
1348
+     * @return boolean|null
1346 1349
      */
1347 1350
     public function setSectionForSubtree($pathString, $sectionId)
1348 1351
     {
@@ -1408,10 +1411,10 @@  discard block
 block discarded – undo
1408 1411
      * Updates ezcontentobject_tree table for the given $contentId and eznode_assignment table for the given
1409 1412
      * $contentId, $parentLocationId and $versionNo
1410 1413
      *
1411
-     * @param mixed $contentId
1412
-     * @param mixed $locationId
1413
-     * @param mixed $versionNo version number, needed to update eznode_assignment table
1414
-     * @param mixed $parentLocationId parent location of location identified by $locationId, needed to update
1414
+     * @param integer $contentId
1415
+     * @param integer $locationId
1416
+     * @param integer $versionNo version number, needed to update eznode_assignment table
1417
+     * @param integer $parentLocationId parent location of location identified by $locationId, needed to update
1415 1418
      *        eznode_assignment table
1416 1419
      */
1417 1420
     public function changeMainLocation($contentId, $locationId, $versionNo, $parentLocationId)
Please login to merge, or discard this patch.