@@ -178,11 +178,11 @@ |
||
178 | 178 | return Redirect::to($redirectUrl)->withErrors(trans('admin.settings.general.too-big', ['size' => $maxSize])); |
179 | 179 | } |
180 | 180 | |
181 | - if (! $file->isValid() || $file->getError()) { |
|
181 | + if (!$file->isValid() || $file->getError()) { |
|
182 | 182 | return Redirect::to($redirectUrl)->withErrors($file->getErrorMessage()); |
183 | 183 | } |
184 | 184 | |
185 | - if (! starts_with($file->getMimeType(), 'image/')) { |
|
185 | + if (!starts_with($file->getMimeType(), 'image/')) { |
|
186 | 186 | return Redirect::to($redirectUrl)->withErrors(trans('admin.settings.general.images-only')); |
187 | 187 | } |
188 | 188 |
@@ -189,7 +189,7 @@ |
||
189 | 189 | */ |
190 | 190 | protected function respond() |
191 | 191 | { |
192 | - if (! empty($this->meta)) { |
|
192 | + if (!empty($this->meta)) { |
|
193 | 193 | $response['meta'] = $this->meta; |
194 | 194 | } |
195 | 195 |
@@ -29,7 +29,7 @@ |
||
29 | 29 | */ |
30 | 30 | public function postUpdateProject(Project $project) |
31 | 31 | { |
32 | - if (! $project->update(Binput::except(['_token']))) { |
|
32 | + if (!$project->update(Binput::except(['_token']))) { |
|
33 | 33 | throw new Exception(trans('dashboard.projects.edit.failure')); |
34 | 34 | } |
35 | 35 |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | $allIssues = Issue::whereBetween('created_at', [ |
83 | 83 | $this->startDate->copy()->subDays(30)->format('Y-m-d').' 00:00:00', |
84 | 84 | $this->startDate->format('Y-m-d').' 23:59:59', |
85 | - ])->orderBy('created_at', 'desc')->get()->groupBy(function (Issue $issue) { |
|
85 | + ])->orderBy('created_at', 'desc')->get()->groupBy(function(Issue $issue) { |
|
86 | 86 | return (new Date($issue->created_at)) |
87 | 87 | ->setTimezone($this->dateTimeZone)->toDateString(); |
88 | 88 | }); |
@@ -91,13 +91,13 @@ discard block |
||
91 | 91 | foreach (range(0, 30) as $i) { |
92 | 92 | $date = (new Date($this->startDate))->setTimezone($this->dateTimeZone)->subDays($i); |
93 | 93 | |
94 | - if (! isset($allIssues[$date->toDateString()])) { |
|
94 | + if (!isset($allIssues[$date->toDateString()])) { |
|
95 | 95 | $allIssues[$date->toDateString()] = []; |
96 | 96 | } |
97 | 97 | } |
98 | 98 | |
99 | 99 | // Sort the array so it takes into account the added days |
100 | - $allIssues = $allIssues->sortBy(function ($value, $key) { |
|
100 | + $allIssues = $allIssues->sortBy(function($value, $key) { |
|
101 | 101 | return strtotime($key); |
102 | 102 | }, SORT_REGULAR, false); |
103 | 103 | |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | $allSubscribers = Subscriber::whereBetween('created_at', [ |
115 | 115 | $this->startDate->copy()->subDays(30)->format('Y-m-d').' 00:00:00', |
116 | 116 | $this->startDate->format('Y-m-d').' 23:59:59', |
117 | - ])->orderBy('created_at', 'desc')->get()->groupBy(function (Subscriber $issue) { |
|
117 | + ])->orderBy('created_at', 'desc')->get()->groupBy(function(Subscriber $issue) { |
|
118 | 118 | return (new Date($issue->created_at)) |
119 | 119 | ->setTimezone($this->dateTimeZone)->toDateString(); |
120 | 120 | }); |
@@ -123,13 +123,13 @@ discard block |
||
123 | 123 | foreach (range(0, 30) as $i) { |
124 | 124 | $date = (new Date($this->startDate))->setTimezone($this->dateTimeZone)->subDays($i); |
125 | 125 | |
126 | - if (! isset($allSubscribers[$date->toDateString()])) { |
|
126 | + if (!isset($allSubscribers[$date->toDateString()])) { |
|
127 | 127 | $allSubscribers[$date->toDateString()] = []; |
128 | 128 | } |
129 | 129 | } |
130 | 130 | |
131 | 131 | // Sort the array so it takes into account the added days |
132 | - $allSubscribers = $allSubscribers->sortBy(function ($value, $key) { |
|
132 | + $allSubscribers = $allSubscribers->sortBy(function($value, $key) { |
|
133 | 133 | return strtotime($key); |
134 | 134 | }, SORT_REGULAR, false); |
135 | 135 |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | $allIssues = Issue::whereBetween('created_at', [ |
102 | 102 | $startDate->copy()->subDays($daysToShow)->format('Y-m-d').' 00:00:00', |
103 | 103 | $startDate->format('Y-m-d').' 23:59:59', |
104 | - ])->orderBy('created_at', 'desc')->get()->groupBy(function (Issue $issue) use ($dateTimeZone) { |
|
104 | + ])->orderBy('created_at', 'desc')->get()->groupBy(function(Issue $issue) use ($dateTimeZone) { |
|
105 | 105 | // If it's scheduled, get the scheduled at date. |
106 | 106 | if ($issue->is_scheduled) { |
107 | 107 | return (new Date($issue->scheduled_at)) |
@@ -116,13 +116,13 @@ discard block |
||
116 | 116 | foreach ($issueDays as $i) { |
117 | 117 | $date = (new Date($startDate))->setTimezone($dateTimeZone)->subDays($i); |
118 | 118 | |
119 | - if (! isset($allIssues[$date->toDateString()])) { |
|
119 | + if (!isset($allIssues[$date->toDateString()])) { |
|
120 | 120 | $allIssues[$date->toDateString()] = []; |
121 | 121 | } |
122 | 122 | } |
123 | 123 | |
124 | 124 | // Sort the array so it takes into account the added days |
125 | - $allIssues = $allIssues->sortBy(function ($value, $key) { |
|
125 | + $allIssues = $allIssues->sortBy(function($value, $key) { |
|
126 | 126 | return strtotime($key); |
127 | 127 | }, SORT_REGULAR, true)->all(); |
128 | 128 |
@@ -47,7 +47,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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(); |
@@ -43,7 +43,7 @@ |
||
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 |
@@ -75,7 +75,7 @@ discard block |
||
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 |
||
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 |
@@ -27,7 +27,7 @@ |
||
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 |