@@ -100,7 +100,7 @@ |
||
100 | 100 | if (is_array($extraItem)) { |
101 | 101 | $extra = ArticleExtraEmbedField::newFromValue($key, $extraItem); |
102 | 102 | } else { |
103 | - $extra = ArticleExtraTextField::newFromValue($key, (string)$extraItem); |
|
103 | + $extra = ArticleExtraTextField::newFromValue($key, (string) $extraItem); |
|
104 | 104 | } |
105 | 105 | $extra->setArticle($article); |
106 | 106 | } |
@@ -691,7 +691,7 @@ |
||
691 | 691 | */ |
692 | 692 | public function isCurrent(): bool |
693 | 693 | { |
694 | - return ($this->isCurrent?true:false); |
|
694 | + return ($this->isCurrent ?true:false); |
|
695 | 695 | } |
696 | 696 | |
697 | 697 | /** |
@@ -100,7 +100,7 @@ |
||
100 | 100 | if (is_array($extraItem)) { |
101 | 101 | $extra = ArticleExtraEmbedField::newFromValue($key, $extraItem); |
102 | 102 | } else { |
103 | - $extra = ArticleExtraTextField::newFromValue($key, (string)$extraItem); |
|
103 | + $extra = ArticleExtraTextField::newFromValue($key, (string) $extraItem); |
|
104 | 104 | } |
105 | 105 | $extra->setArticle($article); |
106 | 106 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | { |
18 | 18 | // this up() migration is auto-generated, please modify it to your needs |
19 | 19 | $this->abortIf('postgresql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'postgresql\'.'); |
20 | - $this->addSql('ALTER TABLE swp_article ADD COLUMN IF NOT EXISTS feature_media INT DEFAULT NULL'); |
|
20 | + $this->addSql('ALTER TABLE swp_article ADD COLUMN IF NOT EXISTS feature_media INT DEFAULT NULL'); |
|
21 | 21 | $this->addSql('ALTER TABLE swp_article ADD CONSTRAINT FK_FB21E858A372AB05 FOREIGN KEY (feature_media) REFERENCES swp_article_media (id) ON DELETE SET NULL NOT DEFERRABLE INITIALLY IMMEDIATE'); |
22 | 22 | $this->addSql('CREATE INDEX IDX_FB21E858A372AB05 ON swp_article (feature_media)'); |
23 | 23 | } |