From 035f4fb6c7779a3e1019be05ff9a75e8f2a6e409 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 1 Apr 2019 13:22:36 +0100 Subject: [PATCH] Fix spaces --- src/Exception/PartialNotFoundException.php | 4 +++- src/Service/Addresses.php | 2 +- tests/Unit/Service/AddressesTest.php | 7 ++++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/Exception/PartialNotFoundException.php b/src/Exception/PartialNotFoundException.php index f434027..e568bf0 100644 --- a/src/Exception/PartialNotFoundException.php +++ b/src/Exception/PartialNotFoundException.php @@ -2,4 +2,6 @@ namespace Opdavies\GmailFilterBuilder\Exception; -class PartialNotFoundException extends \RuntimeException {} +class PartialNotFoundException extends \RuntimeException +{ +} diff --git a/src/Service/Addresses.php b/src/Service/Addresses.php index d6e0f23..ddcfd99 100644 --- a/src/Service/Addresses.php +++ b/src/Service/Addresses.php @@ -28,7 +28,7 @@ class Addresses }); if (!$file) { - throw new PartialNotFoundException(vsprintf('%s does not exist.', [ + throw new PartialNotFoundException(vsprintf('%s does not exist.', [ $filename, ])); } diff --git a/tests/Unit/Service/AddressesTest.php b/tests/Unit/Service/AddressesTest.php index c1fbdef..d64495f 100644 --- a/tests/Unit/Service/AddressesTest.php +++ b/tests/Unit/Service/AddressesTest.php @@ -26,10 +26,11 @@ class AddressesTest extends TestCase } /** @test */ - public function throw_an_exception_if_an_address_file_does_not_exist() { - $this->expectException(PartialNotFoundException::class); + public function throw_an_exception_if_an_address_file_does_not_exist() + { + $this->expectException(PartialNotFoundException::class); - Addresses::load('does-not-exist'); + Addresses::load('does-not-exist'); } }