@@ -39,7 +39,7 @@ |
||
| 39 | 39 | HttpCacheEvent::EVENT_NAME => [ |
| 40 | 40 | ['clearCache', 0], |
| 41 | 41 | ], |
| 42 | - ]; |
|
| 42 | + ]; |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | public function clearCache(HttpCacheEvent $event) |
@@ -91,10 +91,10 @@ |
||
| 91 | 91 | |
| 92 | 92 | $builder->get('cacheTimeInSeconds') |
| 93 | 93 | ->addModelTransformer(new CallbackTransformer( |
| 94 | - function ($value) { |
|
| 94 | + function($value) { |
|
| 95 | 95 | return $value; |
| 96 | 96 | }, |
| 97 | - function ($value) { |
|
| 97 | + function($value) { |
|
| 98 | 98 | return (int) $value; |
| 99 | 99 | } |
| 100 | 100 | )) |
@@ -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. |
@@ -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 | } |
@@ -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 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 Content Bundle. |