Skip to content

Commit 196ccb2

Browse files
author
Ryan Lee
committed
IBX-10186 Run CS at tell github to stop being problematic
1 parent 8a99030 commit 196ccb2

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
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: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ final class HasChildren implements TrashLocationOptionProvider
2323

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

3030
public function __construct(LocationService $locationService, TranslatorInterface $translator, ConfigResolverInterface $configResolver)
@@ -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
@@ -192,8 +192,8 @@ private function createRestLocation(Location $location): RestLocation
192192
$location,
193193
$this->locationService->getLocationChildCount(
194194
$location,
195-
// For the sub items module we only ever use the count to determine if there are children (0 or 1+),
196-
// hence setting a limit of 1 is sufficient here.
195+
// For the sub items module we only ever use the count to determine if there are children (0 or 1+),
196+
// hence setting a limit of 1 is sufficient here.
197197
1
198198
)
199199
);

0 commit comments

Comments
 (0)