Passed
Push — master ( a00989...61ceb1 )
by Gregorio
04:41 queued 01:54
created
src/Messages/Message.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@
 block discarded – undo
112 112
      */
113 113
     public function pipe($options = [])
114 114
     {
115
-        return function ($inputData) use ($options) {
115
+        return function($inputData) use ($options) {
116 116
             $fromArray = Arr::get($options, 'fromArray', true);
117 117
             if ($fromArray) {
118 118
                 $this->fromArray($inputData);
Please login to merge, or discard this patch.
src/Messages/HtmlElements.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     {
34 34
         $crawler = new Crawler((string) $this->getData());
35 35
 
36
-        return $crawler->filter($this->getConfig()['selector'])->each(function ($element) {
36
+        return $crawler->filter($this->getConfig()['selector'])->each(function($element) {
37 37
             /* @var Crawler $element */
38 38
             return $this->domNodeToArray($element->getNode(0));
39 39
         });
Please login to merge, or discard this patch.
src/Messages/HtmlDataTables.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,14 +39,14 @@
 block discarded – undo
39 39
     {
40 40
         $crawler = new Crawler((string) $this->getData());
41 41
 
42
-        return $crawler->filter($this->getConfig()['selector'])->each(function ($table) {
42
+        return $crawler->filter($this->getConfig()['selector'])->each(function($table) {
43 43
             $rows = [];
44 44
 
45 45
             try {
46 46
                 /** @var Crawler $table */
47
-                $rows = $table->filter('tr')->each(function ($row) {
47
+                $rows = $table->filter('tr')->each(function($row) {
48 48
                     /* @var Crawler $row */
49
-                    return $row->filter('th,td')->each(function ($column) {
49
+                    return $row->filter('th,td')->each(function($column) {
50 50
                         /* @var Crawler $column */
51 51
                         return trim($column->text());
52 52
                     });
Please login to merge, or discard this patch.
src/Rosetta.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/Pipes/DataSetKey.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 pipe($options = [])
15 15
     {
16
-        return function ($inputData) use ($options) {
16
+        return function($inputData) use ($options) {
17 17
             return Arr::set($inputData, Arr::get($options, 'key'), Arr::get($options, 'value'));
18 18
         };
19 19
     }
Please login to merge, or discard this patch.
src/Pipes/DataMerge.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 pipe($options = [])
15 15
     {
16
-        return function ($inputData) use ($options) {
16
+        return function($inputData) use ($options) {
17 17
             return array_merge($inputData, Arr::get($options, 'data'));
18 18
         };
19 19
     }
Please login to merge, or discard this patch.
src/Connectors/Http.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         $type = $config['type'];
129 129
         unset($config['type']);
130 130
 
131
-        $method = 'getClientConfigAuth'.ucfirst($type);
131
+        $method = 'getClientConfigAuth' . ucfirst($type);
132 132
         if (!method_exists($this, $method)) {
133 133
             throw new Exception("Invalid auth type: $type");
134 134
         }
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
     private function getClientConfigAuthOauth2($config = [])
216 216
     {
217 217
         $authClient = new Client(['base_uri' => $config['uri']]);
218
-        $grantType = '\\kamermans\\OAuth2\\GrantType\\'.studly_case($config['grant_type']);
218
+        $grantType = '\\kamermans\\OAuth2\\GrantType\\' . studly_case($config['grant_type']);
219 219
         unset($config['uri']);
220 220
         unset($config['grant_type']);
221 221
         /** @var \kamermans\OAuth2\GrantType\GrantTypeInterface $grant_type */
Please login to merge, or discard this patch.