@@ -32,6 +32,10 @@ |
||
| 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)) { |
@@ -42,14 +42,14 @@ |
||
| 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 | } |
@@ -92,7 +92,9 @@ |
||
| 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 | } |
@@ -27,7 +27,9 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -26,7 +26,9 @@ |
||
| 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) { |
@@ -33,7 +33,9 @@ |
||
| 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 | |