Completed
Push — generators ( d5c396...b04334 )
by Sam
09:17
created
src/ORM/DataList.php 2 patches
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -541,7 +541,7 @@  discard block
 block discarded – undo
541 541
      * Check if the given field specification could be interpreted as an unquoted relation name
542 542
      *
543 543
      * @param string $field
544
-     * @return bool
544
+     * @return integer
545 545
      */
546 546
     protected function isValidRelationName($field)
547 547
     {
@@ -654,7 +654,7 @@  discard block
 block discarded – undo
654 654
      * @param int $order A numerical index to control the order that joins are added to the query; lower order values
655 655
      * will cause the query to appear first. The default is 20, and joins created automatically by the
656 656
      * ORM have a value of 10.
657
-     * @param array $parameters Any additional parameters if the join is a parameterised subquery
657
+     * @param string[] $parameters Any additional parameters if the join is a parameterised subquery
658 658
      * @return static
659 659
      */
660 660
     public function innerJoin($table, $onClause, $alias = null, $order = 20, $parameters = array())
@@ -673,7 +673,7 @@  discard block
 block discarded – undo
673 673
      * @param int $order A numerical index to control the order that joins are added to the query; lower order values
674 674
      * will cause the query to appear first. The default is 20, and joins created automatically by the
675 675
      * ORM have a value of 10.
676
-     * @param array $parameters Any additional parameters if the join is a parameterised subquery
676
+     * @param string[] $parameters Any additional parameters if the join is a parameterised subquery
677 677
      * @return static
678 678
      */
679 679
     public function leftJoin($table, $onClause, $alias = null, $order = 20, $parameters = array())
@@ -799,7 +799,7 @@  discard block
 block discarded – undo
799 799
      * Returns an Iterator for this DataList.
800 800
      * This function allows you to use DataLists in foreach loops
801 801
      *
802
-     * @return Generator
802
+     * @return \Generator
803 803
      */
804 804
     public function getIterator()
805 805
     {
@@ -822,7 +822,7 @@  discard block
 block discarded – undo
822 822
      * Return the maximum value of the given field in this DataList
823 823
      *
824 824
      * @param string $fieldName
825
-     * @return mixed
825
+     * @return string
826 826
      */
827 827
     public function max($fieldName)
828 828
     {
@@ -833,7 +833,7 @@  discard block
 block discarded – undo
833 833
      * Return the minimum value of the given field in this DataList
834 834
      *
835 835
      * @param string $fieldName
836
-     * @return mixed
836
+     * @return string
837 837
      */
838 838
     public function min($fieldName)
839 839
     {
@@ -844,7 +844,7 @@  discard block
 block discarded – undo
844 844
      * Return the average value of the given field in this DataList
845 845
      *
846 846
      * @param string $fieldName
847
-     * @return mixed
847
+     * @return string
848 848
      */
849 849
     public function avg($fieldName)
850 850
     {
@@ -855,7 +855,7 @@  discard block
 block discarded – undo
855 855
      * Return the sum of the values of the given field in this DataList
856 856
      *
857 857
      * @param string $fieldName
858
-     * @return mixed
858
+     * @return string
859 859
      */
860 860
     public function sum($fieldName)
861 861
     {
@@ -914,7 +914,7 @@  discard block
 block discarded – undo
914 914
     /**
915 915
      * Restrict the columns to fetch into this DataList
916 916
      *
917
-     * @param array $queriedColumns
917
+     * @param string[] $queriedColumns
918 918
      * @return static
919 919
      */
920 920
     public function setQueriedColumns($queriedColumns)
@@ -1160,7 +1160,7 @@  discard block
 block discarded – undo
1160 1160
     /**
1161 1161
      * Returns item stored in list with index $key
1162 1162
      *
1163
-     * @param mixed $key
1163
+     * @param integer $key
1164 1164
      * @return DataObject
1165 1165
      */
1166 1166
     public function offsetGet($key)
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -6,9 +6,7 @@
 block discarded – undo
6 6
 use SilverStripe\Dev\Debug;
7 7
 use SilverStripe\ORM\Filters\SearchFilter;
8 8
 use SilverStripe\ORM\Queries\SQLConditionGroup;
9
-use SilverStripe\View\TemplateIterator;
10 9
 use SilverStripe\View\ViewableData;
11
-use ArrayIterator;
12 10
 use Exception;
13 11
 use InvalidArgumentException;
14 12
 use LogicException;
Please login to merge, or discard this patch.