Test Failed
Branch master (7ddde4)
by Janis
02:30
created
Category
src/Dms/MySQL/QueryBuilder/Traits/Interfaces/TableTraitInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,5 +10,5 @@
 block discarded – undo
10 10
      *
11 11
      * @return $this
12 12
      */
13
-    public function table($table, bool $clearAll = false);
13
+    public function table ($table, bool $clearAll = false);
14 14
 }
Please login to merge, or discard this patch.
src/Dms/MySQL/QueryBuilder/Traits/OnDuplicateKeyUpdateTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
      * @throws QueryBuilderException
19 19
      * @return $this
20 20
      */
21
-    public function onDuplicateKeyUpdate(string $column, $value)
21
+    public function onDuplicateKeyUpdate (string $column, $value)
22 22
     {
23 23
         if (empty($column)) {
24 24
             throw new QueryBuilderException('You must pass $column to onDuplicateKeyUpdate function!');
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     /**
55 55
      * @return null|string
56 56
      */
57
-    protected function buildOnDuplicateKeyUpdateQueryPart(): ?string
57
+    protected function buildOnDuplicateKeyUpdateQueryPart (): ?string
58 58
     {
59 59
         return empty($this->onDuplicateKeyUpdate)
60 60
             ? null
Please login to merge, or discard this patch.
src/Dms/MySQL/Generator/DmsFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      *
20 20
      * @return DmsDatabase
21 21
      */
22
-    public function createDmsDatabase(string $databaseName, ConnectionInterface $connection): DmsDatabaseInterface
22
+    public function createDmsDatabase (string $databaseName, ConnectionInterface $connection): DmsDatabaseInterface
23 23
     {
24 24
         $tablesInDatabase = $connection->query('SHOW TABLES', \PDO::FETCH_CLASS, \stdClass::class);
25 25
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      *
38 38
      * @return DmsTable
39 39
      */
40
-    protected function createDmsTable(string $tableName, ConnectionInterface $connection): DmsTableInterface
40
+    protected function createDmsTable (string $tableName, ConnectionInterface $connection): DmsTableInterface
41 41
     {
42 42
         $columnsInTable = $connection->query(
43 43
             \sprintf('SHOW COLUMNS FROM %s', $tableName),
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      *
71 71
      * @return DmsColumn
72 72
      */
73
-    protected function createDmsColumn(
73
+    protected function createDmsColumn (
74 74
         string $name,
75 75
         string $type,
76 76
         bool $nullable,
Please login to merge, or discard this patch.
src/Dms/MySQL/Generator/Dms/DmsTable.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      * @param string $name
22 22
      * @param DmsColumnInterface[] $dmsColumns
23 23
      */
24
-    public function __construct(string $name, array $dmsColumns)
24
+    public function __construct (string $name, array $dmsColumns)
25 25
     {
26 26
         $this->name = $name;
27 27
         $this->dmsColumns = $dmsColumns;
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     /**
31 31
      * @return string
32 32
      */
33
-    public function getName(): string
33
+    public function getName (): string
34 34
     {
35 35
         return $this->name;
36 36
     }
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     /**
39 39
      * @return string
40 40
      */
41
-    public function getPhpName(): string
41
+    public function getPhpName (): string
42 42
     {
43 43
         return \ucfirst(\preg_replace_callback(
44 44
             '/[^a-z0-9]+(?<name>\w{1})/i',
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     /**
53 53
      * @return DmsColumnInterface[]
54 54
      */
55
-    public function getDmsColumns(): array
55
+    public function getDmsColumns (): array
56 56
     {
57 57
         return $this->dmsColumns;
58 58
     }
Please login to merge, or discard this patch.
src/Dms/MySQL/Generator/Dms/DmsDatabase.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      * @param string $name
22 22
      * @param DmsTableInterface[] $dmsTables
23 23
      */
24
-    public function __construct(string $name, array $dmsTables)
24
+    public function __construct (string $name, array $dmsTables)
25 25
     {
26 26
         $this->name = $name;
27 27
         $this->dmsTables = $dmsTables;
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     /**
31 31
      * @return string
32 32
      */
33
-    public function getName(): string
33
+    public function getName (): string
34 34
     {
35 35
         return $this->name;
36 36
     }
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     /**
39 39
      * @return string
40 40
      */
41
-    public function getPhpName(): string
41
+    public function getPhpName (): string
42 42
     {
43 43
         return \ucfirst(\preg_replace_callback(
44 44
             '/[^a-z0-9]+(?<name>\w{1})/i',
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     /**
53 53
      * @return DmsTableInterface[]
54 54
      */
55
-    public function getDmsTables(): array
55
+    public function getDmsTables (): array
56 56
     {
57 57
         return $this->dmsTables;
58 58
     }
Please login to merge, or discard this patch.
src/Dms/MySQL/Generator/Dms/DmsColumn.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      * @param string $default
68 68
      * @param null|string $extra
69 69
      */
70
-    public function __construct(
70
+    public function __construct (
71 71
         string $name,
72 72
         string $type,
73 73
         bool $nullable,
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     /**
87 87
      * @return string
88 88
      */
89
-    public function getName(): string
89
+    public function getName (): string
90 90
     {
91 91
         return $this->name;
92 92
     }
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     /**
95 95
      * @return string
96 96
      */
97
-    public function getPhpName(): string
97
+    public function getPhpName (): string
98 98
     {
99 99
         return \ucfirst(\preg_replace_callback(
100 100
             '/[^a-z0-9]+(?<name>\w{1})/i',
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     /**
109 109
      * @return string
110 110
      */
111
-    public function getType(): string
111
+    public function getType (): string
112 112
     {
113 113
         return $this->type;
114 114
     }
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      * @return string
118 118
      * @throws DmsException
119 119
      */
120
-    public function getPhpType(): string
120
+    public function getPhpType (): string
121 121
     {
122 122
         \preg_match('/^(?<type>\w+)/', $this->getType(), $matches);
123 123
         switch ($matches['type']) {
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
     /**
152 152
      * @return bool
153 153
      */
154
-    public function isNullable(): bool
154
+    public function isNullable (): bool
155 155
     {
156 156
         return $this->nullable;
157 157
     }
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     /**
160 160
      * @return string
161 161
      */
162
-    public function getKey(): string
162
+    public function getKey (): string
163 163
     {
164 164
         return $this->key;
165 165
     }
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
     /**
168 168
      * @return string
169 169
      */
170
-    public function getDefault(): string
170
+    public function getDefault (): string
171 171
     {
172 172
         return $this->default;
173 173
     }
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
     /**
176 176
      * @return string
177 177
      */
178
-    public function getPhpDefaultType(): string
178
+    public function getPhpDefaultType (): string
179 179
     {
180 180
         $default = empty($this->getDefault()) ? null : $this->getDefault();
181 181
 
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
     /**
199 199
      * @return null|string
200 200
      */
201
-    public function getExtra(): ?string
201
+    public function getExtra (): ?string
202 202
     {
203 203
         return $this->extra;
204 204
     }
Please login to merge, or discard this patch.
src/Dms/MySQL/Generator/Writer/BaseEntityClassWriter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     /**
18 18
      * @param WriterConfigInterface $writerConfig
19 19
      */
20
-    public function __construct(WriterConfigInterface $writerConfig)
20
+    public function __construct (WriterConfigInterface $writerConfig)
21 21
     {
22 22
         $this->writerConfig = $writerConfig;
23 23
     }
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      *
30 30
      * @return BaseEntityClassWriter
31 31
      */
32
-    public function write(
32
+    public function write (
33 33
         DmsDatabaseInterface $dmsDatabase,
34 34
         DmsTableInterface $dmsTable,
35 35
         array &$existingFiles
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     /**
46 46
      * @return WriterConfigInterface
47 47
      */
48
-    protected function getWriterConfig(): WriterConfigInterface
48
+    protected function getWriterConfig (): WriterConfigInterface
49 49
     {
50 50
         return $this->writerConfig;
51 51
     }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      *
57 57
      * @return string
58 58
      */
59
-    protected function generateFileContents(DmsDatabaseInterface $dmsDatabase, DmsTableInterface $dmsTable): string
59
+    protected function generateFileContents (DmsDatabaseInterface $dmsDatabase, DmsTableInterface $dmsTable): string
60 60
     {
61 61
         $gettersAndSetters = $dmsTable->getDmsColumns();
62 62
         $gettersAndSetters = \implode("\n\n", \array_map(
Please login to merge, or discard this patch.
src/Dms/MySQL/Generator/Writer/WriterConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      * @param null|string $classPrefix
13 13
      * @param null|string $classSuffix
14 14
      */
15
-    public function __construct(
15
+    public function __construct (
16 16
         string $directory,
17 17
         ?string $namespace = '',
18 18
         ?string $classPrefix = '',
Please login to merge, or discard this patch.
src/Dms/MySQL/Generator/Writer/EntityClassWriter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
      * @param WriterConfigInterface $writerConfig
19 19
      * @param BaseEntityClassWriter $baseEntityClassWriter
20 20
      */
21
-    public function __construct(WriterConfigInterface $writerConfig, BaseEntityClassWriter $baseEntityClassWriter)
21
+    public function __construct (WriterConfigInterface $writerConfig, BaseEntityClassWriter $baseEntityClassWriter)
22 22
     {
23 23
         $this->writerConfig = $writerConfig;
24 24
         $this->baseEntityClassWriter = $baseEntityClassWriter;
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      *
32 32
      * @return EntityClassWriter
33 33
      */
34
-    public function write(
34
+    public function write (
35 35
         DmsDatabaseInterface $dmsDatabase,
36 36
         DmsTableInterface $dmsTable,
37 37
         array &$existingFiles
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     /**
48 48
      * @return WriterConfigInterface
49 49
      */
50
-    protected function getWriterConfig(): WriterConfigInterface
50
+    protected function getWriterConfig (): WriterConfigInterface
51 51
     {
52 52
         return $this->writerConfig;
53 53
     }
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      *
59 59
      * @return string
60 60
      */
61
-    protected function generateFileContents(DmsDatabaseInterface $dmsDatabase, DmsTableInterface $dmsTable): string
61
+    protected function generateFileContents (DmsDatabaseInterface $dmsDatabase, DmsTableInterface $dmsTable): string
62 62
     {
63 63
         return /** @lang PHP */<<<PHP
64 64
 <?php declare(strict_types=1);
Please login to merge, or discard this patch.