Skip to content

Commit

Permalink
fix lint for catevory update
Browse files Browse the repository at this point in the history
  • Loading branch information
Mh-Asmi committed Nov 26, 2024
1 parent 8277aeb commit 0429d59
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ public function __construct(
?string $icon,
?int $priority,
?array $role,
array $translations,
?string $defaultLanguage,
?array $availableLanguages = [],
array $translations
?array $availableLanguages = []
) {
$this->categoryId = $categoryId;
$this->parentId = $parentId;
Expand Down Expand Up @@ -117,9 +117,9 @@ public static function fromRequest(int $id, CategoryRequest $request, Category $
$request->has('icon')?$request->input('icon'):$current_category->icon,
$request->has('priority')?$request->input('priority'):$current_category->priority,
$request->has('role')?$request->input('role'):$current_category->role,
$request->input('translations')??[],
self::DEFAULT_LANUGAGE,
[],
$request->input('translations')??[]
[]
);
}

Expand Down

0 comments on commit 0429d59

Please sign in to comment.