@@ -43,8 +43,8 @@ |
||
| 43 | 43 | class StandardEntity extends Entity |
| 44 | 44 | { |
| 45 | 45 | /** |
| 46 | - * {@inheritdoc} |
|
| 47 | - */ |
|
| 46 | + * {@inheritdoc} |
|
| 47 | + */ |
|
| 48 | 48 | public static function mapEntity(EntityMapperInterface $mapper): void |
| 49 | 49 | { |
| 50 | 50 | } |
@@ -40,8 +40,7 @@ |
||
| 40 | 40 | * @class StandardEntity |
| 41 | 41 | * @package Platine\Framework\Orm |
| 42 | 42 | */ |
| 43 | -class StandardEntity extends Entity |
|
| 44 | -{ |
|
| 43 | +class StandardEntity extends Entity { |
|
| 45 | 44 | /** |
| 46 | 45 | * {@inheritdoc} |
| 47 | 46 | */ |
@@ -39,8 +39,7 @@ |
||
| 39 | 39 | * @class DumpDriverInterface |
| 40 | 40 | * @package Platine\Framework\Tool\Database |
| 41 | 41 | */ |
| 42 | -interface DumpDriverInterface |
|
| 43 | -{ |
|
| 42 | +interface DumpDriverInterface { |
|
| 44 | 43 | /** |
| 45 | 44 | * Create new instance |
| 46 | 45 | * @param Connection $connection |
@@ -39,13 +39,11 @@ |
||
| 39 | 39 | * @class NullDumpDriver |
| 40 | 40 | * @package Platine\Framework\Tool\Database |
| 41 | 41 | */ |
| 42 | -class NullDumpDriver implements DumpDriverInterface |
|
| 43 | -{ |
|
| 42 | +class NullDumpDriver implements DumpDriverInterface { |
|
| 44 | 43 | /** |
| 45 | 44 | * {@inheritdoc} |
| 46 | 45 | */ |
| 47 | - public function __construct(protected Connection $connection) |
|
| 48 | - { |
|
| 46 | + public function __construct(protected Connection $connection) { |
|
| 49 | 47 | } |
| 50 | 48 | |
| 51 | 49 | public function dumpTable(string $name, int $mode, bool $isView = false): string |
@@ -43,13 +43,11 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -104,11 +104,11 @@ discard block |
||
| 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 |
||
| 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(); |
@@ -42,8 +42,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -53,14 +53,12 @@ |
||
| 53 | 53 | * @class AuthUser |
| 54 | 54 | * @package Platine\Framework\Audit |
| 55 | 55 | */ |
| 56 | -class AuthUser implements AuditUserInterface |
|
| 57 | -{ |
|
| 56 | +class AuthUser implements AuditUserInterface { |
|
| 58 | 57 | /** |
| 59 | 58 | * Create new instance |
| 60 | 59 | * @param AuthenticationInterface $authentication |
| 61 | 60 | */ |
| 62 | - public function __construct(protected AuthenticationInterface $authentication) |
|
| 63 | - { |
|
| 61 | + public function __construct(protected AuthenticationInterface $authentication) { |
|
| 64 | 62 | } |
| 65 | 63 | |
| 66 | 64 | |