Skip to content

Commit d0a0be9

Browse files
authored
Apply fixes from StyleCI (#32)
1 parent ee2ba5f commit d0a0be9

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

src/Notification.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Spatie\PhpUnitWatcher;
44

5-
use Joli\JoliNotif\Notification as JoliNotification;
65
use Joli\JoliNotif\NotifierFactory;
6+
use Joli\JoliNotif\Notification as JoliNotification;
77

88
class Notification
99
{
@@ -14,7 +14,7 @@ public static function create()
1414
{
1515
$joliNotification = (new JoliNotification)
1616
->setTitle('PHPUnit Watcher')
17-
->setIcon(__DIR__ . '/../images/notificationIcon.png');
17+
->setIcon(__DIR__.'/../images/notificationIcon.png');
1818

1919
return new static($joliNotification);
2020
}

src/Screens/Phpunit.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
namespace Spatie\PhpUnitWatcher\Screens;
44

5-
use Spatie\PhpUnitWatcher\Notification;
6-
use Spatie\PhpUnitWatcher\Notifier;
75
use Symfony\Component\Process\Process;
6+
use Spatie\PhpUnitWatcher\Notification;
87

98
class Phpunit extends Screen
109
{
@@ -103,8 +102,8 @@ protected function sendDesktopNotification(int $result)
103102
? 'passingTests'
104103
: 'failingTests';
105104

106-
if ($this->options['notifications'][$notificationName]) {
107-
Notification::create()->$notificationName();
108-
}
105+
if ($this->options['notifications'][$notificationName]) {
106+
Notification::create()->$notificationName();
107+
}
109108
}
110109
}

src/WatcherCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected function getOptionsFromConfigFile(): array
4747
{
4848
$configFilePath = $this->getConfigFileLocation();
4949

50-
if (!file_exists($configFilePath)) {
50+
if (! file_exists($configFilePath)) {
5151
return [];
5252
}
5353

@@ -94,7 +94,7 @@ protected function displayOptions(array $options, InputInterface $input, OutputI
9494
if (isset($options['configFilePath'])) {
9595
$output->text("Using options from configfile at `{$options['configFilePath']}`");
9696
} else {
97-
$output->text("No config file detected. Using default options.");
97+
$output->text('No config file detected. Using default options.');
9898
}
9999
$output->newLine();
100100

0 commit comments

Comments
 (0)