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 authored and tuxpiper committed Nov 28, 2024
1 parent 5d3c922 commit f3c3218
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 f3c3218

Please sign in to comment.