@@ -50,12 +50,12 @@ |
||
50 | 50 | public function get($name, $default = null) |
51 | 51 | { |
52 | 52 | // if we've not loaded the settings, load them now |
53 | - if (! $this->settings) { |
|
53 | + if (!$this->settings) { |
|
54 | 54 | $this->settings = $this->model->all()->lists('value', 'name'); |
55 | 55 | } |
56 | 56 | |
57 | 57 | // if the setting exists and is not blank, return it |
58 | - if (! empty($this->settings[$name])) { |
|
58 | + if (!empty($this->settings[$name])) { |
|
59 | 59 | return $this->settings[$name]; |
60 | 60 | } |
61 | 61 |
@@ -49,7 +49,7 @@ |
||
49 | 49 | */ |
50 | 50 | public function fire() |
51 | 51 | { |
52 | - if (! $this->confirmToProceed()) { |
|
52 | + if (!$this->confirmToProceed()) { |
|
53 | 53 | return; |
54 | 54 | } |
55 | 55 |
@@ -73,7 +73,7 @@ |
||
73 | 73 | { |
74 | 74 | $redirect = $transformed instanceof HttpExceptionInterface && $transformed->getStatusCode() === 401; |
75 | 75 | |
76 | - return $redirect && ! $this->request->is('api*'); |
|
76 | + return $redirect && !$this->request->is('api*'); |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |
@@ -47,7 +47,7 @@ |
||
47 | 47 | { |
48 | 48 | if ($this->request->is('api*')) { |
49 | 49 | foreach ($displayers as $index => $displayer) { |
50 | - if (! str_contains($displayer->contentType(), 'application/')) { |
|
50 | + if (!str_contains($displayer->contentType(), 'application/')) { |
|
51 | 51 | unset($displayers[$index]); |
52 | 52 | } |
53 | 53 | } |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | */ |
53 | 53 | public function handle(IssueWasAddedEvent $event) |
54 | 54 | { |
55 | - if (! $event->issue->notify) { |
|
55 | + if (!$event->issue->notify) { |
|
56 | 56 | //return false; |
57 | 57 | } |
58 | 58 | |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | $this->mailer->queue([ |
78 | 78 | 'html' => 'emails.issues.new-html', |
79 | 79 | 'text' => 'emails.issues.new-text', |
80 | - ], $mail, function (Message $message) use ($mail) { |
|
80 | + ], $mail, function(Message $message) use ($mail) { |
|
81 | 81 | $message->to($mail['email'])->subject($mail['subject']); |
82 | 82 | }); |
83 | 83 | } |
@@ -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 |