Completed
Push — simpler-test-run ( 62f2b5...3bcfee )
by Daniel
08:45
created
Forms/HTMLEditor/HTMLEditorSanitiser.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 	/**
47 47
 	 * Given a TinyMCE pattern (close to unix glob style), create a regex that does the match
48 48
 	 *
49
-	 * @param $str - The TinyMCE pattern
49
+	 * @param string|null $str - The TinyMCE pattern
50 50
 	 * @return string - The equivalent regex
51 51
 	 */
52 52
 	protected function patternToRegex($str) {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use DOMAttr;
6 6
 use DOMElement;
7
-use DOMNode;
8 7
 use SilverStripe\Core\Injector\Injectable;
9 8
 use SilverStripe\View\Parsers\HTMLValue;
10 9
 use stdClass;
Please login to merge, or discard this patch.
Forms/MoneyField.php 1 patch
Doc Comments   +11 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,6 +57,10 @@  discard block
 block discarded – undo
57 57
 		return $this->fieldAmount;
58 58
 	}
59 59
 
60
+	/**
61
+	 * @param string $name
62
+	 * @param string $title
63
+	 */
60 64
 	public function __construct($name, $title = null, $value = "") {
61 65
 		$this->setName($name);
62 66
 
@@ -129,7 +133,7 @@  discard block
 block discarded – undo
129 133
 	 *
130 134
 	 * (see @link MoneyFieldTest_CustomSetter_Object for more information)
131 135
 	 *
132
-	 * @param DataObjectInterface|Object $dataObject
136
+	 * @param DataObjectInterface $dataObject
133 137
 	 */
134 138
 	public function saveInto(DataObjectInterface $dataObject) {
135 139
 		$fieldName = $this->getName();
@@ -158,6 +162,9 @@  discard block
 block discarded – undo
158 162
 		return $clone;
159 163
 	}
160 164
 
165
+	/**
166
+	 * @param boolean $bool
167
+	 */
161 168
 	public function setReadonly($bool) {
162 169
 		parent::setReadonly($bool);
163 170
 
@@ -198,6 +205,9 @@  discard block
 block discarded – undo
198 205
 		return $this->allowedCurrencies;
199 206
 	}
200 207
 
208
+	/**
209
+	 * @param string $locale
210
+	 */
201 211
 	public function setLocale($locale) {
202 212
 		$this->_locale = $locale;
203 213
 		return $this;
Please login to merge, or discard this patch.
Forms/NullableField.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 	/**
85 85
 	 * Set the label used for the Is Null checkbox.
86 86
 	 *
87
-	 * @param $isNulLabel string
87
+	 * @param string $isNulLabel string
88 88
 	 *
89 89
 	 * @return $this
90 90
 	 */
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 	/**
129 129
 	 * Value is sometimes an array, and sometimes a single value, so we need to handle both cases
130 130
 	 *
131
-	 * @param mixed $value
131
+	 * @param string|null $value
132 132
 	 * @param null|array $data
133 133
 	 *
134 134
 	 * @return $this
Please login to merge, or discard this patch.
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.
Forms/ReadonlyField.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
 	 * If $dontEscape is false the returned value will be safely encoded,
96 96
 	 * but should not be escaped by the frontend.
97 97
 	 *
98
-	 * @return mixed|string
98
+	 * @return string
99 99
 	 */
100 100
 	public function Value() {
101 101
 		// Get raw value
Please login to merge, or discard this patch.
Forms/Schema/FormSchema.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -74,6 +74,9 @@
 block discarded – undo
74 74
 		return $state;
75 75
 	}
76 76
 
77
+	/**
78
+	 * @param \SilverStripe\Forms\FieldList $fields
79
+	 */
77 80
 	protected function getFieldStates($fields) {
78 81
 		$states = [];
79 82
 		foreach ($fields as $field) {
Please login to merge, or discard this patch.
Forms/SelectionGroup_Item.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -154,6 +154,9 @@  discard block
 block discarded – undo
154 154
 		return $this->title;
155 155
 	}
156 156
 
157
+	/**
158
+	 * @param string $title
159
+	 */
157 160
 	function setTitle($title) {
158 161
 		$this->title = $title;
159 162
 		return $this;
@@ -163,6 +166,9 @@  discard block
 block discarded – undo
163 166
 		return $this->value;
164 167
 	}
165 168
 
169
+	/**
170
+	 * @param string $Value
171
+	 */
166 172
 	function setValue($Value) {
167 173
 		$this->value = $Value;
168 174
 		return $this;
Please login to merge, or discard this patch.
Forms/TextField.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 	}
75 75
 
76 76
 	/**
77
-	 * @return string
77
+	 * @return \SilverStripe\ORM\FieldType\DBHTMLText
78 78
 	 */
79 79
 	public function InternallyLabelledField() {
80 80
 		Deprecation::notice('4.0', 'Please use ->setValue() instead');
Please login to merge, or discard this patch.
Forms/TimeField.php 1 patch
Doc Comments   +8 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,6 +52,10 @@  discard block
 block discarded – undo
52 52
 
53 53
 	protected $schemaDataType = FormField::SCHEMA_DATA_TYPE_TIME;
54 54
 
55
+	/**
56
+	 * @param string $name
57
+	 * @param string $title
58
+	 */
55 59
 	public function __construct($name, $title = null, $value = ""){
56 60
 		if(!$this->locale) {
57 61
 			$this->locale = i18n::get_locale();
@@ -213,7 +217,7 @@  discard block
 block discarded – undo
213 217
 
214 218
 	/**
215 219
 	 * @param String $name Optional, returns the whole configuration array if empty
216
-	 * @return mixed|array
220
+	 * @return string
217 221
 	 */
218 222
 	public function getConfig($name = null) {
219 223
 		if($name) {
@@ -230,6 +234,9 @@  discard block
 block discarded – undo
230 234
 		return $this->castedCopy('TimeField_Readonly');
231 235
 	}
232 236
 
237
+	/**
238
+	 * @param string $class
239
+	 */
233 240
 	public function castedCopy($class) {
234 241
 		$copy = parent::castedCopy($class);
235 242
 		if($copy->hasMethod('setConfig')) {
Please login to merge, or discard this patch.