@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the Superdesk Web Publisher Core Bundle. |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the Superdesk Web Publisher Bridge Component. |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the Superdesk Web Publisher Bridge Component. |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the Superdesk Web Publisher Core Bundle. |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the Superdesk Web Publisher Core Bundle. |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the Superdesk Web Publisher Core Bundle. |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the Superdesk Web Publisher Core Bundle. |
@@ -39,10 +39,10 @@ discard block |
||
39 | 39 | |
40 | 40 | $builder->get('visible') |
41 | 41 | ->addModelTransformer(new CallbackTransformer( |
42 | - function ($value) { |
|
42 | + function($value) { |
|
43 | 43 | return $value; |
44 | 44 | }, |
45 | - function ($value) { |
|
45 | + function($value) { |
|
46 | 46 | if (is_bool($value) || in_array($value, ['true', 'false', '1', '0', null])) { |
47 | 47 | return filter_var($value, FILTER_VALIDATE_BOOLEAN); |
48 | 48 | } |
@@ -53,14 +53,14 @@ discard block |
||
53 | 53 | |
54 | 54 | $builder->get('parameters') |
55 | 55 | ->addModelTransformer(new CallbackTransformer( |
56 | - function ($value) { |
|
56 | + function($value) { |
|
57 | 57 | if (is_array($value) && !empty($value)) { |
58 | 58 | return json_encode($value); |
59 | 59 | } |
60 | 60 | |
61 | 61 | return $value; |
62 | 62 | }, |
63 | - function ($value) { |
|
63 | + function($value) { |
|
64 | 64 | if (is_string($value)) { |
65 | 65 | return json_decode($value, true); |
66 | 66 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the Superdesk Web Publisher Core Bundle. |