Completed
Push — generators ( d5c396...b04334 )
by Sam
09:17
created
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/Forms/FieldList.php 1 patch
Doc Comments   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,6 +89,9 @@  discard block
 block discarded – undo
89 89
         $this->sequentialSaveableSet = null;
90 90
     }
91 91
 
92
+    /**
93
+     * @param FormField[] $list
94
+     */
92 95
     protected function collateDataFields(&$list, $saveableOnly = false)
93 96
     {
94 97
         if (!isset($list)) {
@@ -198,7 +201,7 @@  discard block
 block discarded – undo
198 201
      * Removes a number of fields from a Tab/TabSet within this FieldList.
199 202
      *
200 203
      * @param string $tabName The name of the Tab or TabSet field
201
-     * @param array $fields A list of fields, e.g. array('Name', 'Email')
204
+     * @param string[] $fields A list of fields, e.g. array('Name', 'Email')
202 205
      */
203 206
     public function removeFieldsFromTab($tabName, $fields)
204 207
     {
@@ -625,7 +628,7 @@  discard block
 block discarded – undo
625 628
     }
626 629
 
627 630
     /**
628
-     * @param $field
631
+     * @param CompositeField $field
629 632
      * @return $this
630 633
      */
631 634
     public function setContainerField($field)
@@ -707,6 +710,7 @@  discard block
 block discarded – undo
707 710
      * the children collection. Doesn't work recursively.
708 711
      *
709 712
      * @param string|FormField
713
+     * @param string $field
710 714
      * @return int Position in children collection (first position starts with 0).
711 715
      * Returns FALSE if the field can't be found.
712 716
      */
Please login to merge, or discard this patch.
src/Forms/GridField/GridFieldPrintButton.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
      *
78 78
      * @param GridField
79 79
      *
80
-     * @return array
80
+     * @return string[]
81 81
      */
82 82
     public function getActions($gridField)
83 83
     {
Please login to merge, or discard this patch.
src/Forms/HiddenField.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 
13 13
     /**
14 14
      * @param array $properties
15
-     * @return string
15
+     * @return \SilverStripe\ORM\FieldType\DBHTMLText
16 16
      */
17 17
     public function FieldHolder($properties = array())
18 18
     {
Please login to merge, or discard this patch.
src/Forms/TabSet.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use SilverStripe\Core\Convert;
6 6
 use SilverStripe\ORM\FieldType\DBHTMLText;
7
-use SilverStripe\View\Requirements;
8 7
 use InvalidArgumentException;
9 8
 
10 9
 /**
Please login to merge, or discard this patch.
src/ORM/ValidationResult.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use InvalidArgumentException;
6 6
 use Serializable;
7
-use SilverStripe\Core\Convert;
8 7
 use SilverStripe\Core\Injector\Injectable;
9 8
 use SilverStripe\Dev\Deprecation;
10 9
 
Please login to merge, or discard this patch.
tests/php/Forms/CurrencyFieldTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace SilverStripe\Forms\Tests;
4 4
 
5
-use SilverStripe\Core\Config\Config;
6 5
 use SilverStripe\Dev\SapphireTest;
7 6
 use SilverStripe\Forms\CurrencyField;
8 7
 use SilverStripe\Forms\RequiredFields;
Please login to merge, or discard this patch.
tests/php/Forms/GridField/GridFieldTest/Component.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     /**
40 40
      * @skipUpgrade
41 41
      * @param GridField $gridField
42
-     * @return array
42
+     * @return string[]
43 43
      */
44 44
     public function getColumnsHandled($gridField)
45 45
     {
Please login to merge, or discard this patch.
src/Forms/GridField/GridFieldAddExistingAutocompleter.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
     /**
156 156
      *
157 157
      * @param GridField $gridField
158
-     * @return array
158
+     * @return string[]
159 159
      */
160 160
     public function getActions($gridField)
161 161
     {
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
      *
220 220
      * @param GridField $gridField
221 221
      * @param HTTPRequest $request
222
-     * @return string
222
+     * @return HTTPResponse
223 223
      */
224 224
     public function doSearch($gridField, $request)
225 225
     {
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
     }
300 300
 
301 301
     /**
302
-     * @param array $fields
302
+     * @param string[] $fields
303 303
      * @return $this
304 304
      */
305 305
     public function setSearchFields($fields)
Please login to merge, or discard this patch.