Completed
Pull Request — master (#106)
by Phecho
05:57
created
app/Http/Controllers/SignupController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 
44 44
         $invite = Invite::where('code', '=', $code)->first();
45 45
 
46
-        if (! $invite || $invite->claimed()) {
46
+        if (!$invite || $invite->claimed()) {
47 47
             //throw new BadRequestHttpException();
48 48
         }
49 49
 
Please login to merge, or discard this patch.
app/Http/Controllers/SubscribeController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 
76 76
         $subscriber = Subscriber::where('verify_code', '=', $code)->first();
77 77
 
78
-        if (! $subscriber || $subscriber->verified()) {
78
+        if (!$subscriber || $subscriber->verified()) {
79 79
             throw new BadRequestHttpException();
80 80
         }
81 81
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 
101 101
         $subscriber = Subscriber::where('verify_code', '=', $code)->first();
102 102
 
103
-        if (! $subscriber || ! $subscriber->verified()) {
103
+        if (!$subscriber || !$subscriber->verified()) {
104 104
             throw new BadRequestHttpException();
105 105
         }
106 106
 
Please login to merge, or discard this patch.
app/Http/Middleware/Acceptable.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
      */
28 28
     public function handle($request, Closure $next, $type)
29 29
     {
30
-        if (! $request->accepts($type)) {
30
+        if (!$request->accepts($type)) {
31 31
             throw new NotAcceptableHttpException();
32 32
         }
33 33
 
Please login to merge, or discard this patch.
app/Http/Middleware/Admin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
      */
45 45
     public function handle($request, Closure $next)
46 46
     {
47
-        if (! $this->auth->check() || ($this->auth->check() && ! $this->auth->user()->isAdmin)) {
47
+        if (!$this->auth->check() || ($this->auth->check() && !$this->auth->user()->isAdmin)) {
48 48
             throw new HttpException(401);
49 49
         }
50 50
 
Please login to merge, or discard this patch.
app/Http/Middleware/HasSetting.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $settingName = $this->getSettingName($request);
36 36
 
37 37
         try {
38
-            if (! Setting::get($settingName)) {
38
+            if (!Setting::get($settingName)) {
39 39
                 return Redirect::to('install');
40 40
             }
41 41
         } catch (Exception $e) {
Please login to merge, or discard this patch.
app/Http/Middleware/SubscribersConfigured.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      */
27 27
     public function handle($request, Closure $next)
28 28
     {
29
-        if (! subscribers_enabled()) {
29
+        if (!subscribers_enabled()) {
30 30
             return Redirect::route('explore');
31 31
         }
32 32
 
Please login to merge, or discard this patch.
app/Models/Invite.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@
 block discarded – undo
38 38
     {
39 39
         parent::boot();
40 40
 
41
-        self::creating(function ($invite) {
42
-            if (! $invite->code) {
41
+        self::creating(function($invite) {
42
+            if (!$invite->code) {
43 43
                 $invite->code = self::generateInviteCode();
44 44
             }
45 45
         });
Please login to merge, or discard this patch.
app/Models/Subscriber.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@
 block discarded – undo
55 55
     {
56 56
         parent::boot();
57 57
 
58
-        self::creating(function ($user) {
59
-            if (! $user->verify_code) {
58
+        self::creating(function($user) {
59
+            if (!$user->verify_code) {
60 60
                 $user->verify_code = self::generateVerifyCode();
61 61
             }
62 62
         });
Please login to merge, or discard this patch.
app/Models/User.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -89,8 +89,8 @@  discard block
 block discarded – undo
89 89
     {
90 90
         parent::boot();
91 91
 
92
-        self::creating(function ($user) {
93
-            if (! $user->api_key) {
92
+        self::creating(function($user) {
93
+            if (!$user->api_key) {
94 94
                 $user->api_key = self::generateApiKey();
95 95
             }
96 96
         });
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     {
138 138
         $user = static::where('api_key', $token)->first($columns);
139 139
 
140
-        if (! $user) {
140
+        if (!$user) {
141 141
             throw new ModelNotFoundException();
142 142
         }
143 143
 
Please login to merge, or discard this patch.