Completed
Push — master ( 6154f9...3b8329 )
by Nelson
11:47
created
src/Utilities/UnitTesting/Assert.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
                 );
97 97
 
98 98
                 if ($msg) {
99
-                    $error .= ' ' . sprintf(dgettext('nml', 'Message: %s'), $msg);
99
+                    $error .= ' '.sprintf(dgettext('nml', 'Message: %s'), $msg);
100 100
                 }
101 101
 
102 102
                 trigger_error($error, E_USER_WARNING);
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
                 );
150 150
 
151 151
                 if ($msg) {
152
-                    $error .= ' ' . sprintf(dgettext('nml', 'Message: %s'), $msg);
152
+                    $error .= ' '.sprintf(dgettext('nml', 'Message: %s'), $msg);
153 153
                 }
154 154
 
155 155
                 trigger_error($error, E_USER_WARNING);
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
                         );
219 219
 
220 220
                         if ($msg) {
221
-                            $error .= ' ' . sprintf(dgettext('nml', 'Message: %s'), $msg);
221
+                            $error .= ' '.sprintf(dgettext('nml', 'Message: %s'), $msg);
222 222
                         }
223 223
 
224 224
                         trigger_error($error, E_USER_WARNING);
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
                 );
241 241
 
242 242
                 if ($msg) {
243
-                    $error .= ' ' . sprintf(dgettext('nml', 'Message: %s'), $msg);
243
+                    $error .= ' '.sprintf(dgettext('nml', 'Message: %s'), $msg);
244 244
                 }
245 245
 
246 246
                 trigger_error($error, E_USER_WARNING);
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
                         );
289 289
 
290 290
                         if ($msg) {
291
-                            $error .= ' ' . sprintf(dgettext('nml', 'Message: %s'), $msg);
291
+                            $error .= ' '.sprintf(dgettext('nml', 'Message: %s'), $msg);
292 292
                         }
293 293
 
294 294
                         trigger_error($error, E_USER_WARNING);
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
                 );
311 311
 
312 312
                 if ($msg) {
313
-                    $error .= ' ' . sprintf(dgettext('nml', 'Message: %s'), $msg);
313
+                    $error .= ' '.sprintf(dgettext('nml', 'Message: %s'), $msg);
314 314
                 }
315 315
 
316 316
                 trigger_error($error, E_USER_WARNING);
Please login to merge, or discard this patch.
vendor/autoload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
     $classArray = explode('\\', $class);
17 17
 
18
-    $path = sprintf('%s' . DIRECTORY_SEPARATOR . '%s.php', __DIR__, implode(DIRECTORY_SEPARATOR, $classArray));
18
+    $path = sprintf('%s'.DIRECTORY_SEPARATOR.'%s.php', __DIR__, implode(DIRECTORY_SEPARATOR, $classArray));
19 19
 
20 20
     if (is_file($path)) {
21 21
         require_once($path);
Please login to merge, or discard this patch.
vendor/Cake/Utility/Text.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
                 }
119 119
                 $offset = ++$tmpOffset;
120 120
             } else {
121
-                $results[] = $buffer . substr($data, $offset);
121
+                $results[] = $buffer.substr($data, $offset);
122 122
                 $offset = $length + 1;
123 123
             }
124 124
         }
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
         ];
165 165
         $options += $defaults;
166 166
         $format = $options['format'];
167
-        $data = (array)$data;
167
+        $data = (array) $data;
168 168
         if (empty($data)) {
169 169
             return ($options['clean']) ? static::cleanInsert($str, $options) : $str;
170 170
         }
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
         }
207 207
 
208 208
         if (!isset($options['format']) && isset($options['before'])) {
209
-            $str = str_replace($options['escape'] . $options['before'], $options['before'], $str);
209
+            $str = str_replace($options['escape'].$options['before'], $options['before'], $str);
210 210
         }
211 211
         return ($options['clean']) ? static::cleanInsert($str, $options) : $str;
