Test Setup Failed
Push — master ( 6592af...c06444 )
by Chauncey
08:19
created
src/Charcoal/Property/BooleanProperty.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     }
110 110
 
111 111
     /**
112
-     * @param  mixed $label The true label.
112
+     * @param  string $label The true label.
113 113
      * @return self
114 114
      */
115 115
     public function setTrueLabel($label)
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     }
132 132
 
133 133
     /**
134
-     * @param  mixed $label The false label.
134
+     * @param  string $label The false label.
135 135
      * @return self
136 136
      */
137 137
     public function setFalseLabel($label)
Please login to merge, or discard this patch.
src/Charcoal/Property/DateTimeProperty.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
     }
271 271
 
272 272
     /**
273
-     * @return array
273
+     * @return string[]
274 274
      */
275 275
     public function validationMethods()
276 276
     {
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
     }
366 366
 
367 367
     /**
368
-     * @param  integer|string $timestamp Timestamp.
368
+     * @param  integer $timestamp Timestamp.
369 369
      * @return boolean
370 370
      */
371 371
     private function isValidTimeStamp($timestamp)
Please login to merge, or discard this patch.
src/Charcoal/Property/FileProperty.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -549,7 +549,7 @@  discard block
 block discarded – undo
549 549
     {
550 550
         // Bag value if singular
551 551
         if (!is_array($values) || isset($values['id'])) {
552
-            $values = [ $values ];
552
+            $values = [$values];
553 553
         }
554 554
 
555 555
         $parsed = [];
@@ -577,7 +577,7 @@  discard block
 block discarded – undo
577 577
     {
578 578
         // Bag value if singular
579 579
         if (isset($files['error'])) {
580
-            $files = [ $files ];
580
+            $files = [$files];
581 581
         }
582 582
 
583 583
         $parsed = [];
@@ -606,7 +606,7 @@  discard block
 block discarded – undo
606 606
 
607 607
         if ($this['multiple']) {
608 608
             if (!is_array($values)) {
609
-                $values = empty($values) && !is_numeric($values) ? [] : [ $values ];
609
+                $values = empty($values) && !is_numeric($values) ? [] : [$values];
610 610
             }
611 611
         } else {
612 612
             if (is_array($values)) {
@@ -680,7 +680,7 @@  discard block
 block discarded – undo
680 680
             return null;
681 681
         }
682 682
 
683
-        $basePath  = $this->basePath();
683
+        $basePath = $this->basePath();
684 684
         $targetPath = str_replace($basePath, '', $targetPath);
685 685
 
686 686
         return $targetPath;
@@ -773,7 +773,7 @@  discard block
 block discarded – undo
773 773
             // @todo: Feedback
774 774
             $this->logger->debug(
775 775
                 'Path does not exist. Attempting to create path '.$uploadPath.'.',
776
-                [ get_called_class().'::'.__FUNCTION__ ]
776
+                [get_called_class().'::'.__FUNCTION__]
777 777
             );
778 778
             mkdir($uploadPath, 0777, true);
779 779
         }
@@ -847,7 +847,7 @@  discard block
 block discarded – undo
847 847
     public function sanitizeFilename($filename)
848 848
     {
849 849
         // Remove blacklisted caharacters
850
-        $blacklist = [ '/', '\\', '\0', '*', ':', '?', '"', '<', '>', '|', '#', '&', '!', '`', ' ' ];
850
+        $blacklist = ['/', '\\', '\0', '*', ':', '?', '"', '<', '>', '|', '#', '&', '!', '`', ' '];
851 851
         $filename = str_replace($blacklist, '_', $filename);
852 852
 
853 853
         // Avoid hidden file
@@ -1181,7 +1181,7 @@  discard block
 block discarded – undo
1181 1181
     {
1182 1182
         $propIdent = $this->ident();
1183 1183
 
1184
-        $filterErrNoFile = function (array $file) {
1184
+        $filterErrNoFile = function(array $file) {
1185 1185
             return $file['error'] !== UPLOAD_ERR_NO_FILE;
1186 1186
         };
1187 1187
         $uploadedFiles = static::parseUploadedFiles($_FILES, $filterErrNoFile, $propIdent);
Please login to merge, or discard this patch.