mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-08 21:08:41 +00:00
Automated formatting changes
This commit is contained in:
parent
8bbfdb8baf
commit
72da0b67e3
|
|
@ -124,8 +124,8 @@ final class ApiController extends Controller
|
|||
$newsArticle->setType((int) ($request->getData('type') ?? $newsArticle->getType()));
|
||||
$newsArticle->setStatus((int) ($request->getData('status') ?? $newsArticle->getStatus()));
|
||||
$newsArticle->isFeatured = (bool) ($request->getData('featured') ?? $newsArticle->isFeatured);
|
||||
$newsArticle->unit = $request->getData('unit', 'int');
|
||||
$newsArticle->app = $request->getData('app', 'int');
|
||||
$newsArticle->unit = $request->getData('unit', 'int');
|
||||
$newsArticle->app = $request->getData('app', 'int');
|
||||
|
||||
return $newsArticle;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,8 +47,8 @@ final class NewsArticleMapper extends DataMapperFactory
|
|||
'news_type' => ['name' => 'news_type', 'type' => 'int', 'internal' => 'type'],
|
||||
'news_featured' => ['name' => 'news_featured', 'type' => 'bool', 'internal' => 'isFeatured'],
|
||||
'news_comment_list' => ['name' => 'news_comment_list', 'type' => 'int', 'internal' => 'comments'],
|
||||
'news_unit' => ['name' => 'news_unit', 'type' => 'int', 'internal' => 'unit'],
|
||||
'news_app' => ['name' => 'news_app', 'type' => 'int', 'internal' => 'app'],
|
||||
'news_unit' => ['name' => 'news_unit', 'type' => 'int', 'internal' => 'unit'],
|
||||
'news_app' => ['name' => 'news_app', 'type' => 'int', 'internal' => 'app'],
|
||||
'news_created_at' => ['name' => 'news_created_at', 'type' => 'DateTimeImmutable', 'internal' => 'createdAt', 'readonly' => true],
|
||||
'news_created_by' => ['name' => 'news_created_by', 'type' => 'int', 'internal' => 'createdBy', 'readonly' => true],
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user