Completed
Push — get-one-miss-null ( 3738c0...2c8790 )
by Sam
08:50
created
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.
src/i18n/Messages/Symfony/ModuleYamlLoader.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,12 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace SilverStripe\i18n\Messages\Symfony;
4 4
 
5
-use SilverStripe\Core\Config\Configurable;
6
-use SilverStripe\Dev\Debug;
7 5
 use SilverStripe\i18n\i18n;
8 6
 use SilverStripe\i18n\Messages\Reader;
9 7
 use Symfony\Component\Translation\Loader\ArrayLoader;
10
-use Symfony\Component\Translation\PluralizationRules;
11 8
 
12 9
 /**
13 10
  * Loads yaml localisations across all modules simultaneously.
Please login to merge, or discard this patch.