Completed
Push — add-versioned-test ( 5ea238 )
by Sam
13:40
created
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.
tests/php/ORM/ManyManyListExtensionTest.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,11 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace SilverStripe\ORM\Tests;
4 4
 
5
-use SilverStripe\ORM\DataObject;
6
-use SilverStripe\ORM\DataExtension;
7 5
 use SilverStripe\Core\Object;
8 6
 use SilverStripe\Dev\SapphireTest;
9
-use SilverStripe\Dev\TestOnly;
10 7
 
11 8
 class ManyManyListExtensionTest extends SapphireTest
12 9
 {
Please login to merge, or discard this patch.
admin/code/ModelAdmin.php 2 patches
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,6 +162,7 @@  discard block
 block discarded – undo
162 162
      * currently viewing) is included in the URL.
163 163
      *
164 164
      * @inheritdoc
165
+     * @param string $action
165 166
      */
166 167
     public function Link($action = null)
167 168
     {
@@ -441,7 +442,7 @@  discard block
 block discarded – undo
441 442
     /**
442 443
      * Generate a CSV import form for a single {@link DataObject} subclass.
443 444
      *
444
-     * @return Form|false
445
+     * @return Form
445 446
      */
446 447
     public function ImportForm()
447 448
     {
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -23,17 +23,14 @@
 block discarded – undo
23 23
 use SilverStripe\Forms\GridField\GridFieldConfig_RecordEditor;
24 24
 use SilverStripe\Forms\GridField\GridFieldPrintButton;
25 25
 use SilverStripe\Forms\GridField\GridField;
26
-use SilverStripe\Forms\CompositeField;
27 26
 use SilverStripe\Forms\GridField\GridFieldImportButton;
28 27
 use SilverStripe\ORM\ArrayLib;
29 28
 use SilverStripe\ORM\ArrayList;
30 29
 use SilverStripe\ORM\DataObject;
31 30
 use SilverStripe\ORM\Search\SearchContext;
32
-use SilverStripe\ORM\SS_List;
33 31
 use SilverStripe\ORM\ValidationResult;
34 32
 use SilverStripe\Security\Member;
35 33
 use SilverStripe\View\ArrayData;
36
-use SilverStripe\View\SSViewer;
37 34
 
38 35
 /**
39 36
  * Generates a three-pane UI for editing model classes, with an
Please login to merge, or discard this patch.
src/Assets/Flysystem/AssetAdapter.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -42,6 +42,9 @@
 block discarded – undo
42 42
         ]
43 43
     );
44 44
 
45
+    /**
46
+     * @param string $root
47
+     */
45 48
     public function __construct($root = null, $writeFlags = LOCK_EX, $linkHandling = self::DISALLOW_LINKS)
46 49
     {
47 50
         // Get root path, and ensure that this exists and is safe
Please login to merge, or discard this patch.
src/Core/Core.php 1 patch
Doc Comments   +4 added lines, -7 removed lines patch added patch discarded remove patch
@@ -144,6 +144,9 @@  discard block
 block discarded – undo
144 144
     return Injector::inst()->get($className);
145 145
 }
146 146
 
147
+/**
148
+ * @return string
149
+ */
147 150
 function project()
148 151
 {
149 152
     global $project;
@@ -160,12 +163,6 @@  discard block
 block discarded – undo
160 163
      * @param string $entity Entity that identifies the string. It must be in the form
161 164
      * "Namespace.Entity" where Namespace will be usually the class name where this
162 165
      * string is used and Entity identifies the string inside the namespace.
163
-     * @param mixed $arg,... Additional arguments are parsed as such:
164
-     *  - Next string argument is a default. Pass in a `|` pipe-delimeted value with `{count}`
165
-     *    to do pluralisation.
166
-     *  - Any other string argument after default is context for i18nTextCollector
167
-     *  - Any array argument in any order is an injection parameter list. Pass in a `count`
168
-     *    injection parameter to pluralise.
169 166
      * @return string
170 167
      */
171 168
 function _t($entity, $arg = null)
@@ -179,7 +176,7 @@  discard block
 block discarded – undo
179 176
  * Only increases up to the maximum defined in {@link set_increase_memory_limit_max()},
180 177
  * and defaults to the 'memory_limit' setting in the PHP configuration.
181 178
  *
182
- * @param string|int $memoryLimit A memory limit string, such as "64M".  If omitted, unlimited memory will be set.
179
+ * @param integer $memoryLimit A memory limit string, such as "64M".  If omitted, unlimited memory will be set.
183 180
  * @return Boolean TRUE indicates a successful change, FALSE a denied change.
184 181
  */
185 182
 function increase_memory_limit_to($memoryLimit = -1)
Please login to merge, or discard this patch.
src/Dev/Deprecation.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      * greater than or equal to this version, a message will be raised
76 76
      *
77 77
      * @static
78
-     * @param $ver string -
78
+     * @param string $ver string -
79 79
      *     A php standard version string, see http://php.net/manual/en/function.version-compare.php for details.
80 80
      * @param null $forModule string -
81 81
      *    The name of a module. The passed version will be used as the check value for
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     /**
142 142
      * Determine if deprecation notices should be displayed
143 143
      *
144
-     * @return bool
144
+     * @return boolean|string
145 145
      */
146 146
     public static function get_enabled()
147 147
     {
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.
src/ORM/ListDecorator.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -41,6 +41,7 @@
 block discarded – undo
41 41
      * Useful for keeping a decorator/paginated list configuration intact while modifying
42 42
      * the underlying list.
43 43
      *
44
+     * @param SS_List $list
44 45
      * @return SS_List
45 46
      */
46 47
     public function setList($list)
Please login to merge, or discard this patch.