Skip to content

Commit

Permalink
Lint code [PUB-205]
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhiltri committed Jul 15, 2024
1 parent 9923773 commit bb65a10
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/Presenters/Admin/DigitalPublicationArticlePresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace App\Presenters\Admin;


use Illuminate\Support\Str;
use App\Presenters\BasePresenter;

Expand Down Expand Up @@ -44,12 +43,14 @@ public function getBrowseMoreLink($showAll = false)
if ($this->entity->children->count() > 0 && !$showAll) {
return [
[
'label' => 'Browse all '. $this->entity->children->count(). ' '. $this->entity->title,
'href' => route('collection.publications.digital-publications.showListing',
'label' => 'Browse all ' . $this->entity->children->count() . ' ' . $this->entity->title,
'href' => route(
'collection.publications.digital-publications.showListing',
[
'id' => $this->entity->digitalPublication->id,
'slug' => $this->entity->digitalPublication->getSlug()
]) . '#' . Str::kebab($this->entity->title)
]
) . '#' . Str::kebab($this->entity->title)
]
];
}
Expand Down

0 comments on commit bb65a10

Please sign in to comment.