Skip to content

Commit 52313f7

Browse files
author
Ryan Lee
committed
IBX-10186 Run CS
1 parent af9df28 commit 52313f7

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/bundle/Resources/views/themes/admin/content/tab/locations/tab.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
}]) %}
8383

8484
{% set body_row_cols = body_row_cols|merge([
85-
{ content: (location.childCount > sub_item_query_limit) ? location.childCount ~ '+' : location.childCount },
85+
{ content: (location.childCount > sub_item_query_limit) ? (location.childCount -1) ~ '+' : location.childCount },
8686
]) %}
8787

8888
{% set body_rows = body_rows|merge([{ cols: body_row_cols }]) %}

src/lib/Form/TrashLocationOptionProvider/HasChildren.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ final class HasChildren implements TrashLocationOptionProvider
2323

2424
/** @var \Symfony\Contracts\Translation\TranslatorInterface */
2525
private $translator;
26-
26+
2727
/** @var \Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface */
2828
private $configResolver;
2929

@@ -45,7 +45,6 @@ public function addOptions(FormInterface $form, Location $location): void
4545

4646
$useLimit = $limit > 0;
4747
$childCount = $this->locationService->getLocationChildCount($location, $useLimit ? $limit + 1 : null);
48-
4948

5049
$translatorParameters = [
5150
'%children_count%' => ($useLimit && $childCount >= $limit) ?

src/lib/UI/Module/Subitems/ContentViewParameterSupplier.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ private function createRestLocation(Location $location): RestLocation
183183
$location,
184184
$this->locationService->getLocationChildCount(
185185
$location,
186-
// For the sub items module we only ever use the count to determine if there are children (0 or 1+),
187-
// hence setting a limit of 1 is sufficient here.
186+
// For the sub items module we only ever use the count to determine if there are children (0 or 1+),
187+
// hence setting a limit of 1 is sufficient here.
188188
1
189189
)
190190
);

0 commit comments

Comments
 (0)