Passed
Branch master (08f51e)
by Tim
09:10
created
Category
src/ModelSuspensionServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 
15 15
     public function register()
16 16
     {
17
-        $this->mergeConfigFrom(__DIR__ . '/../config/model-suspension.php', 'model-suspension');
17
+        $this->mergeConfigFrom(__DIR__.'/../config/model-suspension.php', 'model-suspension');
18 18
     }
19 19
 
20 20
     protected function registerPublishables(): void
@@ -23,11 +23,11 @@  discard block
 block discarded – undo
23 23
             $this->loadMigrationsFrom(__DIR__.'/../database/migrations/');
24 24
         }
25 25
 
26
-        if (! class_exists('CreateSuspensionsTable')) {
26
+        if (!class_exists('CreateSuspensionsTable')) {
27 27
             $timestamp = date('Y_m_d_His', time());
28 28
 
29 29
             $this->publishes([
30
-                __DIR__ . '/../database/migrations/create_suspensions_table.php.stub' => database_path('migrations/'.$timestamp.'_create_suspensions_table.php'),
30
+                __DIR__.'/../database/migrations/create_suspensions_table.php.stub' => database_path('migrations/'.$timestamp.'_create_suspensions_table.php'),
31 31
             ], 'migrations');
32 32
         }
33 33
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     {
43 43
         $modelClassName = config('model-suspension.suspension_model');
44 44
 
45
-        if (! is_a($modelClassName, Suspension::class, true)) {
45
+        if (!is_a($modelClassName, Suspension::class, true)) {
46 46
             throw InvalidSuspensionModel::create($modelClassName);
47 47
         }
48 48
     }
Please login to merge, or discard this patch.
src/CanBeSuspended.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -142,11 +142,11 @@  discard block
 block discarded – undo
142 142
         $builder
143 143
             ->whereHas(
144 144
                 'suspensions',
145
-                function (Builder $query) {
145
+                function(Builder $query) {
146 146
                     $query
147 147
                         ->whereIn(
148 148
                             'id',
149
-                            function (QueryBuilder $query) {
149
+                            function(QueryBuilder $query) {
150 150
                                 $query
151 151
                                     ->select(DB::raw('max(id)'))
152 152
                                     ->from($this->getSuspensionTableName())
@@ -163,11 +163,11 @@  discard block
 block discarded – undo
163 163
         $builder
164 164
             ->whereHas(
165 165
                 'suspensions',
166
-                function (Builder $query) {
166
+                function(Builder $query) {
167 167
                     $query
168 168
                         ->whereIn(
169 169
                             'id',
170
-                            function (QueryBuilder $query) {
170
+                            function(QueryBuilder $query) {
171 171
                                 $query
172 172
                                     ->select(DB::raw('max(id)'))
173 173
                                     ->from($this->getSuspensionTableName())
Please login to merge, or discard this patch.