mirror of
https://github.com/jbcr/core.git
synced 2026-04-29 11:43:14 +02:00
CS fixes
This commit is contained in:
@@ -126,7 +126,7 @@ class ContentTypesParser extends BaseParser
|
||||
|
||||
if ($contentType['singleton']) {
|
||||
$contentType['listing_records'] = 1;
|
||||
} else if (isset($contentType['listing_records']) === false) {
|
||||
} elseif (isset($contentType['listing_records']) === false) {
|
||||
$contentType['listing_records'] = 6;
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +60,6 @@ class ContentFixtures extends Fixture implements DependentFixtureInterface
|
||||
$translationRepository = $manager->getRepository(Translation::class);
|
||||
|
||||
foreach ($this->config as $contentType) {
|
||||
|
||||
$amount = $contentType['singleton'] ? 1 : (int) ($contentType['listing_records'] * 2.5);
|
||||
|
||||
foreach (range(1, $amount) as $i) {
|
||||
|
||||
@@ -74,10 +74,9 @@ class RecordExtension extends AbstractExtension
|
||||
return $input;
|
||||
}
|
||||
|
||||
|
||||
public function pager(Environment $env, $records = null, string $template = '_sub_pager.twig', string $class = null, string $theme = null, int $surround = null)
|
||||
public function pager(Environment $env, $records = null, string $template = '_sub_pager.twig', ?string $class = null, ?string $theme = null, ?int $surround = null)
|
||||
{
|
||||
if (!is_iterable($records)) {
|
||||
if (! is_iterable($records)) {
|
||||
return "<strong class='bolt_template_warning'>Warning: Not possible to paginate given object.</strong>";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user