@@ -38,9 +38,9 @@ discard block |
||
38 | 38 | */ |
39 | 39 | protected $engine; |
40 | 40 | |
41 | - public function __construct( Engine $engine, ?callable $engine_config = null ) { |
|
41 | + public function __construct(Engine $engine, ?callable $engine_config = null) { |
|
42 | 42 | $this->engine = $engine_config |
43 | - ? $engine_config( $engine ) |
|
43 | + ? $engine_config($engine) |
|
44 | 44 | : $engine; |
45 | 45 | } |
46 | 46 | |
@@ -50,8 +50,8 @@ discard block |
||
50 | 50 | * @param Schema $schema |
51 | 51 | * @return bool |
52 | 52 | */ |
53 | - public function create_table( Schema $schema ): bool { |
|
54 | - return $this->engine->create_table( $schema ); |
|
53 | + public function create_table(Schema $schema): bool { |
|
54 | + return $this->engine->create_table($schema); |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | /** |
@@ -60,8 +60,8 @@ discard block |
||
60 | 60 | * @param Schema $schema |
61 | 61 | * @return bool |
62 | 62 | */ |
63 | - public function drop_table( Schema $schema ): bool { |
|
64 | - return $this->engine->drop_table( $schema ); |
|
63 | + public function drop_table(Schema $schema): bool { |
|
64 | + return $this->engine->drop_table($schema); |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | /** |
@@ -79,8 +79,8 @@ discard block |
||
79 | 79 | */ |
80 | 80 | protected $on_delete = ''; |
81 | 81 | |
82 | - public function __construct( string $column, ?string $key_name = null ) { |
|
83 | - $this->key_name = $key_name ?? 'fk_' . $column; |
|
82 | + public function __construct(string $column, ?string $key_name = null) { |
|
83 | + $this->key_name = $key_name ?? 'fk_'.$column; |
|
84 | 84 | $this->column = $column; |
85 | 85 | } |
86 | 86 | |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | * @param string $reference_column |
92 | 92 | * @return self |
93 | 93 | */ |
94 | - public function reference( string $reference_table, string $reference_column ): self { |
|
94 | + public function reference(string $reference_table, string $reference_column): self { |
|
95 | 95 | $this->reference_column = $reference_column; |
96 | 96 | $this->reference_table = $reference_table; |
97 | 97 | return $this; |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | * @param string $reference_table |
105 | 105 | * @return self |
106 | 106 | */ |
107 | - public function reference_table( string $reference_table ): self { |
|
107 | + public function reference_table(string $reference_table): self { |
|
108 | 108 | $this->reference_table = $reference_table; |
109 | 109 | return $this; |
110 | 110 | } |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | * @param string $reference_column |
117 | 117 | * @return self |
118 | 118 | */ |
119 | - public function reference_column( string $reference_column ): self { |
|
119 | + public function reference_column(string $reference_column): self { |
|
120 | 120 | $this->reference_column = $reference_column; |
121 | 121 | return $this; |
122 | 122 | } |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | * @param string $action |
129 | 129 | * @return self |
130 | 130 | */ |
131 | - public function on_update( string $action ): self { |
|
131 | + public function on_update(string $action): self { |
|
132 | 132 | $this->on_update = $action; |
133 | 133 | return $this; |
134 | 134 | } |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | * @param string $action |
142 | 142 | * @return self |
143 | 143 | */ |
144 | - public function on_delete( string $action ): self { |
|
144 | + public function on_delete(string $action): self { |
|
145 | 145 | $this->on_delete = $action; |
146 | 146 | return $this; |
147 | 147 | } |