Completed
Push — master ( 6514ea...1cfd2b )
by Luke
02:55 queued 39s
created
src/LaraCartServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -20,12 +20,12 @@  discard block
 block discarded – undo
20 20
     {
21 21
         $this->publishes(
22 22
             [
23
-                __DIR__ . '/config/laracart.php' => config_path('laracart.php'),
23
+                __DIR__.'/config/laracart.php' => config_path('laracart.php'),
24 24
             ]
25 25
         );
26 26
 
27 27
         $this->mergeConfigFrom(
28
-            __DIR__ . '/config/laracart.php',
28
+            __DIR__.'/config/laracart.php',
29 29
             'laracart'
30 30
         );
31 31
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         if (!$this->migrationHasAlreadyBeenPublished()) {
36 36
             $timestamp = date('Y_m_d_His', time());
37 37
             $this->publishes([
38
-                __DIR__ . '/../resources/migrations/add_cart_session_id_to_users_table.php.stub' => database_path('migrations/' . $timestamp . '_add_cart_session_id_to_users_table.php'),
38
+                __DIR__.'/../resources/migrations/add_cart_session_id_to_users_table.php.stub' => database_path('migrations/'.$timestamp.'_add_cart_session_id_to_users_table.php'),
39 39
             ], 'migrations');
40 40
         }
41 41
     }
@@ -47,21 +47,21 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public function register()
49 49
     {
50
-        $this->app->singleton(LaraCart::SERVICE, function ($app) {
50
+        $this->app->singleton(LaraCart::SERVICE, function($app) {
51 51
             return new LaraCart($app['session'], $app['events'], $app['auth']);
52 52
         }
53 53
         );
54 54
 
55 55
         $this->app->bind(
56 56
             LaraCart::HASH,
57
-            function ($app, $data) {
57
+            function($app, $data) {
58 58
                 return md5(json_encode($data));
59 59
             }
60 60
         );
61 61
 
62 62
         $this->app->bind(
63 63
             LaraCart::RANHASH,
64
-            function () {
64
+            function() {
65 65
                 return str_random(40);
66 66
             }
67 67
         );
Please login to merge, or discard this patch.