Completed
Push — authenticator-refactor ( 371abb...0c2983 )
by Simon
06:06
created
tests/php/Forms/EmailFieldTest.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -40,6 +40,11 @@
 block discarded – undo
40 40
         $this->internalCheck("domain.but.no.user", "Invalid, no user part", false);
41 41
     }
42 42
 
43
+    /**
44
+     * @param string $email
45
+     * @param string $checkText
46
+     * @param boolean $expectSuccess
47
+     */
43 48
     public function internalCheck($email, $checkText, $expectSuccess)
44 49
     {
45 50
         $field = new EmailField("MyEmail");
Please login to merge, or discard this patch.
tests/php/Forms/GridField/GridFieldAddExistingAutocompleterTest.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\GridField;
4 4
 
5
-use SilverStripe\Dev\Debug;
6 5
 use SilverStripe\Forms\Tests\GridField\GridFieldAddExistingAutocompleterTest\TestController;
7 6
 use SilverStripe\Forms\Tests\GridField\GridFieldTest\Cheerleader;
8 7
 use SilverStripe\Forms\Tests\GridField\GridFieldTest\Permissions;
Please login to merge, or discard this patch.
tests/php/Forms/HTMLEditor/HTMLEditorSanitiserTest.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\Core\Injector\Injector;
6 6
 use SilverStripe\Dev\FunctionalTest;
7 7
 use SilverStripe\Forms\HTMLEditor\HTMLEditorConfig;
8
-use SilverStripe\Forms\HTMLEditor\HTMLEditorSanitiser;
9 8
 
10 9
 class HTMLEditorSanitiserTest extends FunctionalTest
11 10
 {
Please login to merge, or discard this patch.
tests/php/Forms/TimeFieldTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace SilverStripe\Forms\Tests;
4 4
 
5 5
 use IntlDateFormatter;
6
-use SilverStripe\Core\Config\Config;
7 6
 use SilverStripe\Dev\SapphireTest;
8 7
 use SilverStripe\Forms\TimeField;
9 8
 use SilverStripe\Forms\RequiredFields;
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.
tests/php/ORM/DBTimeTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use SilverStripe\ORM\FieldType\DBField;
7 7
 use SilverStripe\Dev\SapphireTest;
8 8
 use SilverStripe\ORM\FieldType\DBTime;
9
-use SilverStripe\Security\Member;
10 9
 
11 10
 class DBTimeTest extends SapphireTest
12 11
 {
Please login to merge, or discard this patch.
tests/php/View/ContentNegotiatorTest.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -14,6 +14,7 @@
 block discarded – undo
14 14
     /**
15 15
      * Small helper to render templates from strings
16 16
      * Cloned from SSViewerTest
17
+     * @param string $templateString
17 18
      */
18 19
     private function render($templateString, $data = null)
19 20
     {
Please login to merge, or discard this patch.
tests/php/View/Parsers/ShortcodeParserTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -208,6 +208,10 @@
 block discarded – undo
208 208
         $this->assertEquals('', $this->parser->parse('[test_shortcode][test_shortcode]'));
209 209
     }
210 210
 
211
+    /**
212
+     * @param string $a
213
+     * @param string $b
214
+     */
211 215
     protected function assertEqualsIgnoringWhitespace($a, $b, $message = null)
212 216
     {
213 217
         $this->assertEquals(preg_replace('/\s+/', '', $a), preg_replace('/\s+/', '', $b), $message);
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.