Passed
Push — master ( 624a9a...4c85b9 )
by Arthur
36:47
created
src/Modules/Script/Database/factories/ScriptSubscriptionFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,11 +3,11 @@
 block discarded – undo
3 3
 use Faker\Generator as Faker;
4 4
 use Modules\Script\Entities\ScriptSubscription;
5 5
 
6
-$factory->define(ScriptSubscription::class, function (Faker $faker) {
6
+$factory->define(ScriptSubscription::class, function(Faker $faker) {
7 7
     return [
8 8
         ScriptSubscription::USER_ID => null,
9 9
         ScriptSubscription::ACTIVE => $faker->boolean,
10
-        ScriptSubscription::BASE_PRICE => $faker->randomFloat(2, 0,50),
11
-        ScriptSubscription::RECURRING_PRICE => $faker->randomFloat(2, 0,50)
10
+        ScriptSubscription::BASE_PRICE => $faker->randomFloat(2, 0, 50),
11
+        ScriptSubscription::RECURRING_PRICE => $faker->randomFloat(2, 0, 50)
12 12
     ];
13 13
 });
Please login to merge, or discard this patch.
src/Modules/Script/Database/factories/ScriptReviewReplyFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 use Faker\Generator as Faker;
4 4
 use Modules\Script\Entities\ScriptReviewReply;
5 5
 
6
-$factory->define(ScriptReviewReply::class, function (Faker $faker) {
6
+$factory->define(ScriptReviewReply::class, function(Faker $faker) {
7 7
     return [
8 8
         ScriptReviewReply::REPLIER_ID => null,
9 9
         ScriptReviewReply::MESSAGE => $faker->text
Please login to merge, or discard this patch.
src/Modules/Script/Transformers/ScriptTransformer.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
      * @var array
16 16
      */
17
-    public $available = [];
17
+    public $available = [ ];
18 18
 
19 19
     /**
20 20
      * Transform the resource into an array.
Please login to merge, or discard this patch.
src/Modules/Script/Listeners/PublishInitialScriptRelease.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      */
31 31
     public function handle(ScriptWasCreatedEvent $event): void
32 32
     {
33
-        $this->service->releaseVersion($event->script,[
33
+        $this->service->releaseVersion($event->script, [
34 34
             ScriptRelease::TYPE => "MINOR",
35 35
             ScriptRelease::CHANGELOG => "Initial script release"
36 36
         ]);
Please login to merge, or discard this patch.
src/Modules/Script/Events/ScriptWasCreatedEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,6 +38,6 @@
 block discarded – undo
38 38
      */
39 39
     public function broadcastOn()
40 40
     {
41
-        return [];
41
+        return [ ];
42 42
     }
43 43
 }
Please login to merge, or discard this patch.
src/Modules/Script/Events/ScriptWasDeletedEvent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
      * The listeners that will be fired when the event is dispatched.
13 13
      * @var array
14 14
      */
15
-    public $listeners = [];
15
+    public $listeners = [ ];
16 16
 
17 17
     /**
18 18
      * @var Script
@@ -35,6 +35,6 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function broadcastOn()
37 37
     {
38
-        return [];
38
+        return [ ];
39 39
     }
40 40
 }
Please login to merge, or discard this patch.
src/Modules/Script/Routes/scripts.v1.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@
 block discarded – undo
14 14
 use Modules\Authorization\Entities\Permission;
15 15
 use Modules\Script\Permissions\ScriptPermission;
16 16
 
17
-Route::get('/', 'ScriptController@index')->middleware(['permission:'.ScriptPermission::INDEX_SCRIPT]);
18
-Route::get('/{id}', 'ScriptController@show')->middleware(['permission:'.ScriptPermission::SHOW_SCRIPT]);
19
-Route::post('/', 'ScriptController@store')->middleware(['permission:'.ScriptPermission::CREATE_SCRIPT]);
20
-Route::patch('/{id}', 'ScriptController@update')->middleware(['permission:'.ScriptPermission::UPDATE_SCRIPT]);
21
-Route::delete('/{id}', 'ScriptController@destroy')->middleware(['permission:'.ScriptPermission::DELETE_SCRIPT]);
17
+Route::get('/', 'ScriptController@index')->middleware([ 'permission:'.ScriptPermission::INDEX_SCRIPT ]);
18
+Route::get('/{id}', 'ScriptController@show')->middleware([ 'permission:'.ScriptPermission::SHOW_SCRIPT ]);
19
+Route::post('/', 'ScriptController@store')->middleware([ 'permission:'.ScriptPermission::CREATE_SCRIPT ]);
20
+Route::patch('/{id}', 'ScriptController@update')->middleware([ 'permission:'.ScriptPermission::UPDATE_SCRIPT ]);
21
+Route::delete('/{id}', 'ScriptController@destroy')->middleware([ 'permission:'.ScriptPermission::DELETE_SCRIPT ]);
22 22
 
23 23
 
24 24
 
Please login to merge, or discard this patch.
src/Modules/Script/Http/Controllers/ScriptController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
      * @param FindScriptRequest $request
70 70
      * @param $id
71 71
      */
72
-    public function show(FindScriptRequest $request ,$id)
72
+    public function show(FindScriptRequest $request, $id)
73 73
     {
74 74
         $script = $this->service->resolve($id);
75 75
 
Please login to merge, or discard this patch.
src/Modules/Script/Entities/Script.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,12 +35,12 @@
 block discarded – undo
35 35
     /**
36 36
      * @var array
37 37
      */
38
-    protected $guarded = [];
38
+    protected $guarded = [ ];
39 39
 
40 40
     /**
41 41
      * @var array
42 42
      */
43
-    protected $casts = [];
43
+    protected $casts = [ ];
44 44
 
45 45
     protected $dates = [
46 46
         'created_at',
Please login to merge, or discard this patch.