@@ -26,13 +26,13 @@ |
||
26 | 26 | * @since v0.0.5 |
27 | 27 | */ |
28 | 28 | public function delete( |
29 | - $table, |
|
30 | - $where, |
|
31 | - $whereRaw, |
|
32 | - $whereIn, |
|
33 | - $whereNotIn, |
|
34 | - $whereNull, |
|
35 | - $whereNotNull |
|
29 | + $table, |
|
30 | + $where, |
|
31 | + $whereRaw, |
|
32 | + $whereIn, |
|
33 | + $whereNotIn, |
|
34 | + $whereNull, |
|
35 | + $whereNotNull |
|
36 | 36 | ) |
37 | 37 | { |
38 | 38 | $wqb = new WhereQueryBuilder(); |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | $wqb = new WhereQueryBuilder(); |
39 | 39 | $query = "DELETE FROM ".$table; |
40 | 40 | |
41 | - try{ |
|
41 | + try { |
|
42 | 42 | $whereQuery = $wqb->buildAllWhereQuery( |
43 | 43 | $where, |
44 | 44 | $whereRaw, |
@@ -47,9 +47,9 @@ discard block |
||
47 | 47 | $whereNull, |
48 | 48 | $whereNotNull |
49 | 49 | ); |
50 | - $query.= " ".join(" ", $whereQuery); |
|
50 | + $query .= " ".join(" ", $whereQuery); |
|
51 | 51 | Connection::get()->query($this->queryPrefix($query)); |
52 | - } catch(Exception $e){ |
|
52 | + } catch (Exception $e) { |
|
53 | 53 | throw new Exception($e->getMessage()); |
54 | 54 | } |
55 | 55 |