Passed
Push — npm/audit-fix ( 9e66ec )
by Yonathan
29:50 queued 14:40
created
app/Http/ViewComposers/MenuComposer.php 1 patch
Spacing   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -16,13 +16,13 @@  discard block
 block discarded – undo
16 16
      * @param  View  $view
17 17
      * @return void
18 18
      */
19
-    public function compose(View $view)
19
+    public function compose (View $view)
20 20
     {
21
-        if (WhichPortal::isApplicantPortal()) {
22
-            $menu = Lang::get('applicant/menu');
21
+        if (WhichPortal::isApplicantPortal ()) {
22
+            $menu = Lang::get ('applicant/menu');
23 23
 
24 24
             // Set active on the proper item
25
-            switch (Route::currentRouteName()) {
25
+            switch (Route::currentRouteName ()) {
26 26
                 case 'home':
27 27
                     $menu['items']['home']['active'] = true;
28 28
                     break;
@@ -82,15 +82,15 @@  discard block
 block discarded – undo
82 82
             }
83 83
 
84 84
             // Set route links
85
-            $menu['items']['home']['link'] = route('home');
86
-            $menu['items']['jobs']['link'] = route('jobs.index');
87
-            $menu['items']['applications']['link'] = route('applications.index');
88
-            $menu['items']['profile']['link'] = route('profile');
89
-            $menu['items']['faq']['link'] = route('faq');
90
-            $menu['items']['itp']['link'] = route('itp');
85
+            $menu['items']['home']['link'] = route ('home');
86
+            $menu['items']['jobs']['link'] = route ('jobs.index');
87
+            $menu['items']['applications']['link'] = route ('applications.index');
88
+            $menu['items']['profile']['link'] = route ('profile');
89
+            $menu['items']['faq']['link'] = route ('faq');
90
+            $menu['items']['itp']['link'] = route ('itp');
91 91
 
92 92
             // Check if use is logged in, and remove invalid menu items
93
-            if (Auth::check()) {
93
+            if (Auth::check ()) {
94 94
                 unset($menu['items']['login']);
95 95
                 unset($menu['items']['register']);
96 96
                 // TODO set profile like using user slug
@@ -99,11 +99,11 @@  discard block
 block discarded – undo
99 99
                 unset($menu['items']['applications']);
100 100
                 unset($menu['items']['profile']);
101 101
             }
102
-        } elseif (WhichPortal::isManagerPortal()) {
103
-            $menu = Lang::get('manager/menu');
102
+        } elseif (WhichPortal::isManagerPortal ()) {
103
+            $menu = Lang::get ('manager/menu');
104 104
 
105 105
             // Set active on the proper item
106
-            switch (Route::currentRouteName()) {
106
+            switch (Route::currentRouteName ()) {
107 107
                 case 'manager.home':
108 108
                     $menu['items']['home']['active'] = true;
109 109
                     break;
@@ -144,15 +144,15 @@  discard block
 block discarded – undo
144 144
             }
145 145
 
146 146
             // Set route links
147
-            $menu['items']['home']['link'] = route('manager.home');
148
-            $menu['items']['jobs']['link'] = route('manager.jobs.index');
147
+            $menu['items']['home']['link'] = route ('manager.home');
148
+            $menu['items']['jobs']['link'] = route ('manager.jobs.index');
149 149
             // TODO: restore when job poster builder complete
150 150
             // $menu['items']['create_job']['link'] = route('manager.jobs.create');
151
-            $menu['items']['profile']['link'] = route('manager.profile');
152
-            $menu['items']['faq']['link'] = route('manager.faq.section');
151
+            $menu['items']['profile']['link'] = route ('manager.profile');
152
+            $menu['items']['faq']['link'] = route ('manager.faq.section');
153 153
 
154 154
             // Check if use is logged in, and remove invalid menu items
155
-            if (Auth::check()) {
155
+            if (Auth::check ()) {
156 156
                 unset($menu['items']['login']);
157 157
                 unset($menu['items']['register']);
158 158
                 // TODO set profile like using user slug
@@ -162,13 +162,13 @@  discard block
 block discarded – undo
162 162
                 unset($menu['items']['create_job']);
163 163
                 unset($menu['items']['profile']);
164 164
             }
165
-        } elseif (WhichPortal::isAdminPortal()) {
165
+        } elseif (WhichPortal::isAdminPortal ()) {
166 166
             // Use the manager menu, keeping only
167
-            $menu = Lang::get('admin/menu');
167
+            $menu = Lang::get ('admin/menu');
168 168
 
169 169
 
170 170
             // Set active on the proper item
171
-            switch (Route::currentRouteName()) {
171
+            switch (Route::currentRouteName ()) {
172 172
                 case 'admin.home':
173 173
                     $menu['items']['home']['active'] = true;
174 174
                     break;
@@ -178,10 +178,10 @@  discard block
 block discarded – undo
178 178
             }
179 179
 
180 180
             // Set route links
181
-            $menu['items']['home']['link'] = backpack_url();
181
+            $menu['items']['home']['link'] = backpack_url ();
182 182
 
183 183
             // Check if use is logged in, and remove invalid menu items
184
-            if (Auth::check()) {
184
+            if (Auth::check ()) {
185 185
                 unset($menu['items']['login']);
186 186
                 unset($menu['items']['register']);
187 187
                 // TODO set profile like using user slug
@@ -190,30 +190,30 @@  discard block
 block discarded – undo
190 190
             }
191 191
         }
192 192
         // Set login modals data
193
-        if (WhichPortal::isManagerPortal()) {
193
+        if (WhichPortal::isManagerPortal ()) {
194 194
             $loginModals = [
195
-                'modals' => Lang::get('common/login_modals'),
196
-                'register_link' => route('manager.register'),
197
-                'login_link' => route('manager.login'),
198
-                'logout_link' => route('manager.logout'),
195
+                'modals' => Lang::get ('common/login_modals'),
196
+                'register_link' => route ('manager.register'),
197
+                'login_link' => route ('manager.login'),
198
+                'logout_link' => route ('manager.logout'),
199 199
             ];
200
-        } elseif (WhichPortal::isAdminPortal()) {
200
+        } elseif (WhichPortal::isAdminPortal ()) {
201 201
              $loginModals = [
202
-                'modals' => Lang::get('common/login_modals'),
203
-                'register_link' => route('register'),
204
-                'login_link' => backpack_url('login'),
205
-                'logout_link' => backpack_url('logout'),
202
+                'modals' => Lang::get ('common/login_modals'),
203
+                'register_link' => route ('register'),
204
+                'login_link' => backpack_url ('login'),
205
+                'logout_link' => backpack_url ('logout'),
206 206
              ];
207 207
         } else {
208 208
             $loginModals = [
209
-                'modals' => Lang::get('common/login_modals'),
210
-                'register_link' => route('register'),
211
-                'login_link' => route('login'),
212
-                'logout_link' => route('logout'),
209
+                'modals' => Lang::get ('common/login_modals'),
210
+                'register_link' => route ('register'),
211
+                'login_link' => route ('login'),
212
+                'logout_link' => route ('logout'),
213 213
             ];
214 214
         }
215 215
 
216
-        $view->with('menu', $menu)
217
-            ->with('login_modals', $loginModals);
216
+        $view->with ('menu', $menu)
217
+            ->with ('login_modals', $loginModals);
218 218
     }
219 219
 }
Please login to merge, or discard this patch.
app/Http/ViewComposers/AlertComposer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
      * @param  View  $view
14 14
      * @return void
15 15
      */
16
-    public function compose(View $view)
16
+    public function compose (View $view)
17 17
     {
18
-        $view->with('alert', Lang::get('common/alert'));
18
+        $view->with ('alert', Lang::get ('common/alert'));
19 19
     }
20 20
 }
21 21
\ No newline at end of file
Please login to merge, or discard this patch.
app/Http/ViewComposers/SkillComposer.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -26,19 +26,19 @@
 block discarded – undo
26 26
      *
27 27
      * @return void
28 28
      */
29
-    public function compose(View $view) : void
29
+    public function compose (View $view) : void
30 30
     {
31 31
         if (!$this->skillLevels) {
32
-            $this->skillLevels = SkillLevel::all();
32
+            $this->skillLevels = SkillLevel::all ();
33 33
         }
34 34
 
35 35
         if (!$this->skills) {
36
-            $this->skills = Skill::all();
36
+            $this->skills = Skill::all ();
37 37
         }
38 38
 
39
-        $view->with('skills', $this->skills);
40
-        $view->with('skill_levels', $this->skillLevels);
41
-        $view->with('skill_template', Lang::get('common/skills'));
42
-        $view->with('skills_modal', Lang::get('common/skills_modals'));
39
+        $view->with ('skills', $this->skills);
40
+        $view->with ('skill_levels', $this->skillLevels);
41
+        $view->with ('skill_template', Lang::get ('common/skills'));
42
+        $view->with ('skills_modal', Lang::get ('common/skills_modals'));
43 43
     }
44 44
 }
Please login to merge, or discard this patch.
app/Http/ViewComposers/LangMenuComposer.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@  discard block
 block discarded – undo
14 14
      * @param  View  $view
15 15
      * @return void
16 16
      */
17
-    public function compose(View $view)
17
+    public function compose (View $view)
18 18
     {
19
-        $locale = LaravelLocalization::getCurrentLocale();
19
+        $locale = LaravelLocalization::getCurrentLocale ();
20 20
 
21
-        switch($locale) {
21
+        switch ($locale) {
22 22
             case 'en':
23 23
                 $linkLocale = 'fr';
24 24
                 break;
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
                 break;
31 31
         }
32 32
 
33
-        $view->with('lang_menu', Lang::get('common/lang_menu'));
34
-        $view->with('language_link', LaravelLocalization::getLocalizedURL($linkLocale));
33
+        $view->with ('lang_menu', Lang::get ('common/lang_menu'));
34
+        $view->with ('language_link', LaravelLocalization::getLocalizedURL ($linkLocale));
35 35
     }
36 36
 }
Please login to merge, or discard this patch.
app/Http/ViewComposers/WorkSampleComposer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,13 +20,13 @@
 block discarded – undo
20 20
      *
21 21
      * @return void
22 22
      */
23
-    public function compose(View $view) : void
23
+    public function compose (View $view) : void
24 24
     {
25 25
         if (!$this->fileTypes) {
26
-            $this->fileTypes = FileType::all();
26
+            $this->fileTypes = FileType::all ();
27 27
         }
28 28
 
29
-        $view->with('file_types', $this->fileTypes);
30
-        $view->with('sample_template', Lang::get('common/work_samples'));
29
+        $view->with ('file_types', $this->fileTypes);
30
+        $view->with ('sample_template', Lang::get ('common/work_samples'));
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
app/Http/ViewComposers/WorkExperienceComposer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
      * @param  View  $view
14 14
      * @return void
15 15
      */
16
-    public function compose(View $view)
16
+    public function compose (View $view)
17 17
     {
18
-        $view->with('work_template', Lang::get('common/work_experience'));
18
+        $view->with ('work_template', Lang::get ('common/work_experience'));
19 19
     }
20 20
 }
Please login to merge, or discard this patch.
app/Http/ViewComposers/DemoNotificationComposer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@
 block discarded – undo
14 14
      * @param  View  $view
15 15
      * @return void
16 16
      */
17
-    public function compose(View $view)
17
+    public function compose (View $view)
18 18
     {
19
-        $show_demo_notification = Auth::user() !== null && Auth::user()->isDemoManager();
20
-        $view->with([
21
-            'notification' => Lang::get('manager/notification'),
19
+        $show_demo_notification = Auth::user () !== null && Auth::user ()->isDemoManager ();
20
+        $view->with ([
21
+            'notification' => Lang::get ('manager/notification'),
22 22
             'show_demo_notification' => $show_demo_notification,
23 23
         ]);
24 24
     }
Please login to merge, or discard this patch.
app/Http/ViewComposers/ApplicantProfileMenuComposer.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -15,18 +15,18 @@  discard block
 block discarded – undo
15 15
      * @param  View  $view
16 16
      * @return void
17 17
      */
18
-    public function compose(View $view)
18
+    public function compose (View $view)
19 19
     {
20
-        $profileMenu = Lang::get('applicant/applicant_profile_menu');
20
+        $profileMenu = Lang::get ('applicant/applicant_profile_menu');
21 21
 
22
-        $profileMenu['about']['link'] = route('profile.about.edit', $view->getData()['applicant']);
23
-        $profileMenu['experience']['link'] = route('profile.experience.edit', $view->getData()['applicant']);
24
-        $profileMenu['skills']['link'] = route('profile.skills.edit', $view->getData()['applicant']);
25
-        $profileMenu['references']['link'] = route('profile.references.edit', $view->getData()['applicant']);
26
-        $profileMenu['portfolio']['link'] = route('profile.work_samples.edit', $view->getData()['applicant']);
22
+        $profileMenu['about']['link'] = route ('profile.about.edit', $view->getData ()['applicant']);
23
+        $profileMenu['experience']['link'] = route ('profile.experience.edit', $view->getData ()['applicant']);
24
+        $profileMenu['skills']['link'] = route ('profile.skills.edit', $view->getData ()['applicant']);
25
+        $profileMenu['references']['link'] = route ('profile.references.edit', $view->getData ()['applicant']);
26
+        $profileMenu['portfolio']['link'] = route ('profile.work_samples.edit', $view->getData ()['applicant']);
27 27
 
28 28
         //Set active on the proper item
29
-        switch(Route::currentRouteName()) {
29
+        switch (Route::currentRouteName ()) {
30 30
             case('profile.about'):
31 31
             case('profile.about.edit'):
32 32
             case('profile.about.update'):
@@ -54,6 +54,6 @@  discard block
 block discarded – undo
54 54
                 break;
55 55
         }
56 56
 
57
-        $view->with('profile_menu', $profileMenu);
57
+        $view->with ('profile_menu', $profileMenu);
58 58
     }
59 59
 }
Please login to merge, or discard this patch.
app/Http/ViewComposers/DegreeComposer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,13 +20,13 @@
 block discarded – undo
20 20
      *
21 21
      * @return void
22 22
      */
23
-    public function compose(View $view) : void
23
+    public function compose (View $view) : void
24 24
     {
25 25
         if (!$this->degreeTypes) {
26
-            $this->degreeTypes = DegreeType::all();
26
+            $this->degreeTypes = DegreeType::all ();
27 27
         }
28 28
 
29
-        $view->with('degree_types', $this->degreeTypes);
30
-        $view->with('degree_template', Lang::get('common/degree'));
29
+        $view->with ('degree_types', $this->degreeTypes);
30
+        $view->with ('degree_template', Lang::get ('common/degree'));
31 31
     }
32 32
 }
Please login to merge, or discard this patch.