Completed
Push — master ( e97bda...94a795 )
by Aurimas
16s
created
src/Strings.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@
 block discarded – undo
208 208
  * @param string $input
209 209
  * @param string $substring
210 210
  *
211
- * @return bool
211
+ * @return \PHPUnit_Framework_Constraint_TraversableContains
212 212
  *
213 213
  * @author Lucantis Swann <[email protected]>
214 214
  */
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
  */
16 16
 function between($input, $left, $right)
17 17
 {
18
-    $input = ' ' . $input;
18
+    $input = ' '.$input;
19 19
     $ini   = strpos($input, $left);
20 20
 
21 21
     if ($ini == 0) {
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
     $input = preg_replace_callback(
55 55
         '/[-_\s]+(.)?/u',
56
-        function ($match) {
56
+        function($match) {
57 57
             if (isset($match[1])) {
58 58
                 return strtoupper($match[1]);
59 59
             } else {
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
     $input = preg_replace_callback(
67 67
         '/[\d]+(.)?/u',
68
-        function ($match) {
68
+        function($match) {
69 69
             return strtoupper($match[0]);
70 70
         },
71 71
         $input
@@ -692,7 +692,7 @@  discard block
 block discarded – undo
692 692
 
693 693
     return preg_replace_callback(
694 694
         '/([\S]+)/u',
695
-        function ($match) use ($ignore) {
695
+        function($match) use ($ignore) {
696 696
             if (in_array(strtolower($match[0]), $ignore)) {
697 697
                 return $match[0];
698 698
             } else {
@@ -730,7 +730,7 @@  discard block
 block discarded – undo
730 730
 {
731 731
     $lastWord = array_pop($array);
732 732
 
733
-    return implode($delimiter, $array) . $lastDelimiter . $lastWord;
733
+    return implode($delimiter, $array).$lastDelimiter.$lastWord;
734 734
 }
735 735
 
736 736
 /**
@@ -752,7 +752,7 @@  discard block
 block discarded – undo
752 752
         $lastDel = trim($delimiter, ' ');
753 753
     }
754 754
 
755
-    return implode($delimiter, $array) . $lastDel . $lastDelimiter . $lastWord;
755
+    return implode($delimiter, $array).$lastDel.$lastDelimiter.$lastWord;
756 756
 }
757 757
 
758 758
 
@@ -796,7 +796,7 @@  discard block
 block discarded – undo
796 796
             }
797 797
         }
798 798
 
799
-        return implode(array_slice($splits, 0, $lastSplit)) . $chars;
799
+        return implode(array_slice($splits, 0, $lastSplit)).$chars;
800 800
     } else {
801 801
         return $input;
802 802
     }
Please login to merge, or discard this patch.
src/Collection.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 function every($collection, callable $callback = null)
60 60
 {
61 61
     if (null === $callback) {
62
-        $callback = function ($item) use ($callback) {
62
+        $callback = function($item) use ($callback) {
63 63
             return (true == $item);
64 64
         };
65 65
     }
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     return count(
68 68
         array_filter(
69 69
             $collection,
70
-            function ($item) use ($callback) {
70
+            function($item) use ($callback) {
71 71
                 return false === call_user_func($callback, $item);
72 72
             }
73 73
         )
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
     $arguments = func_get_args();
277 277
 
278 278
     return array_map(
279
-        function ($item) use ($callback, $arguments) {
279
+        function($item) use ($callback, $arguments) {
280 280
             $arguments = array_merge([$item], array_slice($arguments, 2));
281 281
 
282 282
             return call_user_func_array($callback, $arguments);
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
 function pairs($collection)
396 396
 {
397 397
     return array_map(
398
-        function ($key, $value) {
398
+        function($key, $value) {
399 399
             return [$key, $value];
400 400
         },
401 401
         array_keys($collection),
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
 function pluck($collection, $key)
444 444
 {
445 445
     return array_map(
446
-        function ($item) use ($key) {
446
+        function($item) use ($key) {
447 447
             return get($item, $key);
448 448
         },
449 449
         $collection
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
  */
462 462
 function reject($collection, callable $callback)
463 463
 {
464
-    return array_filter($collection, function ($item) use ($callback) {
464
+    return array_filter($collection, function($item) use ($callback) {
465 465
         return false === call_user_func($callback, $item);
466 466
     });
467 467
 }
@@ -521,7 +521,7 @@  discard block
 block discarded – undo
521 521
 function some($collection, callable $callback = null)
522 522
 {
523 523
     if (null === $callback) {
524
-        $callback = function ($item) use ($callback) {
524
+        $callback = function($item) use ($callback) {
525 525
             return (true == $item);
526 526
         };
527 527
     }
@@ -549,7 +549,7 @@  discard block
 block discarded – undo
549 549
 function sortBy($collection, $sortBy, $sortFunction = 'asort')
550 550
 {
551 551
     if (false === is_callable($sortBy)) {
552
-        $sortBy = function ($item) use ($sortBy) {
552
+        $sortBy = function($item) use ($sortBy) {
553 553
             return $item[$sortBy];
554 554
         };
555 555
     }
Please login to merge, or discard this patch.