Completed
Push — master ( 3b8329...446f2e )
by Nelson
06:02 queued 03:25
created
src/IntString.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
          * Nota: Cualquier objeto que no sea instancia de IntString se
105 105
          * considerará menor.
106 106
          *
107
-         * @param IntString|mixed $other Objeto con el que se va a comparar.
107
+         * @param VersionComponent $other Objeto con el que se va a comparar.
108 108
          *
109 109
          * @return integer Cero (0), si esta instancia es igual a $other; mayor
110 110
          *   a cero (>0), si es mayor a $other; menor a cero (<0), si es menor.
Please login to merge, or discard this patch.
src/Version.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@
 block discarded – undo
38 38
          *
39 39
          * @param int                              $major    Componente principal
40 40
          * @param int                              $minor    Componente secundario
41
-         * @param int|string|VersionComponent|null $build    Componente de compilación
42
-         * @param int|string|VersionComponent|null $revision Componente de revisión
41
+         * @param VersionComponent|null $build    Componente de compilación
42
+         * @param VersionComponent|null $revision Componente de revisión
43 43
          *
44 44
          * @throws InvalidArgumentException
45 45
          * */
Please login to merge, or discard this patch.
src/VersionComponent.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@
 block discarded – undo
166 166
         /**
167 167
          * Getter method for VersionComponent::IntValue property.
168 168
          *
169
-         * @return integer|NULL
169
+         * @return integer
170 170
          * */
171 171
         public function getIntValue()
172 172
         {
Please login to merge, or discard this patch.
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.
src/PropertiesHandler.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -144,8 +144,8 @@  discard block
 block discarded – undo
144 144
 
145 145
             if (property_exists($this, $name) === false) {
146 146
                 $args = [
147
-                         'class'    => typeof($this)->Name,
148
-                         'property' => $name,
147
+                            'class'    => typeof($this)->Name,
148
+                            'property' => $name,
149 149
                         ];
150 150
 
151 151
                 $msg = nml_msg('Property "{class}::{property}" do not exists.', $args);
@@ -176,8 +176,8 @@  discard block
 block discarded – undo
176 176
 
177 177
             if (method_exists($this, $name) === false) {
178 178
                 $args = [
179
-                         'class'  => typeof($this)->Name,
180
-                         'method' => $name,
179
+                            'class'  => typeof($this)->Name,
180
+                            'method' => $name,
181 181
                         ];
182 182
 
183 183
                 $msg = nml_msg('Method "{class}::{method}" do not exists.', $args);
@@ -206,8 +206,8 @@  discard block
 block discarded – undo
206 206
                 $setter = $this->ensureMethodExists($setter);
207 207
             } catch (BadMethodCallException $error) {
208 208
                 $args = [
209
-                         'class' => typeof($this)->Name,
210
-                         'name'  => $name,
209
+                            'class' => typeof($this)->Name,
210
+                            'name'  => $name,
211 211
                         ];
212 212
 
213 213
                 $msg = nml_msg('Property "{class}::{name}" has not a setter.', $args);
@@ -236,8 +236,8 @@  discard block
 block discarded – undo
236 236
                 $getter = $this->ensureMethodExists($getter);
237 237
             } catch (BadMethodCallException $error) {
238 238
                 $args = [
239
-                         'class' => typeof($this)->Name,
240
-                         'name'  => $name,
239
+                            'class' => typeof($this)->Name,
240
+                            'name'  => $name,
241 241
                         ];
242 242
 
243 243
                 $msg = nml_msg('Property "{class}::{name}" has not a getter.', $args);
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.