Skip to content

Commit

Permalink
Apply fixes from StyleCI (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored Aug 5, 2017
1 parent ee2ba5f commit d0a0be9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/Notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Spatie\PhpUnitWatcher;

use Joli\JoliNotif\Notification as JoliNotification;
use Joli\JoliNotif\NotifierFactory;
use Joli\JoliNotif\Notification as JoliNotification;

class Notification
{
Expand All @@ -14,7 +14,7 @@ public static function create()
{
$joliNotification = (new JoliNotification)
->setTitle('PHPUnit Watcher')
->setIcon(__DIR__ . '/../images/notificationIcon.png');
->setIcon(__DIR__.'/../images/notificationIcon.png');

return new static($joliNotification);
}
Expand Down
9 changes: 4 additions & 5 deletions src/Screens/Phpunit.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

namespace Spatie\PhpUnitWatcher\Screens;

use Spatie\PhpUnitWatcher\Notification;
use Spatie\PhpUnitWatcher\Notifier;
use Symfony\Component\Process\Process;
use Spatie\PhpUnitWatcher\Notification;

class Phpunit extends Screen
{
Expand Down Expand Up @@ -103,8 +102,8 @@ protected function sendDesktopNotification(int $result)
? 'passingTests'
: 'failingTests';

if ($this->options['notifications'][$notificationName]) {
Notification::create()->$notificationName();
}
if ($this->options['notifications'][$notificationName]) {
Notification::create()->$notificationName();
}
}
}
4 changes: 2 additions & 2 deletions src/WatcherCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected function getOptionsFromConfigFile(): array
{
$configFilePath = $this->getConfigFileLocation();

if (!file_exists($configFilePath)) {
if (! file_exists($configFilePath)) {
return [];
}

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

Expand Down

0 comments on commit d0a0be9

Please sign in to comment.