Passed
Push — main ( 7a01df...251215 )
by PRATIK
09:52 queued 05:40
created
database/migrations/2021_10_11_024609_create_blocks_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('blocks', function (Blueprint $table) {
16
+        Schema::create('blocks', function(Blueprint $table) {
17 17
             $table->id();
18 18
             $table->string('code')->unique();
19 19
             $table->string('name')->unique();
Please login to merge, or discard this patch.
src/Models/Admin/Block.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,15 +17,15 @@
 block discarded – undo
17 17
     {
18 18
         parent::boot();
19 19
 
20
-        static::saving(function () {
20
+        static::saving(function() {
21 21
             self::cacheKey();
22 22
         });
23 23
 
24
-        static::deleting(function () {
24
+        static::deleting(function() {
25 25
             self::cacheKey();
26 26
         });
27 27
 
28
-        Block::creating(function ($model) {
28
+        Block::creating(function($model) {
29 29
             $model->position = Block::max('position') + 1;
30 30
         });
31 31
     }
Please login to merge, or discard this patch.
src/Repositories/BlockRepository.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
     public function indexBlock()
15 15
     {
16 16
         $blocks = config('adminetic.caching', true)
17
-            ? (Cache::has('blocks') ? Cache::get('blocks') : Cache::rememberForever('blocks', function () {
17
+            ? (Cache::has('blocks') ? Cache::get('blocks') : Cache::rememberForever('blocks', function() {
18 18
                 return Block::orderBy('position')->get();
19 19
             }))
20 20
             : Block::orderBy('position')->get();
Please login to merge, or discard this patch.