@@ -51,7 +51,7 @@ |
||
51 | 51 | return true; |
52 | 52 | } |
53 | 53 | |
54 | - $this->logger->error(implode(', ', array_map(function ($error) { |
|
54 | + $this->logger->error(implode(', ', array_map(function($error) { |
|
55 | 55 | return sprintf('"%s" %s', $error['property'], $error['message']); |
56 | 56 | }, $validator->getErrors()))); |
57 | 57 |
@@ -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 Content Bundle. |
@@ -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 | /* |
6 | 6 | * This file is part of the Superdesk Web Publisher Content Bundle. |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | $items = $this->filterTextItems($package->getItems()); |
86 | 86 | |
87 | 87 | $map = $items->map( |
88 | - function (ItemInterface $item) { |
|
88 | + function(ItemInterface $item) { |
|
89 | 89 | return ' '.$item->getDescription(); |
90 | 90 | } |
91 | 91 | ); |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | { |
106 | 106 | $items = $this->filterTextItems($package->getItems()); |
107 | 107 | |
108 | - $authors = array_filter(array_values(array_map(function (ItemInterface $item) { |
|
108 | + $authors = array_filter(array_values(array_map(function(ItemInterface $item) { |
|
109 | 109 | $metadata = $item->getMetadata(); |
110 | 110 | |
111 | 111 | return $metadata['byline']; |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | private function filterTextItems(Collection $items) |
122 | 122 | { |
123 | 123 | return $items->filter( |
124 | - function (ItemInterface $item) { |
|
124 | + function(ItemInterface $item) { |
|
125 | 125 | $this->ensureTypeIsAllowed($item->getType()); |
126 | 126 | |
127 | 127 | return ItemInterface::TYPE_TEXT === $item->getType(); |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | */ |
137 | 137 | protected function populateBody(PackageInterface $package) |
138 | 138 | { |
139 | - return $package->getBody().' '.implode('', array_map(function (ItemInterface $item) { |
|
139 | + return $package->getBody().' '.implode('', array_map(function(ItemInterface $item) { |
|
140 | 140 | $this->ensureTypeIsAllowed($item->getType()); |
141 | 141 | |
142 | 142 | return $item->getBody(); |
@@ -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 Template Engine Bundle. |
@@ -39,14 +39,14 @@ |
||
39 | 39 | |
40 | 40 | $builder->get('parameters') |
41 | 41 | ->addModelTransformer(new CallbackTransformer( |
42 | - function ($value) { |
|
42 | + function($value) { |
|
43 | 43 | if (is_array($value) && !empty($value)) { |
44 | 44 | return json_encode($value); |
45 | 45 | } |
46 | 46 | |
47 | 47 | return $value; |
48 | 48 | }, |
49 | - function ($value) { |
|
49 | + function($value) { |
|
50 | 50 | if (is_string($value)) { |
51 | 51 | return json_decode($value, true); |
52 | 52 | } |
@@ -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 Templates System 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 Content List 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 Menu Bundle. |