@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | public function register() |
36 | 36 | { |
37 | - $this->app->singleton('hideyo', function () { |
|
37 | + $this->app->singleton('hideyo', function() { |
|
38 | 38 | return true; |
39 | 39 | }); |
40 | 40 | } |
@@ -9,7 +9,7 @@ |
||
9 | 9 | */ |
10 | 10 | protected function registerFormBuilder() |
11 | 11 | { |
12 | - $this->app->singleton('form', function ($app) { |
|
12 | + $this->app->singleton('form', function($app) { |
|
13 | 13 | $form = new FormBuilder($app['html'], $app['url'], $app['view'], $app['session.store']->token()); |
14 | 14 | return $form->setSessionStore($app['session.store']); |
15 | 15 | }); |
@@ -51,10 +51,10 @@ discard block |
||
51 | 51 | protected function mapBackendRoutes() |
52 | 52 | { |
53 | 53 | Route::group([ |
54 | - 'middleware' => ['hideyobackend','auth.hideyo.backend'], |
|
54 | + 'middleware' => ['hideyobackend', 'auth.hideyo.backend'], |
|
55 | 55 | 'prefix' => 'admin', |
56 | 56 | 'namespace' => 'App\Http\Controllers\Backend' |
57 | - ], function ($router) { |
|
57 | + ], function($router) { |
|
58 | 58 | require base_path('routes/backend.php'); |
59 | 59 | }); |
60 | 60 | } |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | 'middleware' => ['hideyobackend'], |
73 | 73 | 'prefix' => 'admin', |
74 | 74 | 'namespace' => 'App\Http\Controllers\Backend' |
75 | - ], function ($router) { |
|
75 | + ], function($router) { |
|
76 | 76 | require base_path('routes/auth_backend.php'); |
77 | 77 | }); |
78 | 78 | } |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | Route::group([ |
90 | 90 | 'middleware' => ['web', 'detect.shop'], |
91 | 91 | 'namespace' => $this->frontendNamespace, |
92 | - ], function ($router) { |
|
92 | + ], function($router) { |
|
93 | 93 | require base_path('routes/frontend.php'); |
94 | 94 | }); |
95 | 95 | } |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | 'middleware' => 'api', |
108 | 108 | 'namespace' => $this->apiNamespace, |
109 | 109 | 'prefix' => 'api', |
110 | - ], function ($router) { |
|
110 | + ], function($router) { |
|
111 | 111 | require base_path('routes/api.php'); |
112 | 112 | }); |
113 | 113 | } |
@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | public function register() |
36 | 36 | { |
37 | - $this->app->singleton('cart', function ($app) { |
|
37 | + $this->app->singleton('cart', function($app) { |
|
38 | 38 | |
39 | 39 | $storage = $app['session']; |
40 | 40 | $events = $app['events']; |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('redirect', function (Blueprint $table) { |
|
16 | + Schema::create('redirect', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->boolean('active')->default(false); |
19 | 19 | $table->integer('clicks')->default(0); |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | { |
16 | 16 | |
17 | 17 | // Creates the users table |
18 | - Schema::create('faq_item_group', function ($table) { |
|
18 | + Schema::create('faq_item_group', function($table) { |
|
19 | 19 | $table->increments('id'); |
20 | 20 | $table->boolean('active')->default(false); |
21 | 21 | $table->integer('rank')->default(0); |
@@ -28,12 +28,12 @@ discard block |
||
28 | 28 | $table->foreign('shop_id')->references('id')->on('shop')->onDelete('cascade'); |
29 | 29 | $table->integer('modified_by_user_id')->unsigned()->nullable(); |
30 | 30 | $table->foreign('modified_by_user_id')->references('id')->on('user')->onDelete('set null'); |
31 | - $table->unique(array('title','shop_id'), 'unique_faq_item_group_title'); |
|
31 | + $table->unique(array('title', 'shop_id'), 'unique_faq_item_group_title'); |
|
32 | 32 | $table->timestamps(); |
33 | 33 | }); |
34 | 34 | |
35 | 35 | |
36 | - Schema::create('faq_item', function (Blueprint $table) { |
|
36 | + Schema::create('faq_item', function(Blueprint $table) { |
|
37 | 37 | $table->increments('id'); |
38 | 38 | $table->integer('faq_item_group_id')->unsigned()->nullable(); |
39 | 39 | $table->foreign('faq_item_group_id')->references('id')->on('faq_item_group')->onDelete('set null'); |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $table->foreign('modified_by_user_id')->references('id')->on('user')->onDelete('set null'); |
50 | 50 | $table->timestamps(); |
51 | 51 | |
52 | - $table->unique(array('question','shop_id'), 'unique_faq_item_title'); |
|
52 | + $table->unique(array('question', 'shop_id'), 'unique_faq_item_title'); |
|
53 | 53 | }); |
54 | 54 | } |
55 | 55 |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('attribute_group', function (Blueprint $table) { |
|
16 | + Schema::create('attribute_group', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('title'); |
19 | 19 | $table->enum('type', array('selectbox'))->default('selectbox'); |
@@ -24,11 +24,11 @@ discard block |
||
24 | 24 | $table->integer('modified_by_user_id')->unsigned()->nullable(); |
25 | 25 | $table->foreign('modified_by_user_id')->references('id')->on('user')->onDelete('set null'); |
26 | 26 | $table->timestamps(); |
27 | - $table->unique(array('title','shop_id'), 'unique_attribute_group_title'); |
|
27 | + $table->unique(array('title', 'shop_id'), 'unique_attribute_group_title'); |
|
28 | 28 | }); |
29 | 29 | |
30 | 30 | |
31 | - Schema::create('attribute', function (Blueprint $table) { |
|
31 | + Schema::create('attribute', function(Blueprint $table) { |
|
32 | 32 | $table->increments('id'); |
33 | 33 | $table->string('value'); |
34 | 34 | $table->integer('attribute_group_id')->unsigned(); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | $table->integer('modified_by_user_id')->unsigned()->nullable(); |
37 | 37 | $table->foreign('modified_by_user_id')->references('id')->on('user')->onDelete('set null'); |
38 | 38 | $table->timestamps(); |
39 | - $table->unique(array('attribute_group_id','value'), 'unique_attribute_value'); |
|
39 | + $table->unique(array('attribute_group_id', 'value'), 'unique_attribute_value'); |
|
40 | 40 | }); |
41 | 41 | } |
42 | 42 |
@@ -13,12 +13,12 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::table('extra_field', function (Blueprint $table) { |
|
16 | + Schema::table('extra_field', function(Blueprint $table) { |
|
17 | 17 | $table->integer('product_category_id')->unsigned()->nullable(); |
18 | 18 | $table->foreign('product_category_id')->references('id')->on('product_category')->onDelete('set null'); |
19 | 19 | }); |
20 | 20 | |
21 | - Schema::create('extra_field_related_product_category', function (Blueprint $table) { |
|
21 | + Schema::create('extra_field_related_product_category', function(Blueprint $table) { |
|
22 | 22 | $table->increments('id'); |
23 | 23 | $table->integer('extra_field_id')->unsigned(); |
24 | 24 | $table->foreign('extra_field_id', 'unique_related_extra_field_id')->references('id')->on('extra_field')->onDelete('cascade'); |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('tax_rate', function (Blueprint $table) { |
|
16 | + Schema::create('tax_rate', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('title')->nullable(); |
19 | 19 | $table->decimal('rate', 12, 4)->nullable(); |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | $table->foreign('modified_by_user_id')->references('id')->on('user')->onDelete('set null'); |
24 | 24 | $table->timestamps(); |
25 | 25 | |
26 | - $table->unique(array('rate','shop_id'), 'unique_tax_rate_rate'); |
|
26 | + $table->unique(array('rate', 'shop_id'), 'unique_tax_rate_rate'); |
|
27 | 27 | }); |
28 | 28 | } |
29 | 29 |