@@ -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 |
@@ -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\Mixin; |
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; |
12 | 12 | |
@@ -67,10 +67,10 @@ discard block |
||
67 | 67 | callable $middleware, |
68 | 68 | ?string $name = null, |
69 | 69 | ?string $overrideType = null |
70 | - ): HandlerStackInterface { |
|
70 | + ) : HandlerStackInterface { |
|
71 | 71 | // @codingStandardsIgnoreEnd |
72 | 72 | |
73 | - $this->validateMiddleware($middleware, $name, $overrideType, function (&$arr) use ($middleware, $name): void { |
|
73 | + $this->validateMiddleware($middleware, $name, $overrideType, function(&$arr) use ($middleware, $name) : void { |
|
74 | 74 | $arr[] = [$middleware, $name]; |
75 | 75 | }); |
76 | 76 | |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | string $overrideType, |
89 | 89 | callable $middleware, |
90 | 90 | ?string $name = null |
91 | - ): HandlerStackInterface { |
|
91 | + ) : HandlerStackInterface { |
|
92 | 92 | // @codingStandardsIgnoreEnd |
93 | 93 | |
94 | 94 | return $this->append($middleware, $name, $overrideType); |
@@ -103,10 +103,10 @@ discard block |
||
103 | 103 | callable $middleware, |
104 | 104 | ?string $name = null, |
105 | 105 | ?string $overrideType = null |
106 | - ): HandlerStackInterface { |
|
106 | + ) : HandlerStackInterface { |
|
107 | 107 | // @codingStandardsIgnoreEnd |
108 | 108 | |
109 | - $this->validateMiddleware($middleware, $name, $overrideType, function (&$arr) use ($middleware, $name): void { |
|
109 | + $this->validateMiddleware($middleware, $name, $overrideType, function(&$arr) use ($middleware, $name) : void { |
|
110 | 110 | \array_unshift($arr, [$middleware, $name]); |
111 | 111 | }); |
112 | 112 | |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | string $overrideType, |
125 | 125 | callable $middleware, |
126 | 126 | ?string $name = null |
127 | - ): HandlerStackInterface { |
|
127 | + ) : HandlerStackInterface { |
|
128 | 128 | // @codingStandardsIgnoreEnd |
129 | 129 | |
130 | 130 | return $this->prepend($middleware, $name, $overrideType); |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | stdClass $feedRoot, |
141 | 141 | ?string $namespaceAlias, |
142 | 142 | DOMXPath $xpath |
143 | - ): void { |
|
143 | + ) : void { |
|
144 | 144 | // @codingStandardsIgnoreEnd |
145 | 145 | |
146 | 146 | if (isset($this->stack[$feedType])) { |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | 'Could not determine which handler stack to invoke. Stack `%s` was requested. [Allowed: %s]', |
157 | 157 | $feedType, |
158 | 158 | \implode(', ', \array_map( |
159 | - function ($type) { |
|
159 | + function($type) { |
|
160 | 160 | return \sprintf('FeedType::%s', $type); |
161 | 161 | }, |
162 | 162 | $allowedTypes |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | */ |
173 | 173 | public function debugStack(): array |
174 | 174 | { |
175 | - $fn = function ($mw) { |
|
175 | + $fn = function($mw) { |
|
176 | 176 | return \sprintf( |
177 | 177 | '[<%s: resource %s>, %s]', |
178 | 178 | Types::getClassOrType($mw[0]), |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | ?string $name = null, |
212 | 212 | ?string $overrideType = null, |
213 | 213 | callable $fn |
214 | - ): void { |
|
214 | + ) : void { |
|
215 | 215 | // @codingStandardsIgnoreEnd |
216 | 216 | |
217 | 217 | if ($overrideType === FeedType::ALL) { |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | callable $middleware, |
248 | 248 | ?string $name = null, |
249 | 249 | ?string $overrideType = null |
250 | - ): void { |
|
250 | + ) : void { |
|
251 | 251 | // @codingStandardsIgnoreEnd |
252 | 252 | |
253 | 253 | $this->logger->info(\sprintf( |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | callable $middleware, |
278 | 278 | ?string $name = null, |
279 | 279 | ?string $overrideType = null |
280 | - ): string { |
|
280 | + ) : string { |
|
281 | 281 | // @codingStandardsIgnoreEnd |
282 | 282 | |
283 | 283 | return \sprintf( |
@@ -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\Exception; |
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\Type; |
12 | 12 | |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | * |
183 | 183 | * @return Node |
184 | 184 | */ |
185 | - public function getScalarSingleValue(string $nodeName, ?string $namespaceAlias = null): Node |
|
185 | + public function getScalarSingleValue(string $nodeName, ?string $namespaceAlias = null) : Node |
|
186 | 186 | { |
187 | 187 | $alias = $namespaceAlias |
188 | 188 | ?? $this->namespaceAlias; |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | //-------------------------------------------------------------------------- |
198 | 198 | // SINGLE COMPLEX VALUES |
199 | 199 | |
200 | - public function getGenerator(?string $namespaceAlias = null): Generator |
|
200 | + public function getGenerator(?string $namespaceAlias = null) : Generator |
|
201 | 201 | { |
202 | 202 | $alias = $namespaceAlias |
203 | 203 | ?? $this->namespaceAlias; |
@@ -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\Type; |
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\Sanitizer; |
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; |
12 | 12 | |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | callable $middleware, |
42 | 42 | ?string $name = null, |
43 | 43 | ?string $overrideType = null |
44 | - ): HandlerStackInterface; |
|
44 | + ) : HandlerStackInterface; |
|
45 | 45 | |
46 | 46 | /** |
47 | 47 | * Appends a new middleware closure onto the end of the stack. |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | string $overrideType, |
64 | 64 | callable $middleware, |
65 | 65 | ?string $name = null |
66 | - ): HandlerStackInterface; |
|
66 | + ) : HandlerStackInterface; |
|
67 | 67 | |
68 | 68 | /** |
69 | 69 | * Prepends a new middleware class onto the beginning of the stack. |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | callable $middleware, |
86 | 86 | ?string $name = null, |
87 | 87 | ?string $overrideType = null |
88 | - ): HandlerStackInterface; |
|
88 | + ) : HandlerStackInterface; |
|
89 | 89 | |
90 | 90 | /** |
91 | 91 | * Prepends a new middleware closure onto the beginning of the stack. |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | string $overrideType, |
108 | 108 | callable $middleware, |
109 | 109 | ?string $name = null |
110 | - ): HandlerStackInterface; |
|
110 | + ) : HandlerStackInterface; |
|
111 | 111 | |
112 | 112 | /** |
113 | 113 | * Invokes the stack of middleware. |
@@ -124,5 +124,5 @@ discard block |
||
124 | 124 | stdClass $feedRoot, |
125 | 125 | ?string $namespaceAlias, |
126 | 126 | DOMXPath $xpath |
127 | - ): void; |
|
127 | + ) : void; |
|
128 | 128 | } |