php cs fixer

This commit is contained in:
Dennis Eichhorn 2018-12-28 19:13:17 +01:00
parent f69cb53ab9
commit e880c85889
2 changed files with 3 additions and 3 deletions

View File

@ -197,7 +197,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setPlain(string $plain) public function setPlain(string $plain) : void
{ {
$this->plain = $plain; $this->plain = $plain;
} }

View File

@ -34,7 +34,7 @@ final class NewsArticleMapper extends DataMapperAbstract
* @var array<string, array<string, bool|string>> * @var array<string, array<string, bool|string>>
* @since 1.0.0 * @since 1.0.0
*/ */
static protected $columns = [ protected static $columns = [
'news_id' => ['name' => 'news_id', 'type' => 'int', 'internal' => 'id'], 'news_id' => ['name' => 'news_id', 'type' => 'int', 'internal' => 'id'],
'news_created_by' => ['name' => 'news_created_by', 'type' => 'int', 'internal' => 'createdBy'], 'news_created_by' => ['name' => 'news_created_by', 'type' => 'int', 'internal' => 'createdBy'],
'news_publish' => ['name' => 'news_publish', 'type' => 'DateTime', 'internal' => 'publish'], 'news_publish' => ['name' => 'news_publish', 'type' => 'DateTime', 'internal' => 'publish'],
@ -48,7 +48,7 @@ final class NewsArticleMapper extends DataMapperAbstract
'news_created_at' => ['name' => 'news_created_at', 'type' => 'DateTime', 'internal' => 'createdAt'], 'news_created_at' => ['name' => 'news_created_at', 'type' => 'DateTime', 'internal' => 'createdAt'],
]; ];
static protected $belongsTo = [ protected static $belongsTo = [
'createdBy' => [ 'createdBy' => [
'mapper' => AccountMapper::class, 'mapper' => AccountMapper::class,
'src' => 'news_created_by', 'src' => 'news_created_by',