@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | { |
| 66 | 66 | $stringyClass = new \ReflectionClass('Stringy\Stringy'); |
| 67 | 67 | $methods = $stringyClass->getMethods(\ReflectionMethod::IS_PUBLIC); |
| 68 | - $names = array_map(function ($value) { |
|
| 68 | + $names = array_map(function($value) { |
|
| 69 | 69 | return $value->getName(); |
| 70 | 70 | }, $methods); |
| 71 | 71 | |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | if ($this->environment->getFunction($name)) { |
| 84 | 84 | continue; |
| 85 | 85 | } |
| 86 | - $this->functions[$name] = new \Twig_SimpleFunction($name, function () use ($name) { |
|
| 86 | + $this->functions[$name] = new \Twig_SimpleFunction($name, function() use ($name) { |
|
| 87 | 87 | return call_user_func_array(['Stringy\StaticStringy', $name], func_get_args()); |
| 88 | 88 | }); |
| 89 | 89 | } else { |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | if ($this->environment->getFilter($name)) { |
| 92 | 92 | continue; |
| 93 | 93 | } |
| 94 | - $this->filters[$name] = new \Twig_SimpleFilter($name, function () use ($name) { |
|
| 94 | + $this->filters[$name] = new \Twig_SimpleFilter($name, function() use ($name) { |
|
| 95 | 95 | return call_user_func_array(['Stringy\StaticStringy', $name], func_get_args()); |
| 96 | 96 | }); |
| 97 | 97 | } |
@@ -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 | |
@@ -46,6 +46,9 @@ discard block |
||
| 46 | 46 | $manager->flush(); |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | + /** |
|
| 50 | + * @param string $env |
|
| 51 | + */ |
|
| 49 | 52 | public function loadRoutes($env, ObjectManager $manager) |
| 50 | 53 | { |
| 51 | 54 | $routes = [ |
@@ -95,6 +98,10 @@ discard block |
||
| 95 | 98 | $manager->flush(); |
| 96 | 99 | } |
| 97 | 100 | |
| 101 | + /** |
|
| 102 | + * @param string $env |
|
| 103 | + * @param ObjectManager $manager |
|
| 104 | + */ |
|
| 98 | 105 | public function setRoutesContent($env, $manager) |
| 99 | 106 | { |
| 100 | 107 | $routes = [ |
@@ -118,6 +125,10 @@ discard block |
||
| 118 | 125 | } |
| 119 | 126 | } |
| 120 | 127 | |
| 128 | + /** |
|
| 129 | + * @param string $env |
|
| 130 | + * @param ObjectManager $manager |
|
| 131 | + */ |
|
| 121 | 132 | public function loadArticles($env, $manager) |
| 122 | 133 | { |
| 123 | 134 | $articles = [ |
@@ -108,6 +108,9 @@ |
||
| 108 | 108 | return $this->renderer; |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | + /** |
|
| 112 | + * @return \SWP\Component\TemplatesSystem\Gimme\Model\ContainerInterface |
|
| 113 | + */ |
|
| 111 | 114 | public function createNewContainer($name, array $parameters = []) |
| 112 | 115 | { |
| 113 | 116 | $containerEntity = $this->serviceContainer->get('swp.factory.container')->create(); |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | - * @param $filePath |
|
| 64 | + * @param string $filePath |
|
| 65 | 65 | * |
| 66 | 66 | * @return Response |
| 67 | 67 | */ |
@@ -295,7 +295,7 @@ discard block |
||
| 295 | 295 | } |
| 296 | 296 | |
| 297 | 297 | /** |
| 298 | - * @param array $keys |
|
| 298 | + * @param string[] $keys |
|
| 299 | 299 | * |
| 300 | 300 | * @return string |
| 301 | 301 | */ |
@@ -327,7 +327,7 @@ discard block |
||
| 327 | 327 | /** |
| 328 | 328 | * @param string $id |
| 329 | 329 | * |
| 330 | - * @return null|true |
|
| 330 | + * @return null|boolean |
|
| 331 | 331 | */ |
| 332 | 332 | public function restoreTemporaryUnset($id) |
| 333 | 333 | { |
@@ -18,7 +18,6 @@ |
||
| 18 | 18 | |
| 19 | 19 | use SWP\Bundle\ContentBundle\Doctrine\ImageRepositoryInterface; |
| 20 | 20 | use SWP\Bundle\ContentBundle\Model\ArticleMedia; |
| 21 | -use SWP\Bundle\ContentBundle\Model\File; |
|
| 22 | 21 | use SWP\Bundle\ContentBundle\Model\Image; |
| 23 | 22 | use SWP\Bundle\ContentBundle\Model\ImageRendition; |
| 24 | 23 | use SWP\Bundle\ContentBundle\Factory\MediaFactoryInterface; |
@@ -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 @@ |
||
| 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 @@ |
||
| 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. |