Passed
Branch master (c939c5)
by Adrian
01:50
created
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.