Completed
Push — authenticator-refactor ( 16f104...61b037 )
by Simon
06:52
created
src/Control/HTTPResponse.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\Control;
4 4
 
5 5
 use InvalidArgumentException;
6
-use Monolog\Formatter\FormatterInterface;
7 6
 use Monolog\Handler\HandlerInterface;
8 7
 use SilverStripe\Core\Convert;
9 8
 use SilverStripe\Core\Injector\Injectable;
Please login to merge, or discard this patch.
src/Control/Session.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\Config\Config;
6 6
 use SilverStripe\Core\Injector\Injectable;
7 7
 use SilverStripe\Core\Injector\Injector;
8
-use SilverStripe\Dev\Deprecation;
9 8
 
10 9
 /**
11 10
  * Handles all manipulation of the session.
Please login to merge, or discard this patch.
src/Core/Injector/Injector.php 1 patch
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
      *
372 372
      * @param string $property
373 373
      *                the name of the property
374
-     * @param object $object
374
+     * @param string $object
375 375
      *                the object to be set
376 376
      * @return $this
377 377
      */
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
      *              The name of the service to update the definition for
467 467
      * @param string $property
468 468
      *              The name of the property to update.
469
-     * @param mixed $value
469
+     * @param string $value
470 470
      *              The value to set
471 471
      * @param boolean $append
472 472
      *              Whether to append (the default) when the property is an array
@@ -788,7 +788,7 @@  discard block
 block discarded – undo
788 788
     /**
789 789
      * @deprecated 4.0.0:5.0.0 Use Injector::has() instead
790 790
      * @param $name
791
-     * @return string
791
+     * @return boolean
792 792
      */
793 793
     public function hasService($name)
794 794
     {
@@ -993,6 +993,7 @@  discard block
 block discarded – undo
993 993
      *
994 994
      * @param string $name
995 995
      * @param mixed $argument,... arguments to pass to the constructor
996
+     * @param string $argument
996 997
      * @return mixed A new instance of the specified object
997 998
      */
998 999
     public function create($name, $argument = null)
Please login to merge, or discard this patch.
src/Forms/DatetimeField.php 1 patch
Doc Comments   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     }
139 139
 
140 140
     /**
141
-     * @param $bool
141
+     * @param boolean $bool
142 142
      * @return $this
143 143
      */
144 144
     public function setHTML5($bool)
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      * Assign value posted from form submission, based on {@link $datetimeFormat}.
152 152
      * When $html5=true, this needs to be normalised ISO format (with "T" separator).
153 153
      *
154
-     * @param mixed $value
154
+     * @param string $value
155 155
      * @param mixed $data
156 156
      * @return $this
157 157
      */
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
      * When $html5=true, assign value from ISO 8601 normalised string (with a "T" separator).
318 318
      * Falls back to an ISO 8601 string (with a whitespace separator).
319 319
      *
320
-     * @param mixed $value
320
+     * @param string $value
321 321
      * @param mixed $data
322 322
      * @return $this
323 323
      */
@@ -492,6 +492,9 @@  discard block
 block discarded – undo
492 492
         return $this;
493 493
     }
494 494
 
495
+    /**
496
+     * @param boolean $bool
497
+     */
495 498
     public function setReadonly($bool)
