Passed
Push — develop ( ab2dee...f7d7c9 )
by nguereza
11:21
created
src/ResultSet.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@  discard block
 block discarded – undo
54 54
  * @class ResultSet
55 55
  * @package Platine\Database
56 56
  */
57
-class ResultSet
58
-{
57
+class ResultSet {
59 58
     /**
60 59
      * The PDOStatement instance
61 60
      * @var PDOStatement
@@ -66,8 +65,7 @@  discard block
 block discarded – undo
66 65
      * Class constructor
67 66
      * @param PDOStatement $statement
68 67
      */
69
-    public function __construct(PDOStatement $statement)
70
-    {
68
+    public function __construct(PDOStatement $statement) {
71 69
         $this->statement = $statement;
72 70
     }
73 71
 
@@ -75,8 +73,7 @@  discard block
 block discarded – undo
75 73
      * Destructor of the class
76 74
      *
77 75
      */
78
-    public function __destruct()
79
-    {
76
+    public function __destruct() {
80 77
         $this->statement->closeCursor();
81 78
     }
82 79
 
Please login to merge, or discard this patch.
src/QueryBuilder.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@  discard block
 block discarded – undo
55 55
  * @class QueryBuilder
56 56
  * @package Platine\Database
57 57
  */
58
-class QueryBuilder
59
-{
58
+class QueryBuilder {
60 59
     /**
61 60
      * The Connection instance
62 61
      * @var Connection
@@ -73,8 +72,7 @@  discard block
 block discarded – undo
73 72
      * Class constructor
74 73
      * @param Connection $connection
75 74
      */
76
-    public function __construct(Connection $connection)
77
-    {
75
+    public function __construct(Connection $connection) {
78 76
         $this->connection = $connection;
79 77
         $this->schema = $this->connection->getSchema();
80 78
     }
Please login to merge, or discard this patch.
src/Pool.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@  discard block
 block discarded – undo
53 53
  * @class Pool
54 54
  * @package Platine\Database
55 55
  */
56
-class Pool
57
-{
56
+class Pool {
58 57
     /**
59 58
      * The default connection name
60 59
      * @var string
@@ -71,8 +70,7 @@  discard block
 block discarded – undo
71 70
      * Class constructor
72 71
      * @param array<string, mixed> $config
73 72
      */
74
-    public function __construct(array $config = [])
75
-    {
73
+    public function __construct(array $config = []) {
76 74
         if (count($config) > 0) {
77 75
             if (
78 76
                 is_array($config['connections']) &&
Please login to merge, or discard this patch.
src/Connection.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@
 block discarded – undo
61 61
  * @class Connection
62 62
  * @package Platine\Database
63 63
  */
64
-class Connection
65
-{
64
+class Connection {
66 65
     /**
67 66
      * The PDO instance
68 67
      * @var PDO
Please login to merge, or discard this patch.
src/ConnectionStatement.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,7 @@
 block discarded – undo
52 52
  * @class ConnectionStatement
53 53
  * @package Platine\Database
54 54
  */
55
-class ConnectionStatement extends PDOStatement
56
-{
55
+class ConnectionStatement extends PDOStatement {
57 56
     /**
58 57
      * {@inheritdoc}
59 58
      */
Please login to merge, or discard this patch.
src/Schema/CreateTable.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@  discard block
 block discarded – undo
50 50
  * @class CreateTable
51 51
  * @package Platine\Database\Schema
52 52
  */
53
-class CreateTable
54
-{
53
+class CreateTable {
55 54
     /**
56 55
      * The list of CreateColumn
57 56
      * @var array<string, CreateColumn>
@@ -104,8 +103,7 @@  discard block
 block discarded – undo
104 103
      * Class constructor
105 104
      * @param string $table
106 105
      */
107
-    public function __construct(string $table)
108
-    {
106
+    public function __construct(string $table) {
109 107
         $this->table = $table;
110 108
     }
111 109
 
Please login to merge, or discard this patch.
src/Schema/BaseColumn.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@  discard block
 block discarded – undo
50 50
  * @class BaseColumn
51 51
  * @package Platine\Database\Schema
52 52
  */
53
-class BaseColumn
54
-{
53
+class BaseColumn {
55 54
     /**
56 55
      * The name of the column
57 56
      * @var string
@@ -75,8 +74,7 @@  discard block
 block discarded – undo
75 74
      * @param string $name
76 75
      * @param string|null $type
77 76
      */
78
-    public function __construct(string $name, ?string $type = null)
79
-    {
77
+    public function __construct(string $name, ?string $type = null) {
80 78
         $this->name = $name;
81 79
         $this->type = $type;
82 80
     }
@@ -151,8 +149,7 @@  discard block
 block discarded – undo
151 149
      * @param mixed $default
152 150
      * @return mixed
153 151
      */
154
-    public function get(string $name, mixed $default = null)
155
-    {
152
+    public function get(string $name, mixed $default = null) {
156 153
         return isset($this->properties[$name])
157 154
                     ? $this->properties[$name]
158 155
                     : $default;
Please login to merge, or discard this patch.
src/Query/Delete.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@
 block discarded – undo
53 53
  * @class Delete
54 54
  * @package Platine\Database\Query
55 55
  */
56
-class Delete extends DeleteStatement
57
-{
56
+class Delete extends DeleteStatement {
58 57
     /**
59 58
      * @var Connection
60 59
      */
Please login to merge, or discard this patch.
src/Query/Update.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,7 @@
 block discarded – undo
52 52
  * @class Update
53 53
  * @package Platine\Database\Query
54 54
  */
55
-class Update extends UpdateStatement
56
-{
55
+class Update extends UpdateStatement {
57 56
     /**
58 57
      * @var Connection
59 58
      */
Please login to merge, or discard this patch.