Completed
Push — master ( 544e47...c5b25a )
by Alex
18s
created
src/http/controllers/user/UserController.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
     public function index($character = null)
14 14
     {
15 15
         if (!$character) {
16
-            $profile = SeatHrProfile::firstOrCreate([ 'user_id' =>Auth::user()->id ]);
16
+            $profile = SeatHrProfile::firstOrCreate(['user_id' =>Auth::user()->id]);
17 17
             $character = $profile->user->main_character_id;
18 18
         }
19 19
 
Please login to merge, or discard this patch.
src/http/controllers/user/NoteController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
     public function create(Request $request, CharacterInfo $character)
19 19
     {
20
-        if($request->isMethod('post'))
20
+        if ($request->isMethod('post'))
21 21
         {
22 22
             $data = $request->only([
23 23
                 'severity',
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
                 return back()->withErrors($validator->errors());
34 34
             }
35 35
 
36
-            $profile = SeatHrProfile::firstOrCreate([ 'user_id' => $character->user->id ]);
36
+            $profile = SeatHrProfile::firstOrCreate(['user_id' => $character->user->id]);
37 37
             $data['profile_id'] = $profile->id;
38 38
             $data['created_by'] = auth()->user()->id;
39 39
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
     public function edit(Request $request, CharacterInfo $character, SeatHrNote $note)
50 50
     {
51
-        if($request->isMethod('post'))
51
+        if ($request->isMethod('post'))
52 52
         {
53 53
             $data = $request->only([
54 54
                 'severity',
Please login to merge, or discard this patch.
src/http/datatables/ApplicationReviewDataTable.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@  discard block
 block discarded – undo
21 21
         return datatables()
22 22
             ->eloquent($query)
23 23
             ->editColumn('can_reapply', fn($row) => view('seat-hr::review.partials.reapply', ['row' => $row]))
24
-            ->editColumn('currentStatus.status.name', function ($row) {
24
+            ->editColumn('currentStatus.status.name', function($row) {
25 25
                 $status = $row->currentStatus;
26 26
                 return view('seat-hr::review.partials.status', ['status' => $status]);
27 27
             })
28
-            ->editColumn('currentStatus.assigner.name', function ($row) {
28
+            ->editColumn('currentStatus.assigner.name', function($row) {
29 29
                 return $row->currentStatus ? $row->currentStatus->assignerName : 'unknown';
30 30
             })
31 31
             ->addColumn('action', fn($row) => view('seat-hr::review.partials.application-actions', ['row' => $row])->render());
@@ -87,6 +87,6 @@  discard block
 block discarded – undo
87 87
      */
88 88
     protected function filename(): string
89 89
     {
90
-        return 'Application_' . date('YmdHis');
90
+        return 'Application_'.date('YmdHis');
91 91
     }
92 92
 }
Please login to merge, or discard this patch.
src/http/datatables/StatusDataTable.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,10 +62,10 @@
 block discarded – undo
62 62
     {
63 63
         return [
64 64
             Column::computed('action')
65
-                  ->exportable(false)
66
-                  ->printable(false)
67
-                  ->width(60)
68
-                  ->addClass('text-center'),
65
+                    ->exportable(false)
66
+                    ->printable(false)
67
+                    ->width(60)
68
+                    ->addClass('text-center'),
69 69
             Column::make('id'),
70 70
             Column::make('add your columns'),
71 71
             Column::make('created_at'),
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,6 +80,6 @@
 block discarded – undo
80 80
      */
81 81
     protected function filename(): string
82 82
     {
83
-        return 'Status_' . date('YmdHis');
83
+        return 'Status_'.date('YmdHis');
84 84
     }
85 85
 }
Please login to merge, or discard this patch.
src/http/datatables/CorporationDataTable.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@  discard block
 block discarded – undo
20 20
         return datatables()
21 21
             ->eloquent($query)
22 22
             ->editColumn('corporation_id', fn($row) => $row->corporation->name)
23
-            ->editColumn('has_restricted_questions', function ($row) {
23
+            ->editColumn('has_restricted_questions', function($row) {
24 24
                 $bool = $row->has_restricted_questions;
25 25
                 return view('seat-hr::configuration.corporation.partials.bool', ['bool' => $bool]);
26 26
             })
27
-            ->editColumn('accepting_applications', function ($row) {
27
+            ->editColumn('accepting_applications', function($row) {
28 28
                 $bool = $row->accepting_applications;
29 29
                 return view('seat-hr::configuration.corporation.partials.bool', ['bool' => $bool]);
30 30
             })
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
                     ->orderBy(1)
59 59
                     ->buttons(
60 60
                         Button::make('create')
61
-                            ->action('window.location = "'. route('seat-hr.config.corp.create') .'"')
61
+                            ->action('window.location = "'.route('seat-hr.config.corp.create').'"')
62 62
                             ->text('Add Corporation')
63 63
                     )
64 64
             ;
@@ -92,6 +92,6 @@  discard block
 block discarded – undo
92 92
      */
93 93
     protected function filename(): string
94 94
     {
95
-        return 'Corporation_' . date('YmdHis');
95
+        return 'Corporation_'.date('YmdHis');
96 96
     }
97 97
 }
Please login to merge, or discard this patch.
src/http/datatables/QuestionDataTable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
                     ->orderBy(1)
51 51
                     ->buttons(
52 52
                         Button::make('create')
53
-                            ->action('window.location = "'. route('seat-hr.config.question.create') .'"')
53
+                            ->action('window.location = "'.route('seat-hr.config.question.create').'"')
54 54
                     );
55 55
     }
56 56
 
@@ -81,6 +81,6 @@  discard block
 block discarded – undo
81 81
      */
82 82
     protected function filename(): string
83 83
     {
84
-        return 'Question_' . date('YmdHis');
84
+        return 'Question_'.date('YmdHis');
85 85
     }
86 86
 }
Please login to merge, or discard this patch.
src/http/composers/ProfileMenu.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
         foreach (config('seat-hr.profile.menu') as $menu_data) {
32 32
             $prepared_menu = $this->load_plugin_menu('seat-hr.profile', $menu_data, true);
33
-            if (! is_null($prepared_menu) ){
33
+            if (!is_null($prepared_menu)) {
34 34
                 $menu[] = $prepared_menu;
35 35
             }
36 36
         }
Please login to merge, or discard this patch.
src/http/composers/ReviewMenu.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
         foreach (config('seat-hr.review.menu') as $menu_data) {
32 32
             $prepared_menu = $this->load_plugin_menu('seat-hr.review', $menu_data, true);
33
-            if (! is_null($prepared_menu) ){
33
+            if (!is_null($prepared_menu)) {
34 34
                 $menu[] = $prepared_menu;
35 35
             }
36 36
         }
Please login to merge, or discard this patch.
src/http/composers/Profile.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 __construct()
15 15
     {
16 16
         $character = request()->character;
17
-        if(is_string($character)){
17
+        if (is_string($character)) {
18 18
             $character = CharacterInfo::find($character);
19 19
         }
20 20
 
Please login to merge, or discard this patch.