Completed
Push — master ( 497518...867338 )
by Joao
04:19
created
src/Repository/XmlIterator.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -32,6 +32,10 @@
 block discarded – undo
32 32
     private $_current = 0;
33 33
     protected $_registerNS;
34 34
 
35
+    /**
36
+     * @param DOMNodeList $nodeList
37
+     * @param string[] $colNodes
38
+     */
35 39
     public function __construct($nodeList, $colNodes, $registerNS)
36 40
     {
37 41
         if (!($nodeList instanceof DOMNodeList)) {
Please login to merge, or discard this patch.
src/Database/DBPDODriver.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,14 +42,14 @@
 block discarded – undo
42 42
 
43 43
         // Create Connection
44 44
         $this->_db = new PDO($strcnn, $this->_connectionManagement->getUsername(),
45
-            $this->_connectionManagement->getPassword(), (array) $preOptions);
45
+            $this->_connectionManagement->getPassword(), (array)$preOptions);
46 46
         $this->_connectionManagement->setDriver($this->_db->getAttribute(PDO::ATTR_DRIVER_NAME));
47 47
 
48 48
         // Set Specific Attributes
49 49
         $this->_db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
50 50
         $this->_db->setAttribute(PDO::ATTR_CASE, PDO::CASE_LOWER);
51 51
 
52
-        foreach ((array) $postOptions as $key => $value) {
52
+        foreach ((array)$postOptions as $key => $value) {
53 53
             $this->_db->setAttribute($key, $value);
54 54
         }
55 55
     }
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,9 @@
 block discarded – undo
92 92
             foreach ($array as $key => $value) {
93 93
                 $stmt->bindValue(":" . SQLBind::keyAdj($key), $value);
94 94
             }
95
-        } else $stmt = $this->_db->prepare($sql);
95
+        } else {
96
+            $stmt = $this->_db->prepare($sql);
97
+        }
96 98
 
97 99
         return $stmt;
98 100
     }
Please login to merge, or discard this patch.
src/Repository/JsonIterator.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,9 @@  discard block
 block discarded – undo
27 27
         }
28 28
 
29 29
         if ($path != "") {
30
-            if ($path[0] == "/") $path = substr($path, 1);
30
+            if ($path[0] == "/") {
31
+                $path = substr($path, 1);
32
+            }
31 33
 
32 34
             $pathAr = explode("/", $path);
33 35
 
@@ -44,7 +46,9 @@  discard block
 block discarded – undo
44 46
                 }
45 47
             }
46 48
             $this->_jsonObject = $newjsonObject;
47
-        } else $this->_jsonObject = $jsonObject;
49
+        } else {
50
+            $this->_jsonObject = $jsonObject;
51
+        }
48 52
 
49 53
         $this->_current = 0;
50 54
     }
Please login to merge, or discard this patch.
src/Repository/ArrayDataset.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,9 @@
 block discarded – undo
26 26
 
27 27
         $this->_array = array();
28 28
 
29
-        if (!$array) return;
29
+        if (!$array) {
30
+            return;
31
+        }
30 32
 
31 33
         if (is_array($array)) {
32 34
             foreach ($array as $key => $value) {
Please login to merge, or discard this patch.
src/Repository/TextFileIterator.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,9 @@
 block discarded – undo
33 33
             if (($buffer !== false) && (trim($buffer) != "")) {
34 34
                 $this->_current++;
35 35
                 $this->_currentBuffer = $buffer;
36
-            } else $this->readNextLine();
36
+            } else {
37
+                $this->readNextLine();
38
+            }
37 39
         }
38 40
     }
39 41
 
Please login to merge, or discard this patch.