Completed
Pull Request — master (#6583)
by Robbie
14:08 queued 04:25
created
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/HTMLEditor/HTMLEditorSanitiser.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
     /**
53 53
      * Given a TinyMCE pattern (close to unix glob style), create a regex that does the match
54 54
      *
55
-     * @param $str - The TinyMCE pattern
55
+     * @param string|null $str - The TinyMCE pattern
56 56
      * @return string - The equivalent regex
57 57
      */
58 58
     protected function patternToRegex($str)
Please login to merge, or discard this patch.
src/Forms/ListboxField.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
      * Returns a <select> tag containing all the appropriate <option> tags
66 66
      *
67 67
      * @param array $properties
68
-     * @return string
68
+     * @return \SilverStripe\ORM\FieldType\DBHTMLText
69 69
      */
70 70
     public function Field($properties = array())
71 71
     {
Please login to merge, or discard this patch.
src/Forms/LookupField.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      *
29 29
      * @param array $properties
30 30
      *
31
-     * @return string
31
+     * @return \SilverStripe\ORM\FieldType\DBHTMLText
32 32
      */
33 33
     public function Field($properties = array())
34 34
     {
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/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/SelectionGroup_Item.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -37,6 +37,9 @@  discard block
 block discarded – undo
37 37
         return $this->title;
38 38
     }
39 39
 
40
+    /**
41
+     * @param string $title
42
+     */
40 43
     function setTitle($title)
41 44
     {
42 45
         $this->title = $title;
@@ -48,6 +51,9 @@  discard block
 block discarded – undo
48 51
         return $this->value;
49 52
     }
50 53
 
54
+    /**
55
+     * @param string $Value
56
+     */
51 57
     function setValue($Value)
52 58
     {
53 59
         $this->value = $Value;
Please login to merge, or discard this patch.
src/Forms/TextField.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
     }
80 80
 
81 81
     /**
82
-     * @return string
82
+     * @return \SilverStripe\ORM\FieldType\DBHTMLText
83 83
      */
84 84
     public function InternallyLabelledField()
85 85
     {
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|null
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.