@@ -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 | namespace SWP\Bundle\FixturesBundle\DataFixtures\ORM; |
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 | /* |
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 Rule 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. |
@@ -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 Core Bundle. |