@@ -39,7 +39,6 @@ discard block |
||
| 39 | 39 | /** |
| 40 | 40 | * Constructs a new instance of this class. |
| 41 | 41 | * |
| 42 | - * @param array $userSettings Settings that are passed by the user. |
|
| 43 | 42 | */ |
| 44 | 43 | public function __construct() |
| 45 | 44 | { |
@@ -155,7 +154,7 @@ discard block |
||
| 155 | 154 | * @throws NotFoundExceptionInterface No entry was found for **this** identifier. |
| 156 | 155 | * @throws ContainerExceptionInterface Error while retrieving the entry. |
| 157 | 156 | * |
| 158 | - * @return mixed Entry. |
|
| 157 | + * @return boolean Entry. |
|
| 159 | 158 | * |
| 160 | 159 | * @see ContainerInterface |
| 161 | 160 | */ |
@@ -118,6 +118,7 @@ |
||
| 118 | 118 | * @param string $namespaceAlias The preferred namespace alias for a given XML namespace URI. Should be the result |
| 119 | 119 | * of a call to `SimplePie\Util\Ns`. |
| 120 | 120 | * @param DOMXPath $xpath The `DOMXPath` object with this middleware's namespace alias applied. |
| 121 | + * @return void |
|
| 121 | 122 | */ |
| 122 | 123 | public function invoke( |
| 123 | 124 | string $feedType, |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | use DOMXPath; |
| 14 | 14 | use SimplePie\Enum\FeedType; |
| 15 | 15 | use SimplePie\Exception\MiddlewareException; |
| 16 | -use Skyzyx\UtilityPack\Types; |
|
| 17 | 16 | use stdClass; |
| 18 | 17 | |
| 19 | 18 | /** |
@@ -38,6 +38,7 @@ discard block |
||
| 38 | 38 | * mixed-case/case-insensitive XML element names. |
| 39 | 39 | * @param string ...$path A variadic parameter which accepts the names of the XML |
| 40 | 40 | * tree nodes in sequence. |
| 41 | + * @param string[] $path |
|
| 41 | 42 | * |
| 42 | 43 | * @return string An XPath 1.0 expression. |
| 43 | 44 | * |
@@ -74,7 +75,7 @@ discard block |
||
| 74 | 75 | * |
| 75 | 76 | * @param callable $fn A callable which returns a `DOMElementList`. |
| 76 | 77 | * |
| 77 | - * @return array Returns an array with keys of `text` and `html`. |
|
| 78 | + * @return Node Returns an array with keys of `text` and `html`. |
|
| 78 | 79 | */ |
| 79 | 80 | public function handleSingleNode(callable $fn): Node |
| 80 | 81 | { |
@@ -26,6 +26,7 @@ |
||
| 26 | 26 | * @param string $namespaceAlias The preferred namespace alias for a given XML namespace URI. Should be the result |
| 27 | 27 | * of a call to `SimplePie\Util\Ns`. |
| 28 | 28 | * @param DOMXPath $xpath The `DOMXPath` object with this middleware's namespace alias applied. |
| 29 | + * @return void |
|
| 29 | 30 | */ |
| 30 | 31 | public function __invoke(stdClass $feedRoot, string $namespaceAlias, DOMXPath $xpath): void; |
| 31 | 32 | } |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | * @param StreamInterface $stream A PSR-7 `StreamInterface` which is typically returned by the |
| 65 | 65 | * `getBody()` method of a `ResponseInterface` class. |
| 66 | 66 | * |
| 67 | - * @return JsonParser |
|
| 67 | + * @return string |
|
| 68 | 68 | */ |
| 69 | 69 | public function parseJson(StreamInterface $stream) |
| 70 | 70 | { |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | /** |
| 88 | 88 | * Gets the generator name. |
| 89 | 89 | * |
| 90 | - * @return string |
|
| 90 | + * @return Node |
|
| 91 | 91 | */ |
| 92 | 92 | public function getName(): Node |
| 93 | 93 | { |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | /** |
| 98 | 98 | * Gets the generator URI. |
| 99 | 99 | * |
| 100 | - * @return string |
|
| 100 | + * @return Node |
|
| 101 | 101 | */ |
| 102 | 102 | public function getUri(): Node |
| 103 | 103 | { |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | /** |
| 108 | 108 | * Gets the generator version. |
| 109 | 109 | * |
| 110 | - * @return string |
|
| 110 | + * @return Node |
|
| 111 | 111 | */ |
| 112 | 112 | public function getVersion(): Node |
| 113 | 113 | { |