@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | $builder->orderBy('updated_at', 'DESC'); |
81 | 81 | } |
82 | 82 | |
83 | - return $builder->get()->map(function ($model) { |
|
83 | + return $builder->get()->map(function($model) { |
|
84 | 84 | return (new static($this->registration))->manage($model); |
85 | 85 | }); |
86 | 86 | } |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | |
149 | 149 | public function guard($verb): Manager |
150 | 150 | { |
151 | - if (! $this->can($verb)) { |
|
151 | + if (!$this->can($verb)) { |
|
152 | 152 | NotAllowedManagerRoute::notAllowedVerb($verb, $this); |
153 | 153 | } |
154 | 154 | |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | $fields = $this->fields(); |
172 | 172 | |
173 | 173 | foreach ($this->assistants() as $assistant) { |
174 | - if (! method_exists($assistant, 'fields')) { |
|
174 | + if (!method_exists($assistant, 'fields')) { |
|
175 | 175 | continue; |
176 | 176 | } |
177 | 177 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Thinktomorrow\Chief\HealthMonitor\Notifiers; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Thinktomorrow\Chief\HealthMonitor\Checks; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Thinktomorrow\Chief\HealthMonitor\Notifiers; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace Thinktomorrow\Chief\HealthMonitor\Checks; |
6 | 6 | |
@@ -17,6 +17,6 @@ discard block |
||
17 | 17 | |
18 | 18 | public function message(): string |
19 | 19 | { |
20 | - return 'Het lijkt erop dat er geen homepagina ingesteld is. Stel er een in hier: <a href="'. route('chief.back.settings.edit') .'" class="text-secondary-800 underline hover:text-white">Settings</a>'; |
|
20 | + return 'Het lijkt erop dat er geen homepagina ingesteld is. Stel er een in hier: <a href="'.route('chief.back.settings.edit').'" class="text-secondary-800 underline hover:text-white">Settings</a>'; |
|
21 | 21 | } |
22 | 22 | } |
@@ -6,18 +6,18 @@ discard block |
||
6 | 6 | |
7 | 7 | class FieldType |
8 | 8 | { |
9 | - const INPUT = 'input'; // oneliner text (input) |
|
10 | - const TEXT = 'text'; // Plain text (textarea) |
|
9 | + const INPUT = 'input'; // oneliner text (input) |
|
10 | + const TEXT = 'text'; // Plain text (textarea) |
|
11 | 11 | const NUMBER = 'number'; // number |
12 | 12 | const RANGE = 'range'; // range slider |
13 | - const DATE = 'date'; // Timestamp input |
|
14 | - const PHONENUMBER = 'phonenumber'; // Timestamp input |
|
15 | - const HTML = 'html'; // Html text (wysiwyg) |
|
16 | - const SELECT = 'select'; // Select options |
|
17 | - const MEDIA = 'media'; // media file (slim uploader) |
|
18 | - const DOCUMENT = 'document'; // documents |
|
19 | - const RADIO = 'radio'; // media file (slim uploader) |
|
20 | - const PAGEBUILDER = 'pagebuilder'; // the most special field there is... |
|
13 | + const DATE = 'date'; // Timestamp input |
|
14 | + const PHONENUMBER = 'phonenumber'; // Timestamp input |
|
15 | + const HTML = 'html'; // Html text (wysiwyg) |
|
16 | + const SELECT = 'select'; // Select options |
|
17 | + const MEDIA = 'media'; // media file (slim uploader) |
|
18 | + const DOCUMENT = 'document'; // documents |
|
19 | + const RADIO = 'radio'; // media file (slim uploader) |
|
20 | + const PAGEBUILDER = 'pagebuilder'; // the most special field there is... |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * @var string |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | static::RADIO, |
41 | 41 | static::PAGEBUILDER, |
42 | 42 | ])) { |
43 | - throw new \Exception('Invalid type identifier given [' . $type . '].'); |
|
43 | + throw new \Exception('Invalid type identifier given ['.$type.'].'); |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | $this->type = $type; |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | |
49 | 49 | public static function fromString(string $type) |
50 | 50 | { |
51 | - $class = 'Thinktomorrow\Chief\Fields\Types\\' . ucfirst($type . 'Field'); |
|
51 | + $class = 'Thinktomorrow\Chief\Fields\Types\\'.ucfirst($type.'Field'); |
|
52 | 52 | |
53 | 53 | return new $class(new static($type)); |
54 | 54 | } |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Thinktomorrow\Chief\Fields\Types; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Thinktomorrow\Chief\Fields\Types; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Thinktomorrow\Chief\Fields\Types; |
5 | 5 |