Completed
Push — testmailer-refactor ( eeb7fa )
by Sam
09:50
created
src/Forms/HTMLEditor/HTMLEditorField.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     /**
74 74
      * Assign a new configuration instance or identifier
75 75
      *
76
-     * @param string|HTMLEditorConfig $config
76
+     * @param string $config
77 77
      * @return $this
78 78
      */
79 79
     public function setEditorConfig($config)
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      *
89 89
      * @param string $name The internal field name, passed to forms.
90 90
      * @param string $title The human-readable field label.
91
-     * @param mixed $value The value of the field.
91
+     * @param integer $value The value of the field.
92 92
      * @param string $config HTMLEditorConfig identifier to be used. Default to the active one.
93 93
      */
94 94
     public function __construct($name, $title = null, $value = '', $config = null)
@@ -136,6 +136,9 @@  discard block
 block discarded – undo
136 136
         $record->{$this->name} = $htmlValue->getContent();
137 137
     }
138 138
 
139
+    /**
140
+     * @param string|null $value
141
+     */
139 142
     public function setValue($value)
140 143
     {
141 144
         // Regenerate links prior to preview, so that the editor can see them.
Please login to merge, or discard this patch.
src/Forms/HTMLEditor/HTMLEditorField_Embed.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
     }
143 143
 
144 144
     /**
145
-     * @return AdapterInterface
145
+     * @return Embed
146 146
      */
147 147
     public function getEmbed()
