@@ -35,7 +35,7 @@ |
||
35 | 35 | |
36 | 36 | $formSetting = $this->formSettings->find($event->formSubmission->type); |
37 | 37 | |
38 | - if ($formSetting && ! empty($formSetting->recipients)) { |
|
38 | + if ($formSetting && !empty($formSetting->recipients)) { |
|
39 | 39 | Mail::to($formSetting->array_recipients) |
40 | 40 | ->send(new Contact($event->formSubmission)); |
41 | 41 | } |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | protected function setLocalesAttributes($attributes) |
32 | 32 | { |
33 | - View::composer(['partials.alternates', 'partials.locales'], function (\Illuminate\View\View $view) use ($attributes) { |
|
33 | + View::composer(['partials.alternates', 'partials.locales'], function(\Illuminate\View\View $view) use ($attributes) { |
|
34 | 34 | $view->withAttributes($attributes); |
35 | 35 | }); |
36 | 36 | } |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | protected function setTranslatable($translatable) |
44 | 44 | { |
45 | - View::composer(['partials.alternates', 'partials.locales'], function (\Illuminate\View\View $view) use ($translatable) { |
|
45 | + View::composer(['partials.alternates', 'partials.locales'], function(\Illuminate\View\View $view) use ($translatable) { |
|
46 | 46 | $view->withTranslatable($translatable); |
47 | 47 | }); |
48 | 48 | } |
@@ -9,13 +9,13 @@ |
||
9 | 9 | |
10 | 10 | class DonationController extends Controller |
11 | 11 | { |
12 | - public function Donation(Request $request, $id){ |
|
12 | + public function Donation(Request $request, $id) { |
|
13 | 13 | |
14 | 14 | echo Donation::getPaymentPage($request, $id); |
15 | 15 | |
16 | 16 | |
17 | 17 | } |
18 | - public function recordPayment(Request $request,$id){ |
|
18 | + public function recordPayment(Request $request, $id) { |
|
19 | 19 | |
20 | 20 | PaymentImplementation::createPayment($request, $id); |
21 | 21 |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | */ |
222 | 222 | public function redirectToProvider($provider, Request $request) |
223 | 223 | { |
224 | - if (! \in_array($provider, $this->supportedProviders, true)) { |
|
224 | + if (!\in_array($provider, $this->supportedProviders, true)) { |
|
225 | 225 | return redirect()->route('home')->withFlashError(__('auth.socialite.unacceptable', ['provider' => $provider])); |
226 | 226 | } |
227 | 227 | |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | return redirect()->route('login')->withFlashError($e->getMessage()); |
247 | 247 | } |
248 | 248 | |
249 | - if (! $user->active) { |
|
249 | + if (!$user->active) { |
|
250 | 250 | return redirect()->route('login')->withFlashError(__('labels.auth.disabled')); |
251 | 251 | } |
252 | 252 |
@@ -43,7 +43,7 @@ |
||
43 | 43 | */ |
44 | 44 | public function index(Request $request) |
45 | 45 | { |
46 | - $locales = collect($this->localization->getSupportedLocales())->map(function ($item) { |
|
46 | + $locales = collect($this->localization->getSupportedLocales())->map(function($item) { |
|
47 | 47 | return $item['native']; |
48 | 48 | }); |
49 | 49 |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | |
108 | 108 | $publishedPosts = $this->posts->published(); |
109 | 109 | |
110 | - $publishedPosts->each(function (Post $post) use ($sitemap) { |
|
110 | + $publishedPosts->each(function(Post $post) use ($sitemap) { |
|
111 | 111 | $item = [ |
112 | 112 | 'loc' => route('blog.show', $post->slug), |
113 | 113 | 'lastmod' => $post->published_at, |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | |
128 | 128 | $tags = $this->tags->query()->get(); |
129 | 129 | |
130 | - $tags->each(function (Tag $tag) use ($sitemap) { |
|
130 | + $tags->each(function(Tag $tag) use ($sitemap) { |
|
131 | 131 | $item = [ |
132 | 132 | 'loc' => route('blog.tag', $tag->slug), |
133 | 133 | 'lastmod' => Carbon::now(), |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | |
149 | 149 | $users = $this->users->query()->get(); |
150 | 150 | |
151 | - $users->each(function (User $user) use ($sitemap) { |
|
151 | + $users->each(function(User $user) use ($sitemap) { |
|
152 | 152 | $sitemap->addItem([ |
153 | 153 | 'loc' => route('blog.owner', $user->slug), |
154 | 154 | 'lastmod' => $user->created_at, |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | { |
165 | 165 | $defaultLocale = $this->localization->getDefaultLocale(); |
166 | 166 | |
167 | - return array_filter($this->localization->getSupportedLocales(), function ($localCode) use ($defaultLocale) { |
|
167 | + return array_filter($this->localization->getSupportedLocales(), function($localCode) use ($defaultLocale) { |
|
168 | 168 | return $localCode !== $defaultLocale; |
169 | 169 | }, ARRAY_FILTER_USE_KEY); |
170 | 170 | } |
@@ -61,8 +61,7 @@ |
||
61 | 61 | |
62 | 62 | return redirect()->route( |
63 | 63 | $status == 1 ? |
64 | - 'admin.auth.user.index' : |
|
65 | - 'admin.auth.user.deactivated' |
|
64 | + 'admin.auth.user.index' : 'admin.auth.user.deactivated' |
|
66 | 65 | )->withFlashSuccess(__('alerts.backend.users.updated')); |
67 | 66 | } |
68 | 67 |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | */ |
94 | 94 | public function show(User $user) |
95 | 95 | { |
96 | - if (! $user->can_edit) { |
|
96 | + if (!$user->can_edit) { |
|
97 | 97 | // Only Super admin can access himself |
98 | 98 | abort(403); |
99 | 99 | } |
@@ -204,6 +204,6 @@ discard block |
||
204 | 204 | public function activeToggle(User $user) |
205 | 205 | { |
206 | 206 | $this->authorize('edit users'); |
207 | - $user->update(['active' => ! $user->active]); |
|
207 | + $user->update(['active' => !$user->active]); |
|
208 | 208 | } |
209 | 209 | } |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | { |
52 | 52 | $query = $this->posts->query(); |
53 | 53 | |
54 | - if (! Gate::check('view posts')) { |
|
54 | + if (!Gate::check('view posts')) { |
|
55 | 55 | // Filter to only current user's posts |
56 | 56 | $query->whereUserId(auth()->id()); |
57 | 57 | } |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | /** @var Builder $query */ |
74 | 74 | $query = $this->posts->query(); |
75 | 75 | |
76 | - if (! Gate::check('view posts')) { |
|
76 | + if (!Gate::check('view posts')) { |
|
77 | 77 | // Filter to only current user's posts |
78 | 78 | $query->whereUserId(auth()->id()); |
79 | 79 | } |
@@ -247,12 +247,12 @@ discard block |
||
247 | 247 | public function pinToggle(Post $post) |
248 | 248 | { |
249 | 249 | $this->authorize('edit posts'); |
250 | - $post->update(['pinned' => ! $post->pinned]); |
|
250 | + $post->update(['pinned' => !$post->pinned]); |
|
251 | 251 | } |
252 | 252 | |
253 | 253 | public function promoteToggle(Post $post) |
254 | 254 | { |
255 | 255 | $this->authorize('edit posts'); |
256 | - $post->update(['promoted' => ! $post->promoted]); |
|
256 | + $post->update(['promoted' => !$post->promoted]); |
|
257 | 257 | } |
258 | 258 | } |