Passed
Branch master (3a7502)
by Adrian
02:07
created
src/Statements/QuerySelect.php 1 patch
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -55,8 +55,9 @@  discard block
 block discarded – undo
55 55
 			$this->queryStructure->setElement( QueryStructure::TABLE, $tableName );
56 56
 
57 57
 			$tableSelectParams = $table->getBindParams();
58
-			foreach ( $tableSelectParams as $key => $value )
59
-				$this->queryStructure->setParams( $key, $value );
58
+			foreach ( $tableSelectParams as $key => $value ) {
59
+							$this->queryStructure->setParams( $key, $value );
60
+			}
60 61
 
61 62
 		}
62 63
 	}
@@ -107,8 +108,9 @@  discard block
 block discarded – undo
107 108
 			$this->queryStructure->setElement( QueryStructure::DISTINCT, 0 ); //???
108 109
 		}
109 110
 
110
-		if ( $this->queryStructure->getElement( QueryStructure::FIRST ) )
111
-			$this->queryStructure->setElement( QueryStructure::LIMIT, 1 );
111
+		if ( $this->queryStructure->getElement( QueryStructure::FIRST ) ) {
112
+					$this->queryStructure->setElement( QueryStructure::LIMIT, 1 );
113
+		}
112 114
 
113 115
 		$syntax = array();
114 116
 
@@ -190,8 +192,9 @@  discard block
 block discarded – undo
190 192
 				return DbService::getInstance()->single( $this->getSyntax(), $this->queryStructure->getElement( QueryStructure::BIND_PARAMS ) );
191 193
 				break;
192 194
 			case $this->queryStructure->getElement( QueryStructure::FIRST ):
193
-				if ( $this->queryStructure->getElement( QueryStructure::COLUMN ) )
194
-					return DbService::getInstance()->single( $this->getSyntax(), $this->queryStructure->getElement( QueryStructure::BIND_PARAMS ) );
195
+				if ( $this->queryStructure->getElement( QueryStructure::COLUMN ) ) {
196
+									return DbService::getInstance()->single( $this->getSyntax(), $this->queryStructure->getElement( QueryStructure::BIND_PARAMS ) );
197
+				}
195 198
 
196 199
 				return DbService::getInstance()->row( $this->getSyntax(), $this->queryStructure->getElement( QueryStructure::BIND_PARAMS ) );
197 200
 				break;
Please login to merge, or discard this patch.
src/Statements/QueryDelete.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,8 +99,9 @@
 block discarded – undo
99 99
 		if (
100 100
 			$this->queryStructure->getElement( ( QueryStructure::WHERE_TRIGGER ) ) &&
101 101
 			!count( $this->queryStructure->getElement( QueryStructure::WHERE ) )
102
-		)
103
-			throw new QueryException( 'Where or Having clause is required for this statement!', QueryException::QUERY_ERROR_DELETE_NOT_FILTER );
102
+		) {
103
+					throw new QueryException( 'Where or Having clause is required for this statement!', QueryException::QUERY_ERROR_DELETE_NOT_FILTER );
104
+		}
104 105
 
105 106
 		return DbService::getInstance()->query(
106 107
 			$this->getSyntax(),
Please login to merge, or discard this patch.