Passed
Push — master ( 71a230...3e0e39 )
by Jeremy
04:55 queued 11s
created
app/Logic/Macros/HtmlMacros.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
app/Http/Middleware/Authenticate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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.');
Please login to merge, or discard this patch.
app/Http/Middleware/CheckCurrentUser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Http/Controllers/RestoreUserController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/SocialController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/RegisterController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     {
60 60
         $data['captcha'] = $this->captchaCheck();
61 61
 
62
-        if (! config('settings.reCaptchStatus')) {
62
+        if (!config('settings.reCaptchStatus')) {
63 63
             $data['captcha'] = true;
64 64
         }
65 65
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
             'password'          => Hash::make($data['password']),
112 112
             'token'             => str_random(64),
113 113
             'signup_ip_address' => $ipAddress->getClientIp(),
114
-            'activated'         => ! config('settings.activation'),
114
+            'activated'         => !config('settings.activation'),
115 115
         ]);
116 116
 
117 117
         $user->attachRole($role);
Please login to merge, or discard this patch.
app/Mail/ExceptionOccured.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,11 +47,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Traits/ActivationTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.