Completed
Branch master (0c18cc)
by Aurimas
06:20
created
src/CodeBlocks/String/StringCamelize.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 
27 27
     $input = preg_replace_callback(
28 28
         '/[-_\s]+(.)?/u',
29
-        function ($match) {
29
+        function($match) {
30 30
             if (isset($match[1])) {
31 31
                 return strtoupper($match[1]);
32 32
             } else {
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
     $input = preg_replace_callback(
40 40
         '/[\d]+(.)?/u',
41
-        function ($match) {
41
+        function($match) {
42 42
             return strtoupper($match[0]);
43 43
         },
44 44
         $input
Please login to merge, or discard this patch.
src/CodeBlocks/String/StringTitleize.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
     return preg_replace_callback(
22 22
         '/([\S]+)/u',
23
-        function ($match) use ($ignore) {
23
+        function($match) use ($ignore) {
24 24
             if (in_array(strtolower($match[0]), $ignore)) {
25 25
                 return $match[0];
26 26
             } else {
Please login to merge, or discard this patch.
src/CodeBlocks/Collection/CollectionPairs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 function collection_pairs($collection)
14 14
 {
15 15
     return array_map(
16
-        function ($key, $value) {
16
+        function($key, $value) {
17 17
             return [$key, $value];
18 18
         },
19 19
         array_keys($collection),
Please login to merge, or discard this patch.
src/CodeBlocks/Collection/CollectionReject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
  */
14 14
 function collection_reject($collection, callable $callback)
15 15
 {
16
-    return array_filter($collection, function ($item) use ($callback) {
16
+    return array_filter($collection, function($item) use ($callback) {
17 17
         return false === call_user_func($callback, $item);
18 18
     });
19 19
 }
Please login to merge, or discard this patch.
src/CodeBlocks/Collection/CollectionInvoke.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     $arguments = func_get_args();
17 17
 
18 18
     return array_map(
19
-        function ($item) use ($callback, $arguments) {
19
+        function($item) use ($callback, $arguments) {
20 20
             $arguments = array_merge([$item], array_slice($arguments, 2));
21 21
 
22 22
             return call_user_func_array($callback, $arguments);
Please login to merge, or discard this patch.
src/CodeBlocks/Collection/CollectionSortBy.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
 function collection_sort_by($collection, $sortBy, $sortFunction = 'asort')
16 16
 {
17 17
     if (false === is_callable($sortBy)) {
18
-        $sortBy = function ($item) use ($sortBy) {
18
+        $sortBy = function($item) use ($sortBy) {
19 19
             return $item[$sortBy];
20 20
         };
21 21
     }
Please login to merge, or discard this patch.
src/CodeBlocks/Collection/CollectionSome.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
 function collection_some($collection, callable $callback = null)
16 16
 {
17 17
     if (null === $callback) {
18
-        $callback = function ($item) use ($callback) {
18
+        $callback = function($item) use ($callback) {
19 19
             return (true == $item);
20 20
         };
21 21
     }
Please login to merge, or discard this patch.
src/CodeBlocks/Collection/CollectionPluck.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 function collection_pluck($collection, $key)
15 15
 {
16 16
     return array_map(
17
-        function ($item) use ($key) {
17
+        function($item) use ($key) {
18 18
             return collection_get($item, $key);
19 19
         },
20 20
         $collection
Please login to merge, or discard this patch.
src/CodeBlocks/Collection/CollectionEvery.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@
 block discarded – undo
21 21
     }
22 22
 
23 23
     return count(
24
-               array_filter(
25
-                   $collection,
26
-                   function ($item) use ($callback) {
27
-                       return false === call_user_func($callback, $item);
28
-                   }
29
-               )
30
-           ) < 1;
24
+                array_filter(
25
+                    $collection,
26
+                    function ($item) use ($callback) {
27
+                        return false === call_user_func($callback, $item);
28
+                    }
29
+                )
30
+            ) < 1;
31 31
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 function collection_every($collection, callable $callback = null)
16 16
 {
17 17
     if (null === $callback) {
18
-        $callback = function ($item) use ($callback) {
18
+        $callback = function($item) use ($callback) {
19 19
             return (true == $item);
20 20
         };
21 21
     }
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     return count(
24 24
                array_filter(
25 25
                    $collection,
26
-                   function ($item) use ($callback) {
26
+                   function($item) use ($callback) {
27 27
                        return false === call_user_func($callback, $item);
28 28
                    }
29 29
                )
Please login to merge, or discard this patch.