Passed
Push — task/common-translation-packag... ( 256e02...519c3a )
by Chris
07:02
created
app/Http/Middleware/FullFrameGuard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      * @param  \Closure  $next
13 13
      * @return mixed
14 14
      */
15
-    public function handle($request, Closure $next) {
15
+    public function handle($request, Closure $next){
16 16
 
17 17
         $response = $next($request);
18 18
 
Please login to merge, or discard this patch.
app/Http/Middleware/VerifyCsrfToken.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,6 +50,6 @@
 block discarded – undo
50 50
                 )
51 51
             );
52 52
         }
53
-         return $response;
53
+            return $response;
54 54
     }
55 55
 }
Please login to merge, or discard this patch.
app/Http/Controllers/ExperienceController.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -26,12 +26,12 @@
 block discarded – undo
26 26
     }
27 27
 
28 28
     /**
29
-    * Show the form for editing the applicant's experience
30
-    *
31
-    * @param  \Illuminate\Http\Request $request   Incoming request object.
32
-    * @param  \App\Models\Applicant    $applicant Incoming applicant object.
33
-    * @return \Illuminate\Http\Response
34
-    */
29
+     * Show the form for editing the applicant's experience
30
+     *
31
+     * @param  \Illuminate\Http\Request $request   Incoming request object.
32
+     * @param  \App\Models\Applicant    $applicant Incoming applicant object.
33
+     * @return \Illuminate\Http\Response
34
+     */
35 35
     public function edit(Request $request, Applicant $applicant)
36 36
     {
37 37
         return view('applicant/profile_02_experience', [
Please login to merge, or discard this patch.
app/Http/Controllers/JobController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -126,12 +126,12 @@
 block discarded – undo
126 126
         // TODO: replace route('manager.show',manager.id) in templates with link using slug.
127 127
         $criteria = [
128 128
             'essential' => $jobPoster->criteria->filter(
129
-                function ($value, $key) {
129
+                function($value, $key){
130 130
                     return $value->criteria_type->name == 'essential';
131 131
                 }
132 132
             ),
133 133
             'asset' => $jobPoster->criteria->filter(
134
-                function ($value, $key) {
134
+                function($value, $key){
135 135
                     return $value->criteria_type->name == 'asset';
136 136
                 }
137 137
             ),
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/ClassificationCrudController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         // Custom strings to display within the backpack UI.
28 28
         $this->crud->setEntityNameStrings('classification', 'classifications');
29 29
 
30
-        $this->crud->operation(['create', 'update'], function () {
30
+        $this->crud->operation(['create', 'update'], function(){
31 31
             $this->crud->addField([
32 32
                 'name' => 'key',
33 33
                 'type' => 'text',
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/UserCrudController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,9 +70,9 @@
 block discarded – undo
70 70
             'name' => 'user_role',
71 71
             'type' => 'select2',
72 72
             'label' => 'Role'
73
-            ], function () {
73
+            ], function(){
74 74
                 return UserRole::all()->keyBy('id')->pluck('name', 'id')->toArray();
75
-            }, function ($value) : void {
75
+            }, function($value) : void {
76 76
                 $this->crud->addClause('where', 'user_role_id', $value);
77 77
             });
78 78
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/JobPosterCrudController.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -177,8 +177,8 @@
 block discarded – undo
177 177
             'type' => 'date_picker',
178 178
             'label' => 'Letter of Offer Issuance Date',
179 179
             'date_picker_options' => [
180
-               'todayBtn' => 'linked',
181
-               'format' => 'yyyy-mm-dd',
180
+                'todayBtn' => 'linked',
181
+                'format' => 'yyyy-mm-dd',
182 182
             ],
183 183
         ]);
184 184
         if ($this->crud->getCurrentEntry() &&
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -54,11 +54,11 @@  discard block
 block discarded – undo
54 54
             'name' => 'title',
55 55
             'type' => 'text',
56 56
             'label' => 'Title',
57
-            'searchLogic' => function ($query, $column, $searchTerm) use ($locale) : void {
58
-                $query->orWhere('title->' . $locale, 'ilike', "%$searchTerm%");
57
+            'searchLogic' => function($query, $column, $searchTerm) use ($locale) : void {
58
+                $query->orWhere('title->'.$locale, 'ilike', "%$searchTerm%");
59 59
             },
60
-            'orderLogic' => function ($query, $column, $columnDirection) use ($locale) {
61
-                return $query->orderBy('title->' . $locale, $columnDirection)->select('*');
60
+            'orderLogic' => function($query, $column, $columnDirection) use ($locale) {
61
+                return $query->orderBy('title->'.$locale, $columnDirection)->select('*');
62 62
             }
63 63
         ]);
64 64
         $this->crud->addColumn([
@@ -77,8 +77,8 @@  discard block
 block discarded – undo
77 77
             'type' => 'closure',
78 78
             'label' => 'Manager',
79 79
             'orderable' => false,
80
-            'function' => function ($entry) {
81
-                return '<a href="' . route('manager.profile.edit', $entry->manager->user->id) . '" target="_blank">' . $entry->manager->user->full_name . '</a>';
80
+            'function' => function($entry){
81
+                return '<a href="'.route('manager.profile.edit', $entry->manager->user->id).'" target="_blank">'.$entry->manager->user->full_name.'</a>';
82 82
             }
83 83
         ]);
84 84
         $this->crud->addColumn([
@@ -98,10 +98,10 @@  discard block
 block discarded – undo
98 98
             'name' => 'departments',
99 99
             'type' => 'select2_multiple',
100 100
             'label' => 'Departments'
101
-        ], function () {
101
+        ], function(){
102 102
             return Department::all()->pluck('name', 'id')->toArray();
103
-        }, function ($values) {
104
-            $this->crud->addClause('WhereHas', 'department', function ($query) use ($values) {
103
+        }, function($values){
104
+            $this->crud->addClause('WhereHas', 'department', function($query) use ($values) {
105 105
                 foreach (json_decode($values) as $key => $value) {
106 106
                     if ($key === 0) {
107 107
                         $query->where('id', $value);
Please login to merge, or discard this patch.
app/Http/Controllers/ApplicationController.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,18 +40,17 @@
 block discarded – undo
40 40
     public function show(JobApplication $application)
41 41
     {
42 42
         $criteria = [
43
-            'essential' => $application->job_poster->criteria->filter(function ($value, $key) {
43
+            'essential' => $application->job_poster->criteria->filter(function($value, $key){
44 44
                 return $value->criteria_type->name == 'essential';
45 45
             }),
46
-            'asset' => $application->job_poster->criteria->filter(function ($value, $key) {
46
+            'asset' => $application->job_poster->criteria->filter(function($value, $key){
47 47
                 return $value->criteria_type->name == 'asset';
48 48
             }),
49 49
         ];
50 50
 
51 51
         // Display slightly different views on different portals.
52 52
         $view = WhichPortal::isManagerPortal() ?
53
-            'manager/application_post' :
54
-            'applicant/application_preview';
53
+            'manager/application_post' : 'applicant/application_preview';
55 54
 
56 55
         if (WhichPortal::isManagerPortal()) {
57 56
             // Load things required for review component.
Please login to merge, or discard this patch.
app/Http/Controllers/Controller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
     {
108 108
         $rotatedArray = [];
109 109
         foreach ($expandedArray as $item) {
110
-            for ($i=0; $i<$steps; $i++) {
110
+            for ($i = 0; $i < $steps; $i++) {
111 111
                 array_push($item['keys'], array_shift($item['keys']));
112 112
             }
113 113
             $rotatedArray[] = $item;
Please login to merge, or discard this patch.