Completed
Push — master ( 97cd01...b80a2a )
by Gregorio
07:46 queued 05:32
created
src/Collection.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
     public function toArray()
15 15
     {
16
-        return collect($this->getData())->map(function ($itemData) {
16
+        return collect($this->getData())->map(function($itemData) {
17 17
             return (new Item($itemData, $this->transformers))->toArray();
18 18
         })->toArray();
19 19
     }
Please login to merge, or discard this patch.
src/Manager.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     public static function connector($class, $config = [])
22 22
     {
23 23
         if (!str_contains($class, '\\')) {
24
-            $class = '\\Ghc\\Rosetta\\Connectors\\'.studly_case($class);
24
+            $class = '\\Ghc\\Rosetta\\Connectors\\' . studly_case($class);
25 25
         }
26 26
 
27 27
         if (!class_exists($class)) {
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     public static function message($class, $data = null, $config = [])
58 58
     {
59 59
         if (!str_contains($class, '\\')) {
60
-            $class = '\\Ghc\\Rosetta\\Messages\\'.studly_case($class);
60
+            $class = '\\Ghc\\Rosetta\\Messages\\' . studly_case($class);
61 61
         }
62 62
 
63 63
         if (!class_exists($class)) {
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     public static function transformer($class, $config = [])
79 79
     {
80 80
         if (!str_contains($class, '\\')) {
81
-            $class = '\\Ghc\\Rosetta\\Transformers\\'.studly_case($class);
81
+            $class = '\\Ghc\\Rosetta\\Transformers\\' . studly_case($class);
82 82
         }
83 83
 
84 84
         if (!class_exists($class)) {
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
     public static function pipe($class)
121 121
     {
122 122
         if (!str_contains($class, '\\')) {
123
-            $class = '\\Ghc\\Rosetta\\Pipes\\'.studly_case($class);
123
+            $class = '\\Ghc\\Rosetta\\Pipes\\' . studly_case($class);
124 124
         }
125 125
 
126 126
         if (!class_exists($class)) {
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
     public static function matcher($class, $data = null, $config = [])
143 143
     {
144 144
         if (!str_contains($class, '\\')) {
145
-            $class = '\\Ghc\\Rosetta\\Matchers\\'.studly_case($class);
145
+            $class = '\\Ghc\\Rosetta\\Matchers\\' . studly_case($class);
146 146
         }
147 147
 
148 148
         if (!class_exists($class)) {
Please login to merge, or discard this patch.
src/Item.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
      */
96 96
     public function pipe($options = [])
97 97
     {
98
-        return function ($inputData) use ($options) {
98
+        return function($inputData) use ($options) {
99 99
             $this->setData($inputData);
100 100
 
101 101
             return $this->toArray();
Please login to merge, or discard this patch.
src/Matchers/Matcher.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
     public function pipe($options = [])
68 68
     {
69
-        return function ($inputData) use ($options) {
69
+        return function($inputData) use ($options) {
70 70
             $true = Arr::get($options, 'true', new Pipeline());
71 71
             $true = $true instanceof \Closure ? $true() : $true;
72 72
             $false = Arr::get($options, 'false', new Pipeline());
@@ -75,11 +75,11 @@  discard block
 block discarded – undo
75 75
             $this->setData($inputData);
76 76
 
77 77
             return $this->matchAndRun(
78
-                function () use ($true, $inputData) {
78
+                function() use ($true, $inputData) {
79 79
                     /* @var Pipeline $true */
80 80
                     return $true->flow($inputData);
81 81
                 },
82
-                function () use ($false, $inputData) {
82
+                function() use ($false, $inputData) {
83 83
                     /* @var Pipeline $false */
84 84
                     return $false->flow($inputData);
85 85
                 }
Please login to merge, or discard this patch.
src/Connectors/Request.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@
 block discarded – undo
190 190
      */
191 191
     public function pipe($options = [])
192 192
     {
193
-        return function ($inputData) use ($options) {
193
+        return function($inputData) use ($options) {
194 194
             if (!is_null($inputData)) {
195 195
                 $this->setData($inputData);
196 196
             }
Please login to merge, or discard this patch.
src/Transformers/RemoveProperties.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
      */
12 12
     public function transform($data)
13 13
     {
14
-        return collect($data)->reject(function ($value, $key) {
14
+        return collect($data)->reject(function($value, $key) {
15 15
             return in_array($key, $this->config['properties']);
16
-        })->map(function ($value) {
16
+        })->map(function($value) {
17 17
             return !is_array($value) ? $value : $this->transform($value);
18 18
         })->toArray();
19 19
     }
Please login to merge, or discard this patch.
src/Transformers/PregReplaceKeys.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      */
23 23
     public function transform($data)
24 24
     {
25
-        return collect($data)->mapWithKeys(function ($value, $key) {
25
+        return collect($data)->mapWithKeys(function($value, $key) {
26 26
             if (!count($this->config['properties']) || (count($this->config['properties']) && in_array($key, $this->config['properties']))) {
27 27
                 return [preg_replace($this->config['pattern'], $this->config['replacement'], $key) => !is_array($value) ? $value : $this->transform($value)];
28 28
             }
Please login to merge, or discard this patch.
src/Transformers/SlugizeKeys.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      */
22 22
     public function transform($data)
23 23
     {
24
-        return collect($data)->mapWithKeys(function ($value, $key) {
24
+        return collect($data)->mapWithKeys(function($value, $key) {
25 25
             return [str_replace('-', $this->config['separator'], str_slug($key)) => !is_array($value) ? $value : $this->transform($value)];
26 26
         })->toArray();
27 27
     }
Please login to merge, or discard this patch.
src/Transformers/FixValuesTypes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
      */
12 12
     public function transform($data)
13 13
     {
14
-        return collect($data)->map(function ($value) {
14
+        return collect($data)->map(function($value) {
15 15
             if (is_numeric($value)) {
16 16
                 $value += 0;
17 17
                 if (is_float($value)) {
Please login to merge, or discard this patch.