Completed
Push — cli-error-fix ( 045f02...09496c )
by Sam
07:08
created
tests/php/ORM/DataExtensionTest.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace SilverStripe\ORM\Tests;
4 4
 
5
-use SilverStripe\Assets\Tests\FileMigrationHelperTest\Extension;
6
-use SilverStripe\Core\Config\Middleware\ExtensionMiddleware;
7
-use SilverStripe\Dev\Debug;
8 5
 use SilverStripe\ORM\DataObject;
9 6
 use SilverStripe\Core\Config\Config;
10 7
 use SilverStripe\Dev\SapphireTest;
Please login to merge, or discard this patch.
src/Control/Director.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
      *
250 250
      * @param string $url The URL to visit.
251 251
      * @param array $postVars The $_POST & $_FILES variables.
252
-     * @param array|Session $session The {@link Session} object representing the current session.
252
+     * @param Session|null $session The {@link Session} object representing the current session.
253 253
      * By passing the same object to multiple  calls of Director::test(), you can simulate a persisted
254 254
      * session.
255 255
      * @param string $httpMethod The HTTP method, such as GET or POST.  It will default to POST if
@@ -928,7 +928,7 @@  discard block
 block discarded – undo
928 928
     /**
929 929
      * Returns true if the given file exists. Filename should be relative to the site root.
930 930
      *
931
-     * @param $file
931
+     * @param string $file
932 932
      *
933 933
      * @return bool
934 934
      */
@@ -1156,7 +1156,7 @@  discard block
 block discarded – undo
1156 1156
      * Can also be checked with {@link Director::isDev()}, {@link Director::isTest()}, and
1157 1157
      * {@link Director::isLive()}.
1158 1158
      *
1159
-     * @return bool
1159
+     * @return string
1160 1160
      */
1161 1161
     public static function get_environment_type()
1162 1162
     {
Please login to merge, or discard this patch.
src/Control/HTTPRequest.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
      * Remove an existing HTTP header
350 350
      *
351 351
      * @param string $header
352
-     * @return mixed
352
+     * @return string
353 353
      */
354 354
     public function getHeader($header)
355 355
     {
@@ -458,9 +458,9 @@  discard block
 block discarded – undo
458 458
      * it's only advisable to send small files through this method.
459 459
      *
460 460
      * @static
461
-     * @param $fileData
461
+     * @param string $fileData
462 462
      * @param $fileName
463
-     * @param null $mimeType
463
+     * @param string $mimeType
464 464
      * @return HTTPResponse
465 465
      */
466 466
     public static function send_file($fileData, $fileName, $mimeType = null)
Please login to merge, or discard this patch.
src/Core/Cache/DefaultCacheFactory.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     /**
79 79
      * Determine if apcu is supported
80 80
      *
81
-     * @return bool
81
+     * @return boolean|null
82 82
      */
83 83
     protected function isAPCUSupported()
84 84
     {
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     /**
93 93
      * Determine if PHP files is supported
94 94
      *
95
-     * @return bool
95
+     * @return boolean|null
96 96
      */
97 97
     protected function isPHPFilesSupported()
98 98
     {
Please login to merge, or discard this patch.
src/Core/Convert.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
      * table, or column name. Supports encoding of multi identfiers separated by
204 204
      * a delimiter (e.g. ".")
205 205
      *
206
-     * @param string|array $identifier The identifier to escape. E.g. 'SiteTree.Title' or list of identifiers
206
+     * @param string $identifier The identifier to escape. E.g. 'SiteTree.Title' or list of identifiers
207 207
      * to be joined via the separator.
208 208
      * @param string $separator The string that delimits subsequent identifiers
209 209
      * @return string The escaped identifier. E.g. '"SiteTree"."Title"'
@@ -304,6 +304,7 @@  discard block
 block discarded – undo
304 304
      * call this function directly, Please use {@link Convert::xml2array()}
305 305
      *
306 306
      * @param SimpleXMLElement
307
+     * @param SimpleXMLElement $xml
307 308
      *
308 309
      * @return mixed
309 310
      */
@@ -517,7 +518,7 @@  discard block
 block discarded – undo
517 518
      * - IDField => idField
518 519
      * - iDField => iDField
519 520
      *
520
-     * @param $str
521
+     * @param string $str
521 522
      * @return string
522 523
      */
523 524
     public static function upperCamelToLowerCamel($str)
Please login to merge, or discard this patch.
src/Dev/BulkLoader.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -140,6 +140,10 @@
 block discarded – undo
140 140
 	 *
141 141
 	 * @return BulkLoader_Result See {@link self::processAll()}
142 142
 	 */
143
+
144
+    /**
145
+     * @param string $filepath
146
+     */
143 147
     public function load($filepath)
144 148
     {
145 149
         increase_time_limit_to(3600);
Please login to merge, or discard this patch.
src/Forms/Form.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -596,6 +596,7 @@  discard block
 block discarded – undo
596 596
      * Set actions that are exempt from validation
597 597
      *
598 598
      * @param array
599
+     * @param string[] $actions
599 600
      * @return $this
600 601
      */
601 602
     public function setValidationExemptActions($actions)
@@ -1043,7 +1044,7 @@  discard block
 block discarded – undo
1043 1044
      * If set to false (the default), then the form method is only used to construct the default
1044 1045
      * form.
1045 1046
      *
1046
-     * @param $bool boolean
1047
+     * @param boolean $bool boolean
1047 1048
      * @return $this
1048 1049
      */
1049 1050
     public function setStrictFormMethodCheck($bool)
Please login to merge, or discard this patch.
src/Forms/HTMLEditor/HTMLEditorConfig.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@
 block discarded – undo
151 151
      * Get the current value of an option
152 152
      *
153 153
      * @param string $key The key of the option to get
154
-     * @return mixed The value of the specified option
154
+     * @return string The value of the specified option
155 155
      */
156 156
     abstract public function getOption($key);
157 157
 
Please login to merge, or discard this patch.
src/Forms/LiteralField.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 
37 37
     /**
38 38
      * @param string $name
39
-     * @param string|FormField $content
39
+     * @param string $content
40 40
      */
41 41
     public function __construct($name, $content)
42 42
     {
Please login to merge, or discard this patch.