Completed
Pull Request — master (#102)
by Luke
13:50
created
src/LaraCart.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -471,7 +471,7 @@
 block discarded – undo
471 471
     /**
472 472
      * Gets the total amount discounted
473 473
      *
474
-     * @param bool|true $format
474
+     * @param boolean $format
475 475
      *
476 476
      * @return int|string
477 477
      */
Please login to merge, or discard this patch.
src/LaraCartServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,21 +37,21 @@
 block discarded – undo
37 37
      */
38 38
     public function register()
39 39
     {
40
-        $this->app->singleton(LaraCart::SERVICE, function ($app) {
40
+        $this->app->singleton(LaraCart::SERVICE, function($app) {
41 41
                 return new LaraCart($app['session'], $app['events']);
42 42
             }
43 43
         );
44 44
 
45 45
         $this->app->bind(
46 46
             LaraCart::HASH,
47
-            function ($app, $data) {
47
+            function($app, $data) {
48 48
                 return md5(json_encode($data));
49 49
             }
50 50
         );
51 51
 
52 52
         $this->app->bind(
53 53
             LaraCart::RANHASH,
54
-            function () {
54
+            function() {
55 55
                 return str_random(40);
56 56
             }
57 57
         );
Please login to merge, or discard this patch.
database/migrations/2000_01_1_195953_add_cart_session_id_to_users_table.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
     public function up()
14 14
     {
15 15
         if (!(Schema::hasColumn('users', 'cart_session_id'))) {
16
-            Schema::table('users', function (Blueprint $table) {
16
+            Schema::table('users', function(Blueprint $table) {
17 17
                 $table->string('cart_session_id')->default(null);
18 18
             });
19 19
         }
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     public function down()
28 28
     {
29 29
         if ((Schema::hasColumn('users', 'cart_session_id'))) {
30
-            Schema::table('users', function (Blueprint $table) {
30
+            Schema::table('users', function(Blueprint $table) {
31 31
                 $table->dropColumn('cart_session_id');
32 32
             });
33 33
         }
Please login to merge, or discard this patch.