Passed
Pull Request — master (#170)
by
unknown
07:47
created
src/Splitters/HtmlSplitter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@
 block discarded – undo
201 201
         $xpath = new DOMXpath($dom);
202 202
         $queue = [];
203 203
         $objects = [];
204
-        $xpathQuery = '//' . implode(' | //', $this->nodes);
204
+        $xpathQuery = '//'.implode(' | //', $this->nodes);
205 205
         $nodes = $xpath->query($xpathQuery);
206 206
 
207 207
         foreach ($nodes as $node) {
Please login to merge, or discard this patch.
src/Jobs/UpdateJob.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
                 continue;
111 111
             }
112 112
 
113
-            if (! $this->hasToSearchableArray($searchable)) {
113
+            if ( ! $this->hasToSearchableArray($searchable)) {
114 114
                 $array = $searchable->getModel()->transform($array);
115 115
             }
116 116
 
@@ -149,11 +149,11 @@  discard block
 block discarded – undo
149 149
     {
150 150
         $class = get_class($searchable->getModel());
151 151
 
152
-        if (! array_key_exists($class, $this->splittables)) {
152
+        if ( ! array_key_exists($class, $this->splittables)) {
153 153
             $this->splittables[$class] = false;
154 154
 
155 155
             foreach ($searchable->toSearchableArray() as $key => $value) {
156
-                $method = 'split' . Str::camel($key);
156
+                $method = 'split'.Str::camel($key);
157 157
                 $model = $searchable->getModel();
158 158
                 if (method_exists($model, $method)) {
159 159
                     $this->splittables[$class] = true;
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
         $model = $searchable->getModel();
178 178
 
179 179
         foreach ($array as $key => $value) {
180
-            $method = 'split' . Str::camel((string) $key);
180
+            $method = 'split'.Str::camel((string) $key);
181 181
 
182 182
             if (method_exists($model, $method)) {
183 183
                 $result = $model->{$method}($value);
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
             }
199 199
         }
200 200
 
201
-        if (! empty($result)) {
201
+        if ( ! empty($result)) {
202 202
             if (is_array($result)) {
203 203
                 $objects = [[]];
204 204
                 foreach ($pieces as $splittedBy => $values) {
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
                     $objects = $temp;
212 212
                 }
213 213
 
214
-                return array_map(function ($object) use ($array) {
214
+                return array_map(function($object) use ($array) {
215 215
                     return array_merge($array, $object);
216 216
                 }, $objects);
217 217
             } else {
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
     {
247 247
         $searchableClass = get_class($searchable);
248 248
 
249
-        if (! array_key_exists($searchableClass, $this->searchablesWithToSearchableArray)) {
249
+        if ( ! array_key_exists($searchableClass, $this->searchablesWithToSearchableArray)) {
250 250
             $reflectionClass = new ReflectionClass(get_class($searchable));
251 251
 
252 252
             $this->searchablesWithToSearchableArray[$searchableClass] = ends_with((string) $reflectionClass->getMethod('toSearchableArray')->getFileName(), (string) $reflectionClass->getFileName());
Please login to merge, or discard this patch.