Completed
Push — psr-switch-fix ( 2e21c0...68d870 )
by Sam
11:29
created
tests/php/Forms/AssetFieldTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -356,7 +356,7 @@
 block discarded – undo
356 356
 	 * Simulates a file upload
357 357
 	 *
358 358
 	 * @param string $fileField Name of the field to mock upload for
359
-	 * @param array $tmpFileName Name of temporary file to upload
359
+	 * @param string $tmpFileName Name of temporary file to upload
360 360
 	 * @return HTTPResponse form response
361 361
 	 */
362 362
 	protected function mockFileUpload($fileField, $tmpFileName) {
Please login to merge, or discard this patch.
tests/php/Forms/AssetFieldTest/TestForm.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
 	/**
26 26
 	 * @skipUpgrade
27
-	 * @param null $controller
27
+	 * @param TestController $controller
28 28
 	 * @param string $name
29 29
 	 */
30 30
 	public function __construct($controller = null, $name = 'Form')
Please login to merge, or discard this patch.
tests/php/Forms/CurrencyFieldTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 use SilverStripe\Core\Convert;
4
-use SilverStripe\Core\Config\Config;
5 4
 use SilverStripe\Dev\SapphireTest;
6 5
 use SilverStripe\View\Parsers\URLSegmentFilter;
7 6
 
Please login to merge, or discard this patch.
tests/php/Forms/DropdownFieldTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -343,7 +343,7 @@
 block discarded – undo
343 343
 	 * string of HTML.
344 344
 	 *
345 345
 	 * @param string $html HTML to scan for elements
346
-	 * @return SimpleXMLElement
346
+	 * @return \SimpleXMLElement
347 347
 	 */
348 348
 	public function findOptionElements($html) {
349 349
 		$parser = new CSSContentParser($html);
Please login to merge, or discard this patch.
php/Forms/GridField/GridField_URLHandlerTest/TestComponent_ItemRequest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -111,6 +111,9 @@
 block discarded – undo
111 111
 
112 112
 	protected $id;
113 113
 
114
+	/**
115
+	 * @param string $link
116
+	 */
114 117
 	public function __construct($gridField, $id, $link) {
115 118
 		$this->gridField = $gridField;
116 119
 		$this->id = $id;
Please login to merge, or discard this patch.
tests/php/Forms/GridField/GridFieldTest/Component.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
 	/**
130 130
 	 *
131 131
 	 * @param GridField $gridField
132
-	 * @return array
132
+	 * @return string[]
133 133
 	 */
134 134
 	public function getActions($gridField) {
135 135
 		return array('addto');
Please login to merge, or discard this patch.
tests/php/Forms/NumericFieldTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -21,6 +21,9 @@
 block discarded – undo
21 21
 		return str_replace(' ', $nbsp, trim($input));
22 22
 	}
23 23
 
24
+	/**
25
+	 * @param string $locale
26
+	 */
24 27
 	protected function checkInputValidation($locale, $tests) {
25 28
 		i18n::set_locale($locale);
26 29
 		$field = new NumericField('Number');
Please login to merge, or discard this patch.
tests/php/Forms/UploadFieldTest.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -946,7 +946,7 @@  discard block
 block discarded – undo
946 946
 	 * Simulates a file upload
947 947
 	 *
948 948
 	 * @param string $fileField Name of the field to mock upload for
949
-	 * @param array $tmpFileName Name of temporary file to upload
949
+	 * @param string $tmpFileName Name of temporary file to upload
950 950
 	 * @return HTTPResponse form response
951 951
 	 */
952 952
 	protected function mockFileUpload($fileField, $tmpFileName) {
@@ -958,6 +958,9 @@  discard block
 block discarded – undo
958 958
 		);
959 959
 	}
960 960
 
961
+	/**
962
+	 * @param string $fileField
963
+	 */
961 964
 	protected function mockFileExists($fileField, $fileName) {
962 965
 		return $this->get(
963 966
 			"UploadFieldTest_Controller/Form/field/{$fileField}/fileexists?filename=".urlencode($fileName)
Please login to merge, or discard this patch.
tests/php/i18n/i18nTextCollectorTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use SilverStripe\Dev\Debug;
4 3
 use SilverStripe\ORM\DataObjectSchema;
5 4
 use SilverStripe\ORM\DB;
6 5
 use SilverStripe\ORM\HasManyList;
Please login to merge, or discard this patch.