Passed
Push — develop ( 84fa8b...d633c2 )
by nguereza
03:19
created
src/Query/DeleteStatement.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -50,16 +50,14 @@  discard block
 block discarded – undo
50 50
  * Class DeleteStatement
51 51
  * @package Platine\Database\Query
52 52
  */
53
-class DeleteStatement extends BaseStatement
54
-{
53
+class DeleteStatement extends BaseStatement {
55 54
 
56 55
     /**
57 56
      * DeleteStatement constructor.
58 57
      * @param string|array<string> $from
59 58
      * @param QueryStatement|null $queryStatement
60 59
      */
61
-    public function __construct($from, QueryStatement $queryStatement = null)
62
-    {
60
+    public function __construct($from, QueryStatement $queryStatement = null) {
63 61
         parent::__construct($queryStatement);
64 62
 
65 63
         if (!is_array($from)) {
@@ -73,8 +71,7 @@  discard block
 block discarded – undo
73 71
      * @param string|array<string> $tables
74 72
      * @return mixed
75 73
      */
76
-    public function delete($tables = [])
77
-    {
74
+    public function delete($tables = []) {
78 75
         if (!is_array($tables)) {
79 76
             /** @var array<string> $tables */
80 77
             $tables = [$tables];
Please login to merge, or discard this patch.
src/Database.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@  discard block
 block discarded – undo
55 55
  * Class Database
56 56
  * @package Platine\Database
57 57
  */
58
-class Database
59
-{
58
+class Database {
60 59
 
61 60
     /**
62 61
      * The Connection instance
@@ -74,8 +73,7 @@  discard block
 block discarded – undo
74 73
      * Class constructor
75 74
      * @param Connection $connection
76 75
      */
77
-    public function __construct(Connection $connection)
78
-    {
76
+    public function __construct(Connection $connection) {
79 77
         $this->connection = $connection;
80 78
         $this->schema = $this->connection->getSchema();
81 79
     }
@@ -114,8 +112,7 @@  discard block
 block discarded – undo
114 112
      * @param callable $callback
115 113
      * @return mixed
116 114
      */
117
-    public function transaction(callable $callback)
118
-    {
115
+    public function transaction(callable $callback) {
119 116
         return $this->connection->transaction($callback, $this);
120 117
     }
121 118
 
Please login to merge, or discard this patch.