496 499
     {
497 500
         parent::setReadonly($bool);
Please login to merge, or discard this patch.
src/Forms/FormField.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\Control\RequestHandler;
8 8
 use SilverStripe\Core\ClassInfo;
9 9
 use SilverStripe\Core\Convert;
10
-use SilverStripe\Dev\Deprecation;
11 10
 use SilverStripe\ORM\DataObject;
12 11
 use SilverStripe\ORM\DataObjectInterface;
13 12
 use SilverStripe\ORM\FieldType\DBField;
Please login to merge, or discard this patch.
src/ORM/DatabaseAdmin.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use SilverStripe\Core\Manifest\ClassLoader;
9 9
 use SilverStripe\Dev\SapphireTest;
10 10
 use SilverStripe\Dev\TestOnly;
11
-use SilverStripe\Dev\Deprecation;
12 11
 use SilverStripe\Versioned\Versioned;
13 12
 use SilverStripe\Security\Security;
14 13
 use SilverStripe\Security\Permission;
Please login to merge, or discard this patch.
src/ORM/DataObject.php 1 patch
Doc Comments   +9 added lines, -8 removed lines patch added patch discarded remove patch
@@ -2165,7 +2165,7 @@  discard block
 block discarded – undo
2165 2165
      * Called by {@link __get()} and any getFieldName() methods you might create.
2166 2166
      *
2167 2167
      * @param string $field The name of the field
2168
-     * @return mixed The field value
2168
+     * @return string|null The field value
2169 2169
      */
2170 2170
     public function getField($field)
2171 2171
     {
@@ -2447,6 +2447,7 @@  discard block
 block discarded – undo
2447 2447
 
2448 2448
     /**
2449 2449
      * {@inheritdoc}
2450
+     * @param string $field
2450 2451
      */
2451 2452
     public function castingHelper($field)
2452 2453
     {
@@ -2552,7 +2553,7 @@  discard block
 block discarded – undo
2552 2553
      * </code>
2553 2554
      *
2554 2555
      * @param string $methodName Method on the same object, e.g. {@link canEdit()}
2555
-     * @param Member|int $member
2556
+     * @param Member|null $member
2556 2557
      * @param array $context Optional context
2557 2558
      * @return boolean|null
2558 2559
      */
@@ -2575,7 +2576,7 @@  discard block
 block discarded – undo
2575 2576
 
2576 2577
     /**
2577 2578
      * @param Member $member
2578
-     * @return boolean
2579
+     * @return boolean|string
2579 2580
      */
2580 2581
     public function canView($member = null)
2581 2582
     {
@@ -2588,7 +2589,7 @@  discard block
 block discarded – undo
2588 2589
 
2589 2590
     /**
2590 2591
      * @param Member $member
2591
-     * @return boolean
2592
+     * @return boolean|string
2592 2593
      */
2593 2594
     public function canEdit($member = null)
2594 2595
     {
@@ -2601,7 +2602,7 @@  discard block
 block discarded – undo
2601 2602
 
2602 2603
     /**
2603 2604
      * @param Member $member
2604
-     * @return boolean
2605
+     * @return boolean|string
2605 2606
      */
2606 2607
     public function canDelete($member = null)
2607 2608
     {
@@ -2616,7 +2617,7 @@  discard block
 block discarded – undo
2616 2617
      * @param Member $member
2617 2618
      * @param array $context Additional context-specific data which might
2618 2619
      * affect whether (or where) this object could be created.
2619
-     * @return boolean
2620
+     * @return boolean|string
2620 2621
      */
2621 2622
     public function canCreate($member = null, $context = array())
2622 2623
     {
@@ -2731,7 +2732,7 @@  discard block
 block discarded – undo
2731 2732
      * Traverses to a field referenced by relationships between data objects, returning the value
2732 2733
      * The path to the related field is specified with dot separated syntax (eg: Parent.Child.Child.FieldName)
2733 2734
      *
2734
-     * @param $fieldName string
2735
+     * @param string $fieldName string
2735 2736
      * @return string | null - will return null on a missing value
2736 2737
      */
2737 2738
     public function relField($fieldName)
@@ -2809,7 +2810,7 @@  discard block
 block discarded – undo
2809 2810
      * @param string $callerClass The class of objects to be returned
2810 2811
      * @param string|array $filter A filter to be inserted into the WHERE clause.
2811 2812
      * Supports parameterised queries. See SQLSelect::addWhere() for syntax examples.
2812
-     * @param string|array $sort A sort expression to be inserted into the ORDER
2813
+     * @param string $sort A sort expression to be inserted into the ORDER
2813 2814
      * BY clause.  If omitted, self::$default_sort will be used.
2814 2815
      * @param string $join Deprecated 3.0 Join clause. Use leftJoin($table, $joinClause) instead.
2815 2816
      * @param string|array $limit A limit expression to be inserted into the LIMIT clause.
Please login to merge, or discard this patch.
src/Security/CMSSecurity.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -49,6 +49,9 @@  discard block
 block discarded – undo
49 49
         return parent::login($request, Authenticator::CMS_LOGIN);
50 50
     }
51 51
 
52
+    /**
53
+     * @param string $action
54
+     */
52 55
     public function Link($action = null)
53 56
     {
54 57
         /** @skipUpgrade */
@@ -79,6 +82,9 @@  discard block
 block discarded – undo
79 82
         return null;
80 83
     }
81 84
 
85
+    /**
86
+     * @param string $title
87
+     */
82 88
     public function getResponseController($title)
83 89
     {
84 90
         // Use $this to prevent use of Page to render underlying templates
Please login to merge, or discard this patch.
src/Security/InheritedPermissions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
     /**
112 112
      * Global permissions required to edit
113 113
      *
114
-     * @param array $permissions
114
+     * @param string[] $permissions
115 115
      * @return $this
116 116
      */
117 117
     public function setGlobalEditPermissions($permissions)
Please login to merge, or discard this patch.