Skip to content

Commit b2155f4

Browse files
committed
6592: Applied coding standards
1 parent 6f472ca commit b2155f4

7 files changed

Lines changed: 12 additions & 13 deletions

File tree

assets/admin/components/slide/slide-manager.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ function SlideManager({
393393
set(
394394
localFormStateObject,
395395
"media",
396-
rebuildMediaFromContent(localFormStateObject.content)
396+
rebuildMediaFromContent(localFormStateObject.content),
397397
);
398398

399399
setFormStateObject(localFormStateObject);

assets/shared/templates/image-text.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function ImageText({ slide, content, run, slideDone, executionId }) {
141141
if (newIndex < currentImages.length - 1) {
142142
imageTimeoutRef.current = setTimeout(
143143
() => changeImage(newIndex + 1),
144-
duration / currentImages.length
144+
duration / currentImages.length,
145145
);
146146
}
147147
}

src/Controller/Api/InteractiveController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function __invoke(Request $request, Slide $slide): JsonResponse
3535
{
3636
$user = $this->security->getUser();
3737

38-
if (!($user instanceof ScreenUser)) {
38+
if (!$user instanceof ScreenUser) {
3939
throw new AccessDeniedHttpException('Only screen user can perform action.');
4040
}
4141

src/Feed/CalendarApiFeedType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,9 @@ private function parseBool(string|bool $value): bool
461461
{
462462
if (is_bool($value)) {
463463
return $value;
464-
} else {
465-
return 'true' == strtolower($value);
466464
}
465+
466+
return 'true' == strtolower($value);
467467
}
468468

469469
private function getMapping(string $key): string

src/Feed/EventDatabaseApiV2FeedType.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@ public function getData(Feed $feed): array
165165
// Fallback option is to return the cached data.
166166
if ($cacheItem->isHit()) {
167167
return $cacheItem->get();
168-
} else {
169-
return [];
170168
}
169+
170+
return [];
171171
}
172172

173173
/**
@@ -281,9 +281,9 @@ public function getConfigOptions(Request $request, FeedSource $feedSource, strin
281281
} catch (\Exception) {
282282
if ($cacheItem->isHit()) {
283283
return $cacheItem->get();
284-
} else {
285-
return [];
286284
}
285+
286+
return [];
287287
}
288288
} elseif ('subscription' === $name) {
289289
$query = $request->query->all();

src/Feed/KobaFeedType.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,8 @@ public function getData(Feed $feed): array
8888
if (true === $filterList) {
8989
if (!str_contains($title, '(liste)')) {
9090
continue;
91-
} else {
92-
$title = str_replace('(liste)', '', $title);
9391
}
92+
$title = str_replace('(liste)', '', $title);
9493
}
9594

9695
// Apply booked title override. If enabled it changes the title to Optaget if it contains (optaget).

src/Repository/PlaylistSlideRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ private function getWeight(Ulid $ulid): int
216216
$playlistSlide = $queryBuilder->getQuery()->setMaxResults(1)->execute();
217217
if (0 === count($playlistSlide)) {
218218
return 0;
219-
} else {
220-
return $playlistSlide[0]->getWeight() + 1;
221219
}
220+
221+
return $playlistSlide[0]->getWeight() + 1;
222222
}
223223
}

0 commit comments

Comments
 (0)