Completed
Push — master ( c58ab0...f81f8e )
by Phecho
03:39
created
app/Http/Controllers/RepositoryController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     {
48 48
         $repository = $this->getRepositoryFromName([Setting::get('git_repositories_path')], $repo);
49 49
 
50
-        if (! $path) {
50
+        if (!$path) {
51 51
             $path = $repository->getHead();
52 52
         }
53 53
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         $parent = null;
63 63
         if (($slash = strrpos($tree, '/')) !== false) {
64 64
             $parent = substr($tree, 0, $slash);
65
-        } elseif (! empty($tree)) {
65
+        } elseif (!empty($tree)) {
66 66
             $parent = '';
67 67
         }
68 68
 
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
         }
153 153
 
154 154
         $allRepositories = array_unique($allRepositories, SORT_REGULAR);
155
-        uksort($allRepositories, function ($k1, $k2) {
155
+        uksort($allRepositories, function($k1, $k2) {
156 156
             return strtolower($k2) < strtolower($k1);
157 157
         });
158 158
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
                 continue;
175 175
             }
176 176
 
177
-            if (! $file->isReadable()) {
177
+            if (!$file->isReadable()) {
178 178
                 continue;
179 179
             }
180 180
 
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
                         $description = null;
200 200
                     }
201 201
 
202
-                    if (! $topLevel) {
202
+                    if (!$topLevel) {
203 203
                         $repoName = $file->getPathInfo()->getFilename().'/'.$file->getFilename();
204 204
                     } else {
205 205
                         $repoName = $file->getFilename();
Please login to merge, or discard this patch.
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/Http/helpers.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 use Illuminate\Support\Facades\Request;
15 15
 use Jenssegers\Date\Date;
16 16
 
17
-if (! function_exists('back_url')) {
17
+if (!function_exists('back_url')) {
18 18
     /**
19 19
      * Create a new back url.
20 20
      *
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     {
30 30
         $url = app('url');
31 31
 
32
-        if (! is_null($route) && $url->previous() === $url->full()) {
32
+        if (!is_null($route) && $url->previous() === $url->full()) {
33 33
             return $url->route($name, $params, $status, $headers);
34 34
         }
35 35
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     }
38 38
 }
39 39
 
40
-if (! function_exists('set_active')) {
40
+if (!function_exists('set_active')) {
41 41
     /**
42 42
      * Set active class if request is in path.
43 43
      *
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     }
60 60
 }
61 61
 
62
-if (! function_exists('formatted_date')) {
62
+if (!function_exists('formatted_date')) {
63 63
     /**
64 64
      * Formats a date with the user timezone and the selected format.
65 65
      *
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     }
76 76
 }
77 77
 
78
-if (! function_exists('subscribers_enabled')) {
78
+if (!function_exists('subscribers_enabled')) {
79 79
     /**
80 80
      * Is the subscriber functionality enabled and configured.
81 81
      *
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     }
92 92
 }
93 93
 
94
-if (! function_exists('color_darken')) {
94
+if (!function_exists('color_darken')) {
95 95
     /**
96 96
      * Darken a color.
97 97
      *
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     }
120 120
 }
121 121
 
122
-if (! function_exists('color_contrast')) {
122
+if (!function_exists('color_contrast')) {
123 123
     /**
124 124
      * Calculates colour contrast.
125 125
      *
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.