Completed
Pull Request — master (#489)
by
unknown
01:18
created
src/Services/SlugService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
             return $this->model->__toString();
152 152
         }
153 153
 
154
-        $sourceStrings = array_map(function ($key) {
154
+        $sourceStrings = array_map(function($key) {
155 155
             $value = data_get($this->model, $key);
156 156
             if (is_bool($value)) {
157 157
                 $value = (int) $value;
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
             return end($suffix);
354 354
         }
355 355
 
356
-        $list->transform(function ($value, $key) use ($len) {
356
+        $list->transform(function($value, $key) use ($len) {
357 357
             return (int) substr($value, $len);
358 358
         });
359 359
 
Please login to merge, or discard this patch.
src/ServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
                 $slug = implode($config['field_separator'], $slugs);
121 121
             }
122 122
 
123
-            if($slug === '') {
123
+            if ($slug === '') {
124 124
                 return null;
125 125
             }
126 126
         }
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
             return [$this->model->__toString()];
166 166
         }
167 167
 
168
-        $sourceStrings = array_map(function ($key) {
168
+        $sourceStrings = array_map(function($key) {
169 169
             $value = data_get($this->model, $key);
170 170
             if (is_bool($value)) {
171 171
                 $value = (int) $value;
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
             return end($suffix);
368 368
         }
369 369
 
370
-        $list->transform(function ($value, $key) use ($len) {
370
+        $list->transform(function($value, $key) use ($len) {
371 371
             return (int) substr($value, $len);
372 372
         });
373 373
 
Please login to merge, or discard this patch.