Skip to content

Commit f220880

Browse files
committed
Fix codestyle
1 parent 0946e3b commit f220880

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

src/Notification/MastodonNotifier.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ public function notify(Cfp $cfp)
4646
$uri = $this->shortenUri($cfp->uri);
4747
$tags = ' #' . implode(' #', $cfp->tags);
4848

49-
$notificationString = sprintf(<<<'NOTIFICATION'
49+
$notificationString = sprintf(
50+
<<<'NOTIFICATION'
5051
24 hours until the CfP for "%1$s" closes: %2$s
5152
5253
#cfp #conference%3$s

src/Service/ConfigService.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ class ConfigService
1515
{
1616
private $configFile = __DIR__ . '/../../config/callingallpapers.ini';
1717

18-
public function __construct() {}
18+
public function __construct()
19+
{
20+
}
1921

2022
public function getConfiguration(): array
2123
{
2224
return parse_ini_file($this->configFile)??[];
2325
}
24-
}
26+
}

src/Service/WriterFactory.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ public function getWriter()
3636
$config = parse_ini_file($this->configFile);
3737

3838
try {
39-
$writer = new $config['writer']($config['event_api_url'],
40-
$config['event_api_token']);
39+
$writer = new $config['writer'](
40+
$config['event_api_url'],
41+
$config['event_api_token']
42+
);
4143
} catch (\Throwable $e) {
4244
throw new UnknownWriterException('The requested writer could not be created');
4345
}

src/Subcommands/SessionizeApi/Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ protected function getServiceUrl() : string
4343
{
4444
return 'https://sessionize.com';
4545
}
46-
}
46+
}

src/Writer/NullOutput.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ public function write(
9090
$messages,
9191
$newline = false,
9292
$options = self::OUTPUT_NORMAL
93-
): void
94-
{
93+
): void {
9594
// TODO: Implement write() method.
9695
}
9796

0 commit comments

Comments
 (0)