Completed
Push — authenticator-refactor ( fcc98b...4aec3f )
by Sam
05:51
created
tests/php/Forms/FormSchemaTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use SilverStripe\Forms\NumericField;
8 8
 use SilverStripe\Forms\Schema\FormSchema;
9 9
 use SilverStripe\Dev\SapphireTest;
10
-use SilverStripe\Control\Controller;
11 10
 use SilverStripe\Forms\FieldList;
12 11
 use SilverStripe\Forms\Form;
13 12
 use SilverStripe\Forms\TextField;
Please login to merge, or discard this patch.
tests/php/ORM/DBDatetimeTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use SilverStripe\i18n\i18n;
6 6
 use SilverStripe\ORM\FieldType\DBDatetime;
7 7
 use SilverStripe\Dev\SapphireTest;
8
-use SilverStripe\Security\Member;
9 8
 
10 9
 /**
11 10
  * Tests for {@link Datetime} class.
Please login to merge, or discard this patch.
src/Dev/SapphireTest.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -14,8 +14,6 @@  discard block
 block discarded – undo
14 14
 use SilverStripe\Core\ClassInfo;
15 15
 use SilverStripe\Core\Config\ConfigLoader;
16 16
 use SilverStripe\Core\Config\CoreConfigFactory;
17
-use SilverStripe\Core\Config\DefaultConfig;
18
-use SilverStripe\Core\Config\Middleware\ExtensionMiddleware;
19 17
 use SilverStripe\Core\Extension;
20 18
 use SilverStripe\Core\Flushable;
21 19
 use SilverStripe\Core\Injector\Injector;
@@ -39,7 +37,6 @@  discard block
 block discarded – undo
39 37
 use SilverStripe\View\ThemeResourceLoader;
40 38
 use SilverStripe\View\ThemeManifest;
41 39
 use PHPUnit_Framework_TestCase;
42
-use Translatable;
43 40
 use LogicException;
44 41
 use Exception;
45 42
 
Please login to merge, or discard this patch.
src/Forms/DateField.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
     /**
313 313
      * Assign value posted from form submission
314 314
      *
315
-     * @param mixed $value
315
+     * @param string $value
316 316
      * @param mixed $data
317 317
      * @return $this
318 318
      */
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
      *
338 338
      * When $html5=true, assign value from ISO 8601 string.
339 339
      *
340
-     * @param mixed $value
340
+     * @param string $value
341 341
      * @param mixed $data
342 342
      * @return $this
343 343
      */
Please login to merge, or discard this patch.
src/Forms/DatetimeField.php 1 patch
Doc Comments   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
     }
136 136
 
137 137
     /**
138
-     * @param $bool
138
+     * @param boolean $bool
139 139
      * @return $this
140 140
      */
141 141
     public function setHTML5($bool)
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      * Assign value posted from form submission, based on {@link $datetimeFormat}.
149 149
      * When $html5=true, this needs to be normalised ISO format (with "T" separator).
150 150
      *
151
-     * @param mixed $value
151
+     * @param string $value
152 152
      * @param mixed $data
153 153
      * @return $this
154 154
      */
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
      * When $html5=true, assign value from ISO 8601 normalised string (with a "T" separator).
315 315
      * Falls back to an ISO 8601 string (with a whitespace separator).
316 316
      *
317
-     * @param mixed $value
317
+     * @param string $value
318 318
      * @param mixed $data
319 319
      * @return $this
320 320
      */
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
      * Tidy up the internal date representation (ISO 8601),
395 395
      * and fall back to strtotime() if there's parsing errors.
396 396
      *
397
-     * @param string $date Date in ISO 8601 or approximate form
397
+     * @param string $datetime
398 398
      * @return string ISO 8601 date, or null if not valid
399 399
      */
400 400
     public function tidyInternal($datetime)
@@ -489,6 +489,9 @@  discard block
 block discarded – undo
489 489
         return $this;
490 490
     }
491 491
 
492
+    /**
493
+     * @param boolean $bool
494
+     */
492 495
     public function setReadonly($bool)
493 496
     {
494 497
         parent::setReadonly($bool);
Please login to merge, or discard this patch.
src/Forms/TimeField.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
     /**
251 251
      * Assign value posted from form submission
252 252
      *
253
-     * @param mixed $value
253
+     * @param string $value
254 254
      * @param mixed $data
255 255
      * @return $this
256 256
      */
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
     /**
268 268
      * Set time assigned from database value
269 269
      *
270
-     * @param mixed $value
270
+     * @param string $value
271 271
      * @param mixed $data
272 272
      * @return $this
273 273
      */
Please login to merge, or discard this patch.
tests/php/Forms/DatetimeFieldTest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -6,9 +6,7 @@
 block discarded – undo
6 6
 use SilverStripe\Control\Controller;
7 7
 use SilverStripe\Forms\DatetimeField;
8 8
 use SilverStripe\Forms\RequiredFields;
9
-use SilverStripe\Forms\DateField;
10 9
 use SilverStripe\Forms\Tests\DatetimeFieldTest\Model;
11
-use SilverStripe\Forms\TimeField;
12 10
 use SilverStripe\Forms\FieldList;
13 11
 use SilverStripe\Forms\FormAction;
14 12
 use SilverStripe\Forms\Form;
Please login to merge, or discard this patch.