Completed
Push — master ( eddec1...1fdb05 )
by Nicolas
03:17
created
Providers/BlockServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     public function boot()
28 28
     {
29 29
         $this->mergeConfigFrom(__DIR__ . '/../Config/config.php', 'asgard.block.config');
30
-        $this->publishes([__DIR__ . '/../Config/config.php' => config_path('asgard.block.config' . '.php'), ], 'config');
30
+        $this->publishes([ __DIR__ . '/../Config/config.php' => config_path('asgard.block.config' . '.php'), ], 'config');
31 31
     }
32 32
 
33 33
     /**
@@ -43,10 +43,10 @@  discard block
 block discarded – undo
43 43
     {
44 44
         $this->app->bind(
45 45
             'Modules\Block\Repositories\BlockRepository',
46
-            function () {
46
+            function() {
47 47
                 $repository = new EloquentBlockRepository(new Block());
48 48
 
49
-                if (! config('app.cache')) {
49
+                if (!config('app.cache')) {
50 50
                     return $repository;
51 51
                 }
52 52
 
Please login to merge, or discard this patch.
Entities/Block.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@  discard block
 block discarded – undo
10 10
 
11 11
     protected $presenter = 'Modules\Block\Presenters\BlockPresenter';
12 12
     protected $table = 'block__blocks';
13
-    public $translatedAttributes = ['online', 'body'];
14
-    protected $fillable = ['name', 'online', 'body'];
13
+    public $translatedAttributes = [ 'online', 'body' ];
14
+    protected $fillable = [ 'name', 'online', 'body' ];
15 15
     protected $casts = [
16 16
         'online' => 'bool',
17 17
     ];
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     public function __call($method, $parameters)
20 20
     {
21 21
         #i: Convert array to dot notation
22
-        $config = implode('.', ['asgard.block.config.relations', $method]);
22
+        $config = implode('.', [ 'asgard.block.config.relations', $method ]);
23 23
 
24 24
         #i: Relation method resolver
25 25
         if (config()->has($config)) {
Please login to merge, or discard this patch.