Completed
Pull Request — master (#6518)
by Loz
09:39
created
src/ORM/ArrayList.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      * Returns an Iterator for this ArrayList.
81 81
      * This function allows you to use ArrayList in foreach loops
82 82
      *
83
-     * @return ArrayIterator
83
+     * @return \Generator
84 84
      */
85 85
     public function getIterator()
86 86
     {
@@ -746,7 +746,7 @@  discard block
 block discarded – undo
746 746
     /**
747 747
      * Returns item stored in list with index $key
748 748
      *
749
-     * @param mixed $offset
749
+     * @param integer $offset
750 750
      * @return DataObject
751 751
      */
752 752
     public function offsetGet($offset)
Please login to merge, or discard this patch.
src/ORM/Map.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,6 +46,7 @@  discard block
 block discarded – undo
46 46
      * Set the key field for this map.
47 47
      *
48 48
      * @var string $keyField
49
+     * @param string $keyField
49 50
      */
50 51
     public function setKeyField($keyField)
51 52
     {
@@ -56,6 +57,7 @@  discard block
 block discarded – undo
56 57
      * Set the value field for this map.
57 58
      *
58 59
      * @var string $valueField
60
+     * @param string $valueField
59 61
      */
60 62
     public function setValueField($valueField)
61 63
     {
@@ -105,6 +107,7 @@  discard block
 block discarded – undo
105 107
      *
106 108
      * @var string $key
107 109
      * @var mixed $value
110
+     * @param string $value
108 111
      * @return $this
109 112
      */
110 113
     public function unshift($key, $value)
@@ -126,6 +129,7 @@  discard block
 block discarded – undo
126 129
      *
127 130
      * @var string $key
128 131
      * @var mixed $value
132
+     * @param string $value
129 133
      * @return $this
130 134
      */
131 135
     public function push($key, $value)
@@ -255,7 +259,7 @@  discard block
 block discarded – undo
255 259
      *
256 260
      * Satisfies the IteratorAggreagte interface.
257 261
      *
258
-     * @return Map_Iterator
262
+     * @return \Generator
259 263
      */
260 264
     public function getIterator()
261 265
     {
Please login to merge, or discard this patch.
src/ORM/DataList.php 1 patch
Doc Comments   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -550,7 +550,7 @@  discard block
 block discarded – undo
550 550
      * Check if the given field specification could be interpreted as an unquoted relation name
551 551
      *
552 552
      * @param string $field
553
-     * @return bool
553
+     * @return integer
554 554
      */
555 555
     protected function isValidRelationName($field)
556 556
     {
@@ -663,7 +663,7 @@  discard block
 block discarded – undo
663 663
      * @param int $order A numerical index to control the order that joins are added to the query; lower order values
664 664
      * will cause the query to appear first. The default is 20, and joins created automatically by the
665 665
      * ORM have a value of 10.
666
-     * @param array $parameters Any additional parameters if the join is a parameterised subquery
666
+     * @param string[] $parameters Any additional parameters if the join is a parameterised subquery
667 667
      * @return static
668 668
      */
669 669
     public function innerJoin($table, $onClause, $alias = null, $order = 20, $parameters = array())
@@ -682,7 +682,7 @@  discard block
 block discarded – undo
682 682
      * @param int $order A numerical index to control the order that joins are added to the query; lower order values
683 683
      * will cause the query to appear first. The default is 20, and joins created automatically by the
684 684
      * ORM have a value of 10.
685
-     * @param array $parameters Any additional parameters if the join is a parameterised subquery
685
+     * @param string[] $parameters Any additional parameters if the join is a parameterised subquery
686 686
      * @return static
687 687
      */
688 688
     public function leftJoin($table, $onClause, $alias = null, $order = 20, $parameters = array())
@@ -808,7 +808,7 @@  discard block
 block discarded – undo
808 808
      * Returns an Iterator for this DataList.
809 809
      * This function allows you to use DataLists in foreach loops
810 810
      *
811
-     * @return Generator
811
+     * @return \Generator
812 812
      */
813 813
     public function getIterator()
814 814
     {
@@ -818,7 +818,7 @@  discard block
 block discarded – undo
818 818
     }
819 819
 
820 820
     /**
821
-     * @return Generator|DataObject[]
821
+     * @return \Generator
822 822
      */
823 823
     public function getTemplateIterator()
824 824
     {
@@ -869,7 +869,7 @@  discard block
 block discarded – undo
869 869
      * Return the maximum value of the given field in this DataList
870 870
      *
871 871
      * @param string $fieldName
872
-     * @return mixed
872
+     * @return string
873 873
      */
874 874
     public function max($fieldName)
875 875
     {
@@ -880,7 +880,7 @@  discard block
 block discarded – undo
880 880
      * Return the minimum value of the given field in this DataList
881 881
      *
882 882
      * @param string $fieldName
883
-     * @return mixed
883
+     * @return string
884 884
      */
885 885
     public function min($fieldName)
886 886
     {
@@ -891,7 +891,7 @@  discard block
 block discarded – undo
891 891
      * Return the average value of the given field in this DataList
892 892
      *
893 893
      * @param string $fieldName
894
-     * @return mixed
894
+     * @return string
895 895
      */
896 896
     public function avg($fieldName)
897 897
     {
@@ -902,7 +902,7 @@  discard block
 block discarded – undo
902 902
      * Return the sum of the values of the given field in this DataList
903 903
      *
904 904
      * @param string $fieldName
905
-     * @return mixed
905
+     * @return string
906 906
      */
907 907
     public function sum($fieldName)
908 908
     {
@@ -961,7 +961,7 @@  discard block
 block discarded – undo
961 961
     /**
962 962
      * Restrict the columns to fetch into this DataList
963 963
      *
964
-     * @param array $queriedColumns
964
+     * @param string[] $queriedColumns
965 965
      * @return static
966 966
      */
967 967
     public function setQueriedColumns($queriedColumns)
@@ -1211,7 +1211,7 @@  discard block
 block discarded – undo
1211 1211
     /**
1212 1212
      * Returns item stored in list with index $key
1213 1213
      *
1214
-     * @param mixed $key
1214
+     * @param integer $key
1215 1215
      * @return DataObject
1216 1216
      */
1217 1217
     public function offsetGet($key)
Please login to merge, or discard this patch.