@@ -24,7 +24,7 @@ |
||
| 24 | 24 | public function up(Schema $schema): void |
| 25 | 25 | { |
| 26 | 26 | $table = $schema->createTable(_ENTITY::table()); |
| 27 | - $table->addColumn(_ENTITY::ID->column(), Types::INTEGER , ['Autoincrement' => true, 'unsigned' => true]); |
|
| 27 | + $table->addColumn(_ENTITY::ID->column(), Types::INTEGER, ['Autoincrement' => true, 'unsigned' => true]); |
|
| 28 | 28 | $table->addColumn(_ENTITY::DOMAIN_ID->column(), Types::INTEGER, ['unsigned' => true]); |
| 29 | 29 | $table->addColumn(_ENTITY::ATTR_SET_ID->column(), Types::INTEGER, ['unsigned' => true]); |
| 30 | 30 | $table->addColumn(_ENTITY::SERVICE_KEY->column(), Types::INTEGER, ['unsigned' => true, 'notnull' => false]); |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | public function up(Schema $schema): void |
| 25 | 25 | { |
| 26 | 26 | $table = $schema->createTable(_PIVOT::table()); |
| 27 | - $table->addColumn(_PIVOT::ID->column(), Types::INTEGER , ['Autoincrement' => true, 'unsigned' => true]); |
|
| 27 | + $table->addColumn(_PIVOT::ID->column(), Types::INTEGER, ['Autoincrement' => true, 'unsigned' => true]); |
|
| 28 | 28 | $table->addColumn(_PIVOT::DOMAIN_ID->column(), Types::INTEGER, ['unsigned' => true]); |
| 29 | 29 | $table->addColumn(_PIVOT::SET_ID->column(), Types::INTEGER, ['unsigned' => true]); |
| 30 | 30 | $table->addColumn(_PIVOT::GROUP_ID->column(), Types::INTEGER, ['unsigned' => true]); |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | public function up(Schema $schema): void |
| 25 | 25 | { |
| 26 | 26 | $table = $schema->createTable(_GROUP::table()); |
| 27 | - $table->addColumn(_GROUP::ID->column(), Types::INTEGER , ['Autoincrement' => true, 'unsigned' => true]); |
|
| 27 | + $table->addColumn(_GROUP::ID->column(), Types::INTEGER, ['Autoincrement' => true, 'unsigned' => true]); |
|
| 28 | 28 | $table->addColumn(_GROUP::SET_ID->column(), Types::INTEGER, ['unsigned' => true]); |
| 29 | 29 | $table->addColumn(_GROUP::NAME->column(), Types::STRING); |
| 30 | 30 | $table->setPrimaryKey([_GROUP::ID->column()]); |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | public static function runUp(Schema $schema, ATTR_TYPE $type) : Table |
| 21 | 21 | { |
| 22 | 22 | $table = $schema->createTable(sprintf(_VALUE::table(), $type->value())); |
| 23 | - $table->addColumn(_VALUE::ID->column(), Types::INTEGER , ['Autoincrement' => true, 'unsigned' => true]); |
|
| 23 | + $table->addColumn(_VALUE::ID->column(), Types::INTEGER, ['Autoincrement' => true, 'unsigned' => true]); |
|
| 24 | 24 | $table->addColumn(_VALUE::DOMAIN_ID->column(), Types::INTEGER, ['unsigned' => true]); |
| 25 | 25 | $table->addColumn(_VALUE::ENTITY_ID->column(), Types::INTEGER, ['unsigned' => true]); |
| 26 | 26 | $table->addColumn(_VALUE::ATTRIBUTE_ID->column(), Types::INTEGER, ['unsigned' => true]); |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | public function up(Schema $schema): void |
| 25 | 25 | { |
| 26 | 26 | $table = $schema->createTable(_DOMAIN::table()); |
| 27 | - $table->addColumn(_DOMAIN::ID->column(), Types::INTEGER , ['Autoincrement' => true, 'unsigned' => true]); |
|
| 27 | + $table->addColumn(_DOMAIN::ID->column(), Types::INTEGER, ['Autoincrement' => true, 'unsigned' => true]); |
|
| 28 | 28 | $table->addColumn(_DOMAIN::NAME->column(), Types::STRING); |
| 29 | 29 | $table->setPrimaryKey([_DOMAIN::ID->column()]); |
| 30 | 30 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | public function up(Schema $schema): void |
| 25 | 25 | { |
| 26 | 26 | $table = $schema->createTable(_SET::table()); |
| 27 | - $table->addColumn(_SET::ID->column(), Types::INTEGER , ['Autoincrement' => true,'unsigned' => true]); |
|
| 27 | + $table->addColumn(_SET::ID->column(), Types::INTEGER, ['Autoincrement' => true, 'unsigned' => true]); |
|
| 28 | 28 | $table->addColumn(_SET::DOMAIN_ID->column(), Types::INTEGER, ['unsigned' => true]); |
| 29 | 29 | $table->addColumn(_SET::NAME->column(), Types::INTEGER); |
| 30 | 30 | $table->setPrimaryKey([_SET::ID->column()]); |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | public function up(Schema $schema): void |
| 25 | 25 | { |
| 26 | 26 | $table = $schema->createTable(_ATTR::table()); |
| 27 | - $table->addColumn(_ATTR::ID->column(), Types::INTEGER , ['Autoincrement' => true, 'unsigned' => true]); |
|
| 27 | + $table->addColumn(_ATTR::ID->column(), Types::INTEGER, ['Autoincrement' => true, 'unsigned' => true]); |
|
| 28 | 28 | $table->addColumn(_ATTR::DOMAIN_ID->column(), Types::INTEGER, ['unsigned' => true]); |
| 29 | 29 | $table->addColumn(_ATTR::NAME->column(), Types::STRING); |
| 30 | 30 | $table->addColumn(_ATTR::TYPE->column(), Types::STRING); |
@@ -31,11 +31,11 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | public static function get(array $params = null) : DBALConnection |
| 33 | 33 | { |
| 34 | - if(!is_null($params)) { |
|
| 34 | + if (!is_null($params)) { |
|
| 35 | 35 | self::$conn = DriverManager::getConnection($params); |
| 36 | 36 | return self::$conn; |
| 37 | 37 | } |
| 38 | - if(!is_null(self::$conn)) { |
|
| 38 | + if (!is_null(self::$conn)) { |
|
| 39 | 39 | return self::$conn; |
| 40 | 40 | } |
| 41 | 41 | ConnectionException::undefined(); |
@@ -43,11 +43,11 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | public static function pdo(string $dsn = null, $username = null, $password = null, $options = null) : PDO |
| 45 | 45 | { |
| 46 | - if(!is_null($dsn)) { |
|
| 46 | + if (!is_null($dsn)) { |
|
| 47 | 47 | self::$pdo = new PDO($dsn, $username, $password, $options); |
| 48 | 48 | return self::$pdo; |
| 49 | 49 | } |
| 50 | - if(!is_null(self::$pdo)) { |
|
| 50 | + if (!is_null(self::$pdo)) { |
|
| 51 | 51 | return self::$pdo; |
| 52 | 52 | } |
| 53 | 53 | ConnectionException::undefined(); |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | public function boot() |
| 25 | 25 | { |
| 26 | 26 | $this->publishes([ |
| 27 | - __DIR__ . '/migrations/' => database_path('migrations/'), |
|
| 27 | + __DIR__.'/migrations/' => database_path('migrations/'), |
|
| 28 | 28 | ]); |
| 29 | 29 | } |
| 30 | 30 | } |