148 148
     {
Please login to merge, or discard this patch.
src/Forms/HTMLEditor/HTMLEditorField_Toolbar.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,6 +67,10 @@  discard block
 block discarded – undo
67 67
      */
68 68
     protected $name;
69 69
 
70
+    /**
71
+     * @param Controller|null $controller
72
+     * @param string $name
73
+     */
70 74
     public function __construct($controller, $name)
71 75
     {
72 76
         parent::__construct();
@@ -508,7 +512,7 @@  discard block
 block discarded – undo
508 512
     /**
509 513
      * Find all anchors available on the given page.
510 514
      *
511
-     * @return array
515
+     * @return string
512 516
      * @throws HTTPResponse_Exception
513 517
      */
514 518
     public function getanchors()
Please login to merge, or discard this patch.
src/Forms/MoneyField.php 1 patch
Doc Comments   +11 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,6 +61,10 @@  discard block
 block discarded – undo
61 61
         return $this->fieldAmount;
62 62
     }
63 63
 
64
+    /**
65
+     * @param string $name
66
+     * @param string $title
67
+     */
64 68
     public function __construct($name, $title = null, $value = "")
65 69
     {
66 70
         $this->setName($name);
@@ -136,7 +140,7 @@  discard block
 block discarded – undo
136 140
      *
137 141
      * (see @link MoneyFieldTest_CustomSetter_Object for more information)
138 142
      *
139
-     * @param DataObjectInterface|Object $dataObject
143
+     * @param DataObjectInterface $dataObject
140 144
      */
141 145
     public function saveInto(DataObjectInterface $dataObject)
142 146
     {
@@ -167,6 +171,9 @@  discard block
 block discarded – undo
167 171
         return $clone;
168 172
     }
169 173
 
174
+    /**
175
+     * @param boolean $bool
176
+     */
170 177
     public function setReadonly($bool)
171 178
     {
172 179
         parent::setReadonly($bool);
@@ -211,6 +218,9 @@  discard block
 block discarded – undo
211 218
         return $this->allowedCurrencies;
212 219
     }
213 220
 
221
+    /**
222
+     * @param string $locale
223
+     */
214 224
     public function setLocale($locale)
215 225
     {
216 226
         $this->_locale = $locale;
Please login to merge, or discard this patch.
src/Forms/NullableField.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     /**
83 83
      * Set the label used for the Is Null checkbox.
84 84
      *
85
-     * @param $isNulLabel string
85
+     * @param string $isNulLabel string
86 86
      *
87 87
      * @return $this
88 88
      */
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
     /**
130 130
      * Value is sometimes an array, and sometimes a single value, so we need to handle both cases
131 131
      *
132
-     * @param mixed $value
132
+     * @param string|null $value
133 133
      * @param null|array $data
134 134
      *
135 135
      * @return $this
Please login to merge, or discard this patch.
src/Forms/PrintableTransformation_TabSet.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 class PrintableTransformation_TabSet extends TabSet
9 9
 {
10 10
     /**
11
-     * @param array $tabs
11
+     * @param FieldList $tabs
12 12
      */
13 13
     public function __construct($tabs)
14 14
     {
Please login to merge, or discard this patch.
src/Forms/ReadonlyField.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
      * If $dontEscape is false the returned value will be safely encoded,
84 84
      * but should not be escaped by the frontend.
85 85
      *
86
-     * @return mixed|string
86
+     * @return string
87 87
      */
88 88
     public function Value()
89 89
     {
Please login to merge, or discard this patch.
src/Forms/TimeField.php 1 patch
Doc Comments   +8 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,6 +57,10 @@  discard block
 block discarded – undo
57 57
 
58 58
     protected $schemaDataType = FormField::SCHEMA_DATA_TYPE_TIME;
59 59
 
60
+    /**
61
+     * @param string $name
62
+     * @param string $title
63
+     */
60 64
     public function __construct($name, $title = null, $value = "")
61 65
     {
62 66
         if (!$this->locale) {
@@ -231,7 +235,7 @@  discard block
 block discarded – undo
231 235
 
232 236
     /**
233 237
      * @param String $name Optional, returns the whole configuration array if empty
234
-     * @return mixed|array
238
+     * @return string
235 239
      */
236 240
     public function getConfig($name = null)
237 241
     {
@@ -250,6 +254,9 @@  discard block
 block discarded – undo
250 254
         return $this->castedCopy('SilverStripe\\Forms\\TimeField_Readonly');
251 255
     }
252 256
 
257
+    /**
258
+     * @param string $class
259
+     */
253 260
     public function castedCopy($class)
254 261
     {
255 262
         $copy = parent::castedCopy($class);
Please login to merge, or discard this patch.
src/Forms/UploadField.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
     /**
305 305
      * Determine if the target folder for new uploads in is visible the field UI.
306 306
      *
307
-     * @return boolean
307
+     * @return boolean|string
308 308
      */
309 309
     public function canPreviewFolder()
310 310
     {
@@ -581,7 +581,7 @@  discard block
 block discarded – undo
581 581
      * Customises a file with additional details suitable for rendering in the
582 582
      * UploadField.ss template
583 583
      *
584
-     * @param ViewableData|AssetContainer $file
584
+     * @param AssetContainer $file
585 585
      * @return ViewableData_Customised
586 586
      */
587 587
     protected function customiseFile(AssetContainer $file)
@@ -690,7 +690,7 @@  discard block
 block discarded – undo
690 690
     /**
691 691
      * Determine if the user has permission to upload.
692 692
      *
693
-     * @return boolean
693
+     * @return boolean|string
694 694
      */
695 695
     public function canUpload()
696 696
     {
@@ -718,7 +718,7 @@  discard block
 block discarded – undo
718 718
      * Determine if the user has permission to attach existing files
719 719
      * By default returns true if the user has the CMS_ACCESS_AssetAdmin permission
720 720
      *
721
-     * @return boolean
721
+     * @return boolean|string
722 722
      */
723 723
     public function canAttachExisting()
724 724
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -13,13 +13,11 @@
 block discarded – undo
13 13
 use SilverStripe\ORM\SS_List;
14 14
 use SilverStripe\ORM\DataObject;
15 15
 use SilverStripe\ORM\ArrayList;
16
-use SilverStripe\ORM\ValidationException;
17 16
 use SilverStripe\Security\Permission;
18 17
 use SilverStripe\View\ArrayData;
19 18
 use SilverStripe\View\ViewableData;
20 19
 use SilverStripe\View\ViewableData_Customised;
21 20
 use InvalidArgumentException;
22
-use Exception;
23 21
 
24 22
 /**
25 23
  * Field for uploading single or multiple files of all types, including images.
Please login to merge, or discard this patch.