Passed
Push — develop ( 62f833...95decf )
by Septianata
11:22
created
database/migrations/2021_05_22_000001_create_password_resets_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
database/seeders/DenominationSeeder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
database/migrations/2021_05_22_000010_create_orders_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
database/migrations/2021_05_22_000011_create_order_statuses_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,12 +18,12 @@
 block discarded – undo
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
         });
Please login to merge, or discard this patch.
database/migrations/2021_05_22_000006_create_branches_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
database/migrations/2021_05_22_000005_create_configurations_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
database/migrations/2021_05_22_000012_create_items_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
database/seeders/ConfigurationSeeder.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 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,
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.