@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | { |
36 | 36 | return Cache::rememberForever( |
37 | 37 | "article.findByTechnicalName.{$technicalName}", |
38 | - function () use ($technicalName) : Article { |
|
38 | + function() use ($technicalName) : Article { |
|
39 | 39 | $article = static::where('technical_name', $technicalName)->first(); |
40 | 40 | |
41 | 41 | if ($article === null) { |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | { |
52 | 52 | return Cache::rememberForever( |
53 | 53 | "article.getWithTechnicalNameLike.{$technicalName}", |
54 | - function () use ($technicalName) : Collection { |
|
54 | + function() use ($technicalName) : Collection { |
|
55 | 55 | return static::where('technical_name', 'like', "{$technicalName}.%") |
56 | 56 | ->orderBy('order_column') |
57 | 57 | ->get(); |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | |
62 | 62 | public function isDeletable(): bool |
63 | 63 | { |
64 | - return ! (bool) $this->technical_name; |
|
64 | + return !(bool) $this->technical_name; |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | public function children(): HasMany |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | |
82 | 82 | public function hasParentArticle(): bool |
83 | 83 | { |
84 | - return ! is_null($this->parentArticle); |
|
84 | + return !is_null($this->parentArticle); |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | public function getFullUrlAttribute(): string |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | { |
11 | 11 | public function boot() |
12 | 12 | { |
13 | - Validator::extend('tags_exist', function ($attribute, $tagNames, $parameters) { |
|
13 | + Validator::extend('tags_exist', function($attribute, $tagNames, $parameters) { |
|
14 | 14 | list($tagType) = $parameters; |
15 | 15 | $tagType = new TagType($tagType); |
16 | 16 | |
@@ -19,14 +19,14 @@ discard block |
||
19 | 19 | ->pluck('name') |
20 | 20 | ->toArray(); |
21 | 21 | |
22 | - if (! \Spatie\values_in_array($tagNames, $exisitingTagNames)) { |
|
22 | + if (!\Spatie\values_in_array($tagNames, $exisitingTagNames)) { |
|
23 | 23 | return false; |
24 | 24 | } |
25 | 25 | |
26 | 26 | return true; |
27 | 27 | }); |
28 | 28 | |
29 | - Validator::extend('enum', function ($attribute, $value, $parameters) { |
|
29 | + Validator::extend('enum', function($attribute, $value, $parameters) { |
|
30 | 30 | |
31 | 31 | /** @var \App\Foundation\Models\Enums\Enum $class */ |
32 | 32 | $class = $parameters[0]; |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | } |
33 | 33 | |
34 | 34 | try { |
35 | - if (! class_exists('Memcached')) { |
|
35 | + if (!class_exists('Memcached')) { |
|
36 | 36 | throw new Exception(); |
37 | 37 | } |
38 | 38 | |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | |
51 | 51 | config()->set( |
52 | 52 | 'mail.recipients', |
53 | - collect(config('mail.recipients'))->map(function () { |
|
53 | + collect(config('mail.recipients'))->map(function() { |
|
54 | 54 | return '[email protected]'; |
55 | 55 | }) |
56 | 56 | ); |
@@ -58,7 +58,7 @@ |
||
58 | 58 | { |
59 | 59 | $user = $this->frontUserRepository->find($id); |
60 | 60 | |
61 | - if (! $user) { |
|
61 | + if (!$user) { |
|
62 | 62 | abort(404); |
63 | 63 | } |
64 | 64 |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | { |
10 | 10 | public function doesntEqual(Enum $enum): bool |
11 | 11 | { |
12 | - return ! $this->equals($enum); |
|
12 | + return !$this->equals($enum); |
|
13 | 13 | } |
14 | 14 | |
15 | 15 | public static function toCollection(): Collection |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | |
20 | 20 | public static function allAsRegex(): string |
21 | 21 | { |
22 | - return collect(static::values())->map(function ($value) { |
|
22 | + return collect(static::values())->map(function($value) { |
|
23 | 23 | return "({$value})"; |
24 | 24 | })->implode('|'); |
25 | 25 | } |