@@ -6,7 +6,7 @@ |
||
6 | 6 | * http://opensource.org/licenses/Apache2.0 |
7 | 7 | */ |
8 | 8 | |
9 | -declare(strict_types=1); |
|
9 | +declare(strict_types = 1); |
|
10 | 10 | |
11 | 11 | namespace SimplePie\Middleware\Html; |
12 | 12 |
@@ -6,7 +6,7 @@ |
||
6 | 6 | * http://opensource.org/licenses/Apache2.0 |
7 | 7 | */ |
8 | 8 | |
9 | -declare(strict_types=1); |
|
9 | +declare(strict_types = 1); |
|
10 | 10 | |
11 | 11 | namespace SimplePie\Middleware\Json; |
12 | 12 |
@@ -6,7 +6,7 @@ |
||
6 | 6 | * http://opensource.org/licenses/Apache2.0 |
7 | 7 | */ |
8 | 8 | |
9 | -declare(strict_types=1); |
|
9 | +declare(strict_types = 1); |
|
10 | 10 | |
11 | 11 | namespace SimplePie\Middleware; |
12 | 12 |
@@ -6,7 +6,7 @@ |
||
6 | 6 | * http://opensource.org/licenses/Apache2.0 |
7 | 7 | */ |
8 | 8 | |
9 | -declare(strict_types=1); |
|
9 | +declare(strict_types = 1); |
|
10 | 10 | |
11 | 11 | namespace SimplePie\Middleware\Xml; |
12 | 12 |
@@ -6,7 +6,7 @@ |
||
6 | 6 | * http://opensource.org/licenses/Apache2.0 |
7 | 7 | */ |
8 | 8 | |
9 | -declare(strict_types=1); |
|
9 | +declare(strict_types = 1); |
|
10 | 10 | |
11 | 11 | namespace SimplePie\Middleware\Xml; |
12 | 12 |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | * http://opensource.org/licenses/Apache2.0 |
7 | 7 | */ |
8 | 8 | |
9 | -declare(strict_types=1); |
|
9 | +declare(strict_types = 1); |
|
10 | 10 | |
11 | 11 | namespace SimplePie\Middleware\Xml; |
12 | 12 | |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | $query = $this->generateQuery($namespaceAlias, true, 'feed', $nodeName); |
73 | 73 | $this->getLogger()->debug(\sprintf('%s is running an XPath query:', __CLASS__), [$query]); |
74 | 74 | |
75 | - return $this->handleSingleNode(function () use ($xpath, $query) { |
|
75 | + return $this->handleSingleNode(function() use ($xpath, $query) { |
|
76 | 76 | return $xpath->query($query); |
77 | 77 | }); |
78 | 78 | } |
@@ -6,7 +6,7 @@ |
||
6 | 6 | * http://opensource.org/licenses/Apache2.0 |
7 | 7 | */ |
8 | 8 | |
9 | -declare(strict_types=1); |
|
9 | +declare(strict_types = 1); |
|
10 | 10 | |
11 | 11 | namespace SimplePie\Middleware\Xml; |
12 | 12 |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | * http://opensource.org/licenses/Apache2.0 |
7 | 7 | */ |
8 | 8 | |
9 | -declare(strict_types=1); |
|
9 | +declare(strict_types = 1); |
|
10 | 10 | |
11 | 11 | namespace SimplePie\Middleware; |
12 | 12 | |
@@ -38,11 +38,11 @@ discard block |
||
38 | 38 | * A value of `false` means that the middleware should NOT run, By |
39 | 39 | * default, the middleware will run. |
40 | 40 | */ |
41 | - public function __construct(?callable $fn = null) |
|
41 | + public function __construct(? callable $fn = null) |
|
42 | 42 | { |
43 | 43 | $this->logger = Configuration::getLogger(); |
44 | 44 | |
45 | - $this->fn = $fn ?: function () { |
|
45 | + $this->fn = $fn ?: function() { |
|
46 | 46 | return true; |
47 | 47 | }; |
48 | 48 | } |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | * http://opensource.org/licenses/Apache2.0 |
7 | 7 | */ |
8 | 8 | |
9 | -declare(strict_types=1); |
|
9 | +declare(strict_types = 1); |
|
10 | 10 | |
11 | 11 | namespace SimplePie; |
12 | 12 | |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * @param ContainerInterface|null $container A PSR-11 container. The default value is null, |
69 | 69 | * which will instantiate `SimplePie\Container`. |
70 | 70 | */ |
71 | - public static function setContainer(?ContainerInterface $container = null): void |
|
71 | + public static function setContainer(?ContainerInterface $container = null) : void |
|
72 | 72 | { |
73 | 73 | self::$container = $container ?? new Container(); |
74 | 74 |