@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | * |
14 | 14 | * @return string |
15 | 15 | */ |
16 | -HTML::macro('image_link', function ($url = '', $img = '', $alt = '', $link_name = '', $param = '', $active = true, $ssl = false) { |
|
16 | +HTML::macro('image_link', function($url = '', $img = '', $alt = '', $link_name = '', $param = '', $active = true, $ssl = false) { |
|
17 | 17 | $url = $ssl === true ? URL::to_secure($url) : URL::to($url); |
18 | 18 | $img = HTML::image($img, $alt); |
19 | 19 | $img .= $link_name; |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | * |
36 | 36 | * @return string |
37 | 37 | */ |
38 | -HTML::macro('icon_link', function ($url = '', $icon = '', $link_name = '', $param = '', $active = true, $ssl = false) { |
|
38 | +HTML::macro('icon_link', function($url = '', $icon = '', $link_name = '', $param = '', $active = true, $ssl = false) { |
|
39 | 39 | $url = $ssl === true ? URL::to_secure($url) : URL::to($url); |
40 | 40 | $icon = '<i class="'.$icon.'" aria-hidden="true"></i>'.$link_name; |
41 | 41 | $link = $active === true ? HTML::link($url, '#', $param) : $icon; |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | * |
57 | 57 | * @return string |
58 | 58 | */ |
59 | -HTML::macro('icon_btn', function ($url = '', $icon = '', $link_name = '', $param = '', $active = true, $ssl = false) { |
|
59 | +HTML::macro('icon_btn', function($url = '', $icon = '', $link_name = '', $param = '', $active = true, $ssl = false) { |
|
60 | 60 | $url = $ssl === true ? URL::to_secure($url) : URL::to($url); |
61 | 61 | $icon = $link_name.' <i class="'.$icon.'" aria-hidden="true"></i>'; |
62 | 62 | $link = $active === true ? HTML::link($url, '#', $param) : $icon; |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | * |
71 | 71 | * @return string |
72 | 72 | */ |
73 | -HTML::macro('show_username', function () { |
|
73 | +HTML::macro('show_username', function() { |
|
74 | 74 | $the_username = (Auth::user()->name === Auth::user()->email) ? ((is_null(Auth::user()->first_name)) ? (Auth::user()->name) : (Auth::user()->first_name)) : (((is_null(Auth::user()->name)) ? (Auth::user()->email) : (Auth::user()->name))); |
75 | 75 | |
76 | 76 | return $the_username; |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | */ |
40 | 40 | protected function redirectTo($request) |
41 | 41 | { |
42 | - if (! $request->expectsJson()) { |
|
42 | + if (!$request->expectsJson()) { |
|
43 | 43 | return route('login'); |
44 | 44 | } |
45 | 45 | } |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | */ |
55 | 55 | public function handle($request, Closure $next) |
56 | 56 | { |
57 | - if (! $this->auth->check()) { |
|
57 | + if (!$this->auth->check()) { |
|
58 | 58 | return redirect()->to('/login') |
59 | 59 | ->with('status', 'success') |
60 | 60 | ->with('message', 'Please login.'); |
@@ -20,7 +20,7 @@ |
||
20 | 20 | */ |
21 | 21 | public function handle($request, Closure $next) |
22 | 22 | { |
23 | - if (! $request->user()) { |
|
23 | + if (!$request->user()) { |
|
24 | 24 | abort(403, 'Unauthorized action.'); |
25 | 25 | } |
26 | 26 |
@@ -42,7 +42,7 @@ |
||
42 | 42 | $userId = $level1[0][1] / $userIdKey; |
43 | 43 | $user = SoftDeletesController::getDeletedUser($userId); |
44 | 44 | |
45 | - if (! is_object($user)) { |
|
45 | + if (!is_object($user)) { |
|
46 | 46 | abort(500); |
47 | 47 | } |
48 | 48 |
@@ -63,7 +63,7 @@ |
||
63 | 63 | |
64 | 64 | $email = $socialUserObject->email; |
65 | 65 | |
66 | - if (! $socialUserObject->email) { |
|
66 | + if (!$socialUserObject->email) { |
|
67 | 67 | $email = 'missing'.str_random(10).'@'.str_random(10).'.example.org'; |
68 | 68 | } |
69 | 69 |
@@ -47,11 +47,11 @@ |
||
47 | 47 | $bccEmails = config('exceptions.emailExceptionBCCtoDefault'); |
48 | 48 | } |
49 | 49 | |
50 | - if (! $fromSender) { |
|
50 | + if (!$fromSender) { |
|
51 | 51 | $fromSender = config('exceptions.emailExceptionFromDefault'); |
52 | 52 | } |
53 | 53 | |
54 | - if (! $subject) { |
|
54 | + if (!$subject) { |
|
55 | 55 | $subject = config('exceptions.emailExceptionSubjectDefault'); |
56 | 56 | } |
57 | 57 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | */ |
19 | 19 | public function initiateEmailActivation(User $user) |
20 | 20 | { |
21 | - if (! config('settings.activation') || ! $this->validateEmail($user)) { |
|
21 | + if (!config('settings.activation') || !$this->validateEmail($user)) { |
|
22 | 22 | return true; |
23 | 23 | } |
24 | 24 |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | { |
61 | 61 | $data['captcha'] = $this->captchaCheck(); |
62 | 62 | |
63 | - if (! config('settings.reCaptchStatus')) { |
|
63 | + if (!config('settings.reCaptchStatus')) { |
|
64 | 64 | $data['captcha'] = true; |
65 | 65 | } |
66 | 66 | |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | $user->attachRole($role); |
126 | 126 | $this->initiateEmailActivation($user); |
127 | 127 | |
128 | - if (! config('settings.activation')) { |
|
128 | + if (!config('settings.activation')) { |
|
129 | 129 | $profile = new Profile(); |
130 | 130 | $user->profile()->save($profile); |
131 | 131 | $user->save(); |