Passed
Push — develop ( d3c53a...e28085 )
by nguereza
14:20
created
src/Tool/Database/MySQLDump.php 1 patch
Braces   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -43,13 +43,11 @@  discard block
 block discarded – undo
43 43
  * @class MySQLDump
44 44
  * @package Platine\Framework\Tool\Database
45 45
  */
46
-class MySQLDump implements DumpDriverInterface
47
-{
46
+class MySQLDump implements DumpDriverInterface {
48 47
     /**
49 48
      * {@inheritdoc}
50 49
      */
51
-    public function __construct(protected Connection $connection)
52
-    {
50
+    public function __construct(protected Connection $connection) {
53 51
     }
54 52
 
55 53
     /**
@@ -193,7 +191,8 @@  discard block
 block discarded – undo
193 191
 
194 192
 
195 193
         foreach ($lines as $str) {
196
-            if (substr($str, 0, 2) === '--') { // This is comment
194
+            if (substr($str, 0, 2) === '--') {
195
+// This is comment
197 196
                 continue;
198 197
             }
199 198
 
Please login to merge, or discard this patch.
src/Tool/Database/DatabaseDump.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -104,11 +104,11 @@  discard block
 block discarded – undo
104 104
     protected DumpDriverInterface $driver;
105 105
 
106 106
     /**
107
-    * Create new instance
108
-    * @param Connection $connection
109
-    * @param LoggerInterface $logger
110
-    * @param Filesystem $filesystem
111
-    */
107
+     * Create new instance
108
+     * @param Connection $connection
109
+     * @param LoggerInterface $logger
110
+     * @param Filesystem $filesystem
111
+     */
112 112
     public function __construct(
113 113
         protected Connection $connection,
114 114
         protected LoggerInterface $logger,
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
     protected function createDriver(): void
268 268
     {
269 269
         $maps = [
270
-          'mysql'  => MySQLDump::class,
270
+            'mysql'  => MySQLDump::class,
271 271
         ];
272 272
 
273 273
         $driver = $this->connection->getConfig()->getDriverName();
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,8 +42,7 @@  discard block
 block discarded – undo
42 42
  * @class DatabaseDump
43 43
  * @package Platine\Framework\Tool\Database
44 44
  */
45
-class DatabaseDump
46
-{
45
+class DatabaseDump {
47 46
     /**
48 47
      * Do not do backup of anything
49 48
      */
@@ -204,8 +203,7 @@  discard block
 block discarded – undo
204 203
      * @param array<string, int> $tables
205 204
      * @return $this
206 205
      */
207
-    public function setTables(array $tables)
208
-    {
206
+    public function setTables(array $tables) {
209 207
         if (!isset($tables['*'])) {
210 208
             $tables['*'] = self::ALL;
211 209
         }
Please login to merge, or discard this patch.