@@ -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 User 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 Settings Bundle. |
@@ -41,6 +41,10 @@ discard block |
||
41 | 41 | $manager->flush(); |
42 | 42 | } |
43 | 43 | |
44 | + /** |
|
45 | + * @param string $env |
|
46 | + * @param ObjectManager $manager |
|
47 | + */ |
|
44 | 48 | public function loadRoutes($env, $manager) |
45 | 49 | { |
46 | 50 | $routes = [ |
@@ -195,6 +199,7 @@ discard block |
||
195 | 199 | /** |
196 | 200 | * Sets articles manually (not via Alice) for test env due to fatal error: |
197 | 201 | * Method PHPCRProxies\__CG__\Doctrine\ODM\PHPCR\Document\Generic::__toString() must not throw an exception. |
202 | + * @param string $env |
|
198 | 203 | */ |
199 | 204 | public function loadArticles($env, ObjectManager $manager) |
200 | 205 | { |
@@ -446,6 +451,10 @@ discard block |
||
446 | 451 | ]; |
447 | 452 | } |
448 | 453 | |
454 | + /** |
|
455 | + * @param string $fakeImage |
|
456 | + * @param string $targetFile |
|
457 | + */ |
|
449 | 458 | private function cropAndResizeImage($fakeImage, array $rendition, $targetFile) |
450 | 459 | { |
451 | 460 | $image = imagecreatefromjpeg($fakeImage); |
@@ -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 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 Content List 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. |
@@ -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. |