@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | $sqlQuery = DatabaseQuery::selectAllQuery(self::getTableName($connection)); |
| 72 | 72 | $query = $connection->prepare($sqlQuery); |
| 73 | 73 | $query->execute(); |
| 74 | - if ( $query->rowCount() ) |
|
| 74 | + if ($query->rowCount()) |
|
| 75 | 75 | { |
| 76 | 76 | return new GetData($query->fetchAll($connection::FETCH_ASSOC)); |
| 77 | 77 | } |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | $sqlQuery = $databaseQuery->selectQuery(self::getTableName($connection), $data, $condition, $connection); |
| 93 | 93 | $query = $connection->prepare($sqlQuery); |
| 94 | 94 | $query->execute(); |
| 95 | - if ( $query->rowCount() ) |
|
| 95 | + if ($query->rowCount()) |
|
| 96 | 96 | { |
| 97 | 97 | return new GetData($query->fetchAll($connection::FETCH_ASSOC)); |
| 98 | 98 | } |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | $sqlQuery = DatabaseQuery::selectQuery(self::getTableName($connection), ['id' => $value], NULL, $connection); |
| 113 | 113 | $query = $connection->prepare($sqlQuery); |
| 114 | 114 | $query->execute(); |
| 115 | - if ( $query->rowCount() ) |
|
| 115 | + if ($query->rowCount()) |
|
| 116 | 116 | { |
| 117 | 117 | $found = new static; |
| 118 | 118 | $found->id = $value; |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | |
| 156 | 156 | $updateQuery = $this->updateQuery(self::getTableName($connection)); |
| 157 | 157 | $statement = $connection->prepare($updateQuery); |
| 158 | - if( $statement->execute() ) |
|
| 158 | + if ($statement->execute()) |
|
| 159 | 159 | { |
| 160 | 160 | return true; |
| 161 | 161 | } |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | { |
| 173 | 173 | $connection = DatabaseQuery::checkConnection($dbConnection); |
| 174 | 174 | |
| 175 | - $query = $connection->prepare('DELETE FROM ' . self::getTableName($connection) . ' WHERE id = '.$value); |
|
| 175 | + $query = $connection->prepare('DELETE FROM '.self::getTableName($connection).' WHERE id = '.$value); |
|
| 176 | 176 | $query->execute(); |
| 177 | 177 | $check = $query->rowCount(); |
| 178 | 178 | if ($check) |