Completed
Push — master ( 625a76...357a0a )
by Thomas
02:47
created
src/FluentDOM/Loader/Json/SimpleXML.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      * @param mixed $source
40 40
      * @param string $contentType
41 41
      * @param array|\Traversable|Options $options
42
-     * @return Document|Result|NULL
42
+     * @return Document|null
43 43
      * @throws \Exception
44 44
      * @throws \FluentDOM\Exceptions\InvalidSource
45 45
      */
Please login to merge, or discard this patch.
src/FluentDOM/Loader/Supports/Json.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      * @param mixed $source
40 40
      * @param string $contentType
41 41
      * @param array|\Traversable|Options $options
42
-     * @return Document|Result|NULL
42
+     * @return Document|null
43 43
      * @throws \Exception
44 44
      * @throws \FluentDOM\Exceptions\InvalidSource
45 45
      */
Please login to merge, or discard this patch.
src/FluentDOM/Serializer/Json/BadgerFish.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
       /**
23 23
        * @param \DOMElement $node
24
-       * @return mixed
24
+       * @return \stdClass
25 25
        */
26 26
     protected function getNode(\DOMElement $node) {
27 27
       $result = new \stdClass();
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
     /**
33 33
      * @param \DOMElement $node
34
-     * @return mixed
34
+     * @return \stdClass
35 35
      */
36 36
     protected function getNodes(\DOMElement $node) {
37 37
       $result = new \stdClass();
Please login to merge, or discard this patch.
src/FluentDOM/Loader/PHP/PDO.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      * @param \PDOStatement $source
33 33
      * @param string $contentType
34 34
      * @param array|\Traversable|Options $options
35
-     * @return Document|Result|NULL
35
+     * @return Result|null
36 36
      * @throws \LogicException
37 37
      */
38 38
     public function load($source, string $contentType, $options = []) {
Please login to merge, or discard this patch.
src/FluentDOM/Nodes.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
      *
318 318
      * @param string $expression Xpath expression
319 319
      * @param NULL|string|callable|\DOMNode|array|\Traversable $filter
320
-     * @param NULL|string|callable|\DOMNode|array|\Traversable $stopAt
320
+     * @param null|string $stopAt
321 321
      * @param int $options
322 322
      * @return Nodes
323 323
      * @throws \LogicException
@@ -734,7 +734,7 @@  discard block
 block discarded – undo
734 734
      * If $elementsOnly is set to TRUE, only element nodes are used.
735 735
      *
736 736
      * @param callable $function
737
-     * @param callable|bool|NULL $elementsFilter
737
+     * @param boolean $elementsFilter
738 738
      * @return $this|Nodes
739 739
      * @throws \InvalidArgumentException
740 740
      */
Please login to merge, or discard this patch.
src/FluentDOM/Loader/Html.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 
91 91
     /**
92 92
      * @param string $source
93
-     * @return string|bool
93
+     * @return string|false
94 94
      */
95 95
     private function getCharsetFromMetaTag(string $source) {
96 96
       $hasMetaTag = preg_match(
@@ -150,6 +150,9 @@  discard block
 block discarded – undo
150 150
       return NULL;
151 151
     }
152 152
 
153
+    /**
154
+     * @param Options $options
155
+     */
153 156
     private function isFragment(string $contentType, $options) {
154 157
       return (
155 158
         $contentType === 'html-fragment' ||
@@ -158,6 +161,9 @@  discard block
 block discarded – undo
158 161
       );
159 162
     }
160 163
 
164
+    /**
165
+     * @param Options $settings
166
+     */
161 167
     private function loadFragmentIntoDom(\DOMDocument $document, string $source, $settings) {
162 168
       $htmlDom = new Document();
163 169
       $htmlDom->loadHTML(
Please login to merge, or discard this patch.
src/FluentDOM/Loader/Json/JsonDOM.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      * @param mixed $source
88 88
      * @param string $contentType
89 89
      * @param array|\Traversable|Options $options
90
-     * @return Document|Result|NULL
90
+     * @return Document|null
91 91
      * @throws \Exception
92 92
      * @throws \FluentDOM\Exceptions\InvalidSource
93 93
      */
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      * function callback(string $key, bool $isArrayElement) {}
139 139
      *
140 140
      * @param NULL|FALSE|callable $callback
141
-     * @return callable|NULL|FALSE
141
+     * @return callable|null
142 142
      */
143 143
     public function onMapKey($callback = NULL) {
144 144
       if (NULL !== $callback) {
Please login to merge, or discard this patch.
src/FluentDOM/Loader/JSONx.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      * @param string $source
40 40
      * @param string $contentType
41 41
      * @param array|\Traversable|Options $options
42
-     * @return Document|Result|NULL
42
+     * @return Document|null
43 43
      * @throws \LogicException
44 44
      */
45 45
     public function load($source, string $contentType, $options = []) {
Please login to merge, or discard this patch.
src/FluentDOM/XMLReader.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -138,8 +138,8 @@
 block discarded – undo
138 138
     }
139 139
 
140 140
     /**
141
-     * @param $name
142
-     * @param $namespaceURI
141
+     * @param string $name
142
+     * @param null|string $namespaceURI
143 143
      * @return array
144 144
      */
145 145
     private function prepareCondition($name, $namespaceURI): array {
Please login to merge, or discard this patch.