212 212
     }
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
         if (!empty($options['indent'])) {
306 306
             $chunks = explode("\n", $wrapped);
307 307
             for ($i = $options['indentAt'], $len = count($chunks); $i < $len; $i++) {
308
-                $chunks[$i] = $options['indent'] . $chunks[$i];
308
+                $chunks[$i] = $options['indent'].$chunks[$i];
309 309
             }
310 310
             $wrapped = implode("\n", $chunks);
311 311
         }
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
             $with = [];
416 416
 
417 417
             foreach ($phrase as $key => $segment) {
418
-                $segment = '(' . preg_quote($segment, '|') . ')';
418
+                $segment = '('.preg_quote($segment, '|').')';
419 419
                 if ($html) {
420 420
                     $segment = "(?![^<]+>)$segment(?![^<]+>)";
421 421
                 }
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
             return preg_replace($replace, $with, $text);
428 428
         }
429 429
 
430
-        $phrase = '(' . preg_quote($phrase, '|') . ')';
430
+        $phrase = '('.preg_quote($phrase, '|').')';
431 431
         if ($html) {
432 432
             $phrase = "(?![^<]+>)$phrase(?![^<]+>)";
433 433
         }
@@ -480,7 +480,7 @@  discard block
 block discarded – undo
480 480
             $truncate = $spacepos === false ? '' : trim(mb_substr($truncate, $spacepos));
481 481
         }
482 482
 
483
-        return $ellipsis . $truncate;
483
+        return $ellipsis.$truncate;
484 484
     }
485 485
 
486 486
     /**
@@ -604,7 +604,7 @@  discard block
 block discarded – undo
604 604
 
605 605
         if ($html) {
606 606
             foreach ($openTags as $tag) {
607
-                $truncate .= '</' . $tag . '>';
607
+                $truncate .= '</'.$tag.'>';
608 608
             }
609 609
         }
610 610
 
@@ -635,7 +635,7 @@  discard block
 block discarded – undo
635 635
 
636 636
         $pos = mb_strpos(mb_strtolower($text), mb_strtolower($phrase));
637 637
         if ($pos === false) {
638
-            return mb_substr($text, 0, $radius) . $ellipsis;
638
+            return mb_substr($text, 0, $radius).$ellipsis;
639 639
         }
640 640
 
641 641
         $startPos = $pos - $radius;
@@ -651,7 +651,7 @@  discard block
 block discarded – undo
651 651
         }
652 652
 
653 653
         $excerpt = mb_substr($text, $startPos, $endPos - $startPos);
654
-        $excerpt = $prepend . $excerpt . $append;
654
+        $excerpt = $prepend.$excerpt.$append;
655 655
 
656 656
         return $excerpt;
657 657
     }
@@ -671,7 +671,7 @@  discard block
 block discarded – undo
671 671
             $and = __d('cake', 'and');
672 672
         }
673 673
         if (count($list) > 1) {
674
-            return implode($separator, array_slice($list, null, -1)) . ' ' . $and . ' ' . array_pop($list);
674
+            return implode($separator, array_slice($list, null, -1)).' '.$and.' '.array_pop($list);
675 675
         }
676 676
 
677 677
         return array_pop($list);
@@ -774,7 +774,7 @@  discard block
 block discarded – undo
774 774
     public static function parseFileSize($size, $default = false)
775 775
     {
776 776
         if (ctype_digit($size)) {
777
-            return (int)$size;
777
+            return (int) $size;
778 778
         }
779 779
         $size = strtoupper($size);
780 780
 
@@ -791,7 +791,7 @@  discard block
 block discarded – undo
791 791
 
792 792
         if (substr($size, -1) === 'B' && ctype_digit(substr($size, 0, -1))) {
793 793
             $size = substr($size, 0, -1);
794
-            return (int)$size;
794
+            return (int) $size;
795 795
         }
796 796
 
797 797
         if ($default !== false) {
Please login to merge, or discard this patch.