@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('password_resets', function (Blueprint $table) { |
|
16 | + Schema::create('password_resets', function(Blueprint $table) { |
|
17 | 17 | $table->string('email')->index(); |
18 | 18 | $table->string('token'); |
19 | 19 | $table->timestamp('created_at')->nullable(); |
@@ -19,10 +19,10 @@ |
||
19 | 19 | { |
20 | 20 | File::ensureDirectoryExists(Storage::path(Denomination::IMAGE_PATH)); |
21 | 21 | |
22 | - array_map(function (array $attributes) { |
|
22 | + array_map(function(array $attributes) { |
|
23 | 23 | File::copy( |
24 | - resource_path('img/denomination/' . $attributes['image']), |
|
25 | - Storage::path(Denomination::IMAGE_PATH . '/' . $attributes['image']) |
|
24 | + resource_path('img/denomination/'.$attributes[ 'image' ]), |
|
25 | + Storage::path(Denomination::IMAGE_PATH.'/'.$attributes[ 'image' ]) |
|
26 | 26 | ); |
27 | 27 | |
28 | 28 | return Denomination::create($attributes); |
@@ -19,7 +19,7 @@ |
||
19 | 19 | */ |
20 | 20 | public function up() |
21 | 21 | { |
22 | - Schema::create('orders', function (Blueprint $table) { |
|
22 | + Schema::create('orders', function(Blueprint $table) { |
|
23 | 23 | $table->id(); |
24 | 24 | $table->foreignIdFor(Customer::class)->constrained()->onUpdate('cascade')->onDelete('cascade'); |
25 | 25 | $table->foreignIdFor(User::class)->nullable()->constrained()->onUpdate('cascade')->onDelete('cascade'); |
@@ -18,12 +18,12 @@ |
||
18 | 18 | */ |
19 | 19 | public function up() |
20 | 20 | { |
21 | - Schema::create('order_statuses', function (Blueprint $table) { |
|
21 | + Schema::create('order_statuses', function(Blueprint $table) { |
|
22 | 22 | $table->id(); |
23 | 23 | $table->foreignIdFor(Order::class)->constrained()->onUpdate('cascade')->onDelete('cascade'); |
24 | 24 | $table->morphs('issuerable'); |
25 | 25 | |
26 | - $table->string('status')->comment('Enum of ' . OrderStatus::class); |
|
26 | + $table->string('status')->comment('Enum of '.OrderStatus::class); |
|
27 | 27 | $table->text('note')->nullable(); |
28 | 28 | $table->timestamps(); |
29 | 29 | }); |
@@ -16,7 +16,7 @@ |
||
16 | 16 | */ |
17 | 17 | public function up() |
18 | 18 | { |
19 | - Schema::create('branches', function (Blueprint $table) { |
|
19 | + Schema::create('branches', function(Blueprint $table) { |
|
20 | 20 | $table->id(); |
21 | 21 | |
22 | 22 | $table->string('name'); |
@@ -16,7 +16,7 @@ |
||
16 | 16 | */ |
17 | 17 | public function up() |
18 | 18 | { |
19 | - Schema::create('configurations', function (Blueprint $table) { |
|
19 | + Schema::create('configurations', function(Blueprint $table) { |
|
20 | 20 | $table->id(); |
21 | 21 | |
22 | 22 | $table->string('key')->unique(); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | */ |
19 | 19 | public function up() |
20 | 20 | { |
21 | - Schema::create('items', function (Blueprint $table) { |
|
21 | + Schema::create('items', function(Blueprint $table) { |
|
22 | 22 | $table->id(); |
23 | 23 | $table->foreignIdFor(Order::class)->constrained()->onUpdate('cascade')->onDelete('cascade'); |
24 | 24 | $table->foreignIdFor(Denomination::class)->constrained()->onUpdate('cascade')->onDelete('cascade'); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | */ |
15 | 15 | public function run() |
16 | 16 | { |
17 | - array_map(fn (array $attributes) => Configuration::create($attributes), [ |
|
17 | + array_map(fn(array $attributes) => Configuration::create($attributes), [ |
|
18 | 18 | [ |
19 | 19 | 'key' => 'maximum_total_order_value', |
20 | 20 | 'value' => 44000000, |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | { |
38 | 38 | $this->configureRateLimiting(); |
39 | 39 | |
40 | - $this->routes(function () { |
|
40 | + $this->routes(function() { |
|
41 | 41 | Route::prefix('api') |
42 | 42 | ->middleware('api') |
43 | 43 | ->namespace($this->namespace) |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | ->namespace($this->namespace) |
48 | 48 | ->group(base_path('routes/web.php')); |
49 | 49 | |
50 | - Route::match(['get', 'post'], '/botman', function () { |
|
50 | + Route::match([ 'get', 'post' ], '/botman', function() { |
|
51 | 51 | $this->mapBotManCommands(); |
52 | 52 | })->middleware('web_without_csrf'); |
53 | 53 | }); |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | */ |
61 | 61 | protected function configureRateLimiting() |
62 | 62 | { |
63 | - RateLimiter::for('api', function (Request $request) { |
|
63 | + RateLimiter::for ('api', function(Request $request) { |
|
64 | 64 | return Limit::perMinute(60)->by(optional($request->user())->id ?: $request->ip()); |
65 | 65 | }); |
66 | 66 | } |