Completed
Branch next (9144f5)
by Scott
03:07 queued 51s
created
updates/1.0/create_categories_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     public function up()
10 10
     {
11
-        Schema::create('bedard_shop_categories', function (Blueprint $table) {
11
+        Schema::create('bedard_shop_categories', function(Blueprint $table) {
12 12
             $table->engine = 'InnoDB';
13 13
             $table->increments('id');
14 14
             $table->integer('parent_id')->nullable()->unsigned()->index();
Please login to merge, or discard this patch.
updates/1.0/create_statuses_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     public function up()
10 10
     {
11
-        Schema::create('bedard_shop_statuses', function (Blueprint $table) {
11
+        Schema::create('bedard_shop_statuses', function(Blueprint $table) {
12 12
             $table->engine = 'InnoDB';
13 13
             $table->increments('id');
14 14
             $table->string('name')->default('')->index();
Please login to merge, or discard this patch.
updates/1.0/create_inventory_option_value_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     public function up()
10 10
     {
11
-        Schema::create('bedard_shop_inventory_option_value', function (Blueprint $table) {
11
+        Schema::create('bedard_shop_inventory_option_value', function(Blueprint $table) {
12 12
             $table->engine = 'InnoDB';
13 13
             $table->integer('inventory_id')->unsigned();
14 14
             $table->integer('option_value_id')->unsigned();
Please login to merge, or discard this patch.
updates/1.0/create_carts_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     public function up()
10 10
     {
11
-        Schema::create('bedard_shop_carts', function (Blueprint $table) {
11
+        Schema::create('bedard_shop_carts', function(Blueprint $table) {
12 12
             $table->engine = 'InnoDB';
13 13
             $table->increments('id');
14 14
             $table->string('token', 40)->index();
Please login to merge, or discard this patch.
updates/1.0/create_products_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     public function up()
10 10
     {
11
-        Schema::create('bedard_shop_products', function (Blueprint $table) {
11
+        Schema::create('bedard_shop_products', function(Blueprint $table) {
12 12
             $table->engine = 'InnoDB';
13 13
             $table->increments('id');
14 14
             $table->string('name')->default('');
Please login to merge, or discard this patch.
updates/1.0/create_cart_status_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     public function up()
10 10
     {
11
-        Schema::create('bedard_shop_cart_status', function (Blueprint $table) {
11
+        Schema::create('bedard_shop_cart_status', function(Blueprint $table) {
12 12
             $table->engine = 'InnoDB';
13 13
             $table->string('driver')->nullable();
14 14
             $table->integer('cart_id')->unsigned()->nullable();
Please login to merge, or discard this patch.
routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-Route::group(['middleware' => '\Bedard\Shop\Classes\ApiMiddleware'], function () {
3
+Route::group(['middleware' => '\Bedard\Shop\Classes\ApiMiddleware'], function() {
4 4
     // cart
5 5
     Route::get('api/bedard/shop/cart', 'Bedard\Shop\Api\CartApi@index');
6 6
     Route::get('api/bedard/shop/cart/touch', 'Bedard\Shop\Api\CartApi@touch');
Please login to merge, or discard this patch.
classes/ApiMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     public function handle($request, Closure $next)
16 16
     {
17
-        if (! ApiSettings::get('is_enabled')) {
17
+        if (!ApiSettings::get('is_enabled')) {
18 18
             abort(403, 'Forbidden');
19 19
 
20 20
             return;
Please login to merge, or discard this patch.
classes/Repository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
         ) {
77 77
             foreach ($options['relationships'] as $relationship) {
78 78
                 $query->with([
79
-                    $relationship => function ($model) {
79
+                    $relationship => function($model) {
80 80
                         // @todo: add controls to select columns of a relationship
81 81
                         $model->select('*');
82 82
                     },
Please login to merge, or discard this patch.