Passed
Push — master ( c48a60...b88731 )
by Vasyl
02:33
created
src/helpers.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,48 +1,48 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! function_exists('slug_get_model')) {
3
+if (!function_exists('slug_get_model')) {
4 4
     function slug_get_model($slug, $class = null)
5 5
     {
6 6
         return app(\Fomvasss\SlugMaker\SlugHelper::class)->getModel($slug, $class);
7 7
     }
8 8
 }
9 9
 
10
-if (! function_exists('slug_get_models')) {
10
+if (!function_exists('slug_get_models')) {
11 11
     function slug_get_models($slugs, $class = null)
12 12
     {
13 13
         return app(\Fomvasss\SlugMaker\SlugHelper::class)->getModels($slugs, $class);
14 14
     }
15 15
 }
16 16
 
17
-if (! function_exists('slug_get_id')) {
17
+if (!function_exists('slug_get_id')) {
18 18
     function slug_get_id($slug, $class = null)
19 19
     {
20 20
         return app(\Fomvasss\SlugMaker\SlugHelper::class)->getId($slug, $class);
21 21
     }
22 22
 }
23 23
 
24
-if (! function_exists('slug_get_ids')) {
24
+if (!function_exists('slug_get_ids')) {
25 25
     function slug_get_ids($slugs, $class = null)
26 26
     {
27 27
         return app(\Fomvasss\SlugMaker\SlugHelper::class)->getIds($slugs, $class);
28 28
     }
29 29
 }
30 30
 
31
-if (! function_exists('slug_get_grouped_class')) {
31
+if (!function_exists('slug_get_grouped_class')) {
32 32
     function slug_get_grouped_class($attributes, $useId = false)
33 33
     {
34 34
         return app(\Fomvasss\SlugMaker\SlugHelper::class)->getIdsGroupedByClass($attributes, $useId);
35 35
     }
36 36
 }
37 37
 
38
-if (! function_exists('slug_make')) {
38
+if (!function_exists('slug_make')) {
39 39
     function slug_make($model, $slug = '')
40 40
     {
41 41
         return app(\Fomvasss\SlugMaker\SlugHelper::class)->makeForModel($model, $slug);
42 42
     }
43 43
 }
44 44
 
45
-if (! function_exists('slug_delete')) {
45
+if (!function_exists('slug_delete')) {
46 46
     function slug_delete($model)
47 47
     {
48 48
         return app(\Fomvasss\SlugMaker\SlugHelper::class)->deleteByModel($model);
Please login to merge, or discard this patch.
src/SlugMakerServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
             __DIR__.'/../config/slugmaker.php' => $this->app->configPath().'/slugmaker.php',
14 14
         ], 'slugmaker-config');
15 15
 
16
-        if (! class_exists('CreateSlugsTable')) {
16
+        if (!class_exists('CreateSlugsTable')) {
17 17
             $timestamp = date('Y_m_d_His', time());
18 18
 
19 19
             $this->publishes([
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     {
27 27
         $this->mergeConfigFrom(__DIR__.'/../config/slugmaker.php', 'slugmaker');
28 28
 
29
-        $this->app->bind(SlugHelper::class, function () {
29
+        $this->app->bind(SlugHelper::class, function() {
30 30
             return new SlugHelper(new Slug());
31 31
         });
32 32
     }
Please login to merge, or discard this patch.