Completed
Pull Request — master (#7)
by
unknown
02:07
created
src/SimpleXmlReader/ExceptionThrowingXMLReader.php 2 patches
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -7,11 +7,17 @@  discard block
 block discarded – undo
7 7
 
8 8
 class ExceptionThrowingXMLReader extends XMLReader
9 9
 {
10
+    /**
11
+     * @param string $encoding
12
+     */
10 13
     public function open($URI, $encoding = null, $options = 0)
11 14
     {
12 15
         return static::ensureSuccess(@parent::open($URI, $encoding, $options), 'open');
13 16
     }
14 17
 
18
+    /**
19
+     * @param string $operation
20
+     */
15 21
     static protected function ensureSuccess($returnValue, $operation)
16 22
     {
17 23
         if (! $returnValue) {
@@ -20,6 +26,11 @@  discard block
 block discarded – undo
20 26
         return $returnValue;
21 27
     }
22 28
 
29
+    /**
30
+     * @param \DOMDocument $baseNode
31
+     *
32
+     * @return DOMNode
33
+     */
23 34
     public function expand($baseNode = null)
24 35
     {
25 36
         if (null === $baseNode) {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace SimpleXmlReader;
4 4
 
5
-use DOMNode;
6 5
 use XMLReader;
7 6
 
8 7
 class ExceptionThrowingXMLReader extends XMLReader
Please login to merge, or discard this patch.
src/SimpleXmlReader/PathIterator.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -42,6 +42,9 @@
 block discarded – undo
42 42
      */
43 43
     protected $callback;
44 44
 
45
+    /**
46
+     * @param string $returnType
47
+     */
45 48
     public function __construct(ExceptionThrowingXMLReader $reader, $path, $returnType, $callback = null)
46 49
     {
47 50
         $this->reader = $reader;
Please login to merge, or discard this patch.