Skip to content

Commit 06a0249

Browse files
committed
refactor: exceptions directory
The exceptions directory was renamed from exception to exceptions. Closes #20
1 parent 3b84428 commit 06a0249

10 files changed

+12
-12
lines changed

src/Exception/CreateDirectoryException.php renamed to src/Exceptions/CreateDirectoryException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* file that was distributed with this source code.
1212
*/
1313

14-
namespace Josantonius\Json\Exception;
14+
namespace Josantonius\Json\Exceptions;
1515

1616
class CreateDirectoryException extends \Exception
1717
{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* file that was distributed with this source code.
1212
*/
1313

14-
namespace Josantonius\Json\Exception;
14+
namespace Josantonius\Json\Exceptions;
1515

1616
class CreateFileException extends \Exception
1717
{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* file that was distributed with this source code.
1212
*/
1313

14-
namespace Josantonius\Json\Exception;
14+
namespace Josantonius\Json\Exceptions;
1515

1616
class GetFileException extends \Exception
1717
{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* file that was distributed with this source code.
1212
*/
1313

14-
namespace Josantonius\Json\Exception;
14+
namespace Josantonius\Json\Exceptions;
1515

1616
class JsonErrorException extends \Exception
1717
{

src/Exception/UnavailableMethodException.php renamed to src/Exceptions/UnavailableMethodException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* file that was distributed with this source code.
1212
*/
1313

14-
namespace Josantonius\Json\Exception;
14+
namespace Josantonius\Json\Exceptions;
1515

1616
class UnavailableMethodException extends \Exception
1717
{

tests/ConstructMethodTest.php

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

1616
use Josantonius\Json\Json;
1717
use PHPUnit\Framework\TestCase;
18-
use Josantonius\Json\Exception\CreateFileException;
19-
use Josantonius\Json\Exception\CreateDirectoryException;
18+
use Josantonius\Json\Exceptions\CreateFileException;
19+
use Josantonius\Json\Exceptions\CreateDirectoryException;
2020

2121
class ConstructMethodTest extends TestCase
2222
{

tests/GetMethodTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
use Josantonius\Json\Json;
1717
use PHPUnit\Framework\TestCase;
18-
use Josantonius\Json\Exception\JsonErrorException;
18+
use Josantonius\Json\Exceptions\JsonErrorException;
1919

2020
class GetMethodTest extends TestCase
2121
{

tests/MergeMethodTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
use Josantonius\Json\Json;
1717
use PHPUnit\Framework\TestCase;
18-
use Josantonius\Json\Exception\UnavailableMethodException;
18+
use Josantonius\Json\Exceptions\UnavailableMethodException;
1919

2020
class MergeMethodTest extends TestCase
2121
{

tests/PushMethodTest.php

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

1616
use Josantonius\Json\Json;
1717
use PHPUnit\Framework\TestCase;
18-
use Josantonius\Json\Exception\GetFileException;
19-
use Josantonius\Json\Exception\UnavailableMethodException;
18+
use Josantonius\Json\Exceptions\GetFileException;
19+
use Josantonius\Json\Exceptions\UnavailableMethodException;
2020

2121
class PushMethodTest extends TestCase
2222
{

tests/SetMethodTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
use Josantonius\Json\Json;
1717
use PHPUnit\Framework\TestCase;
18-
use Josantonius\Json\Exception\UnavailableMethodException;
18+
use Josantonius\Json\Exceptions\UnavailableMethodException;
1919

2020
class SetMethodTest extends TestCase
2121
{

0 commit comments

Comments
 (0)