Skip to content

Commit

Permalink
cs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzmg committed Sep 22, 2023
1 parent 9000bca commit 7d83a58
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"symfony/translation": "^5.1 || ^6.0",
"terminal42/contao-node": "^1.3",
"terminal42/notification_center": "^1.5",
"terminal42/service-annotation-bundle": "^1.1"
"terminal42/service-annotation-bundle": "^1.1",
"symfony/polyfill-php80": "^1.28"
},
"autoload": {
"psr-4": {
Expand All @@ -59,7 +60,8 @@
"allow-plugins": {
"contao-components/installer": true,
"contao-community-alliance/composer-plugin": true,
"contao/manager-plugin": true
"contao/manager-plugin": true,
"php-http/discovery": false
}
}
}
1 change: 1 addition & 0 deletions src/Controller/EventRegistrationExportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
* defaults={"_scope": "backend"},
* requirements={"eventId": "\d+"}
* )
*
* @ServiceTag("controller.service_arguments")
*/
class EventRegistrationExportController
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __invoke(array $show, array $row, DataContainer $dc): array
foreach ($show as &$c) {
foreach ($c as &$table) {
foreach ($table as $k => $v) {
if (false !== strpos($k, 'form_data')) {
if (str_contains($k, 'form_data')) {
unset($table[$k]);
break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/EventListener/EventParseTemplateListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct(EventRegistration $eventRegistration)

public function __invoke(Template $template): void
{
if (empty($template->calendar) || 0 !== strpos($template->getName(), 'event')) {
if (empty($template->calendar) || !str_starts_with($template->getName(), 'event')) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/EventRegistration.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function getCurrentEvent(): ?CalendarEventsModel
/**
* Creates a simple token array with the given even data and optionally event registration data.
*/
public function getSimpleTokens(CalendarEventsModel $event, ?EventRegistrationModel $registration = null): array
public function getSimpleTokens(CalendarEventsModel $event, EventRegistrationModel $registration = null): array
{
$tokens = [];

Expand Down

0 comments on commit 7d83a58

Please sign in to comment.