Skip to content

Commit 7d36373

Browse files
committed
refactor: sort namespaces
Closes #19
1 parent 7698c23 commit 7d36373

11 files changed

+9
-34
lines changed

src/Exception/CreateDirectoryException.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313

1414
namespace Josantonius\Json\Exception;
1515

16-
/**
17-
* You can use an exception and error handler with this library.
18-
*
19-
* @see https://github.com/josantonius/php-error-handler
20-
*/
2116
class CreateDirectoryException extends \Exception
2217
{
2318
public function __construct(string $path)

src/Exception/CreateFileException.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313

1414
namespace Josantonius\Json\Exception;
1515

16-
/**
17-
* You can use an exception and error handler with this library.
18-
*
19-
* @see https://github.com/josantonius/php-error-handler
20-
*/
2116
class CreateFileException extends \Exception
2217
{
2318
public function __construct(string $filepath)

src/Exception/GetFileException.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313

1414
namespace Josantonius\Json\Exception;
1515

16-
/**
17-
* You can use an exception and error handler with this library.
18-
*
19-
* @see https://github.com/josantonius/php-error-handler
20-
*/
2116
class GetFileException extends \Exception
2217
{
2318
public function __construct(string $filepath)

src/Exception/JsonErrorException.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313

1414
namespace Josantonius\Json\Exception;
1515

16-
/**
17-
* You can use an exception and error handler with this library.
18-
*
19-
* @see https://github.com/josantonius/php-error-handler
20-
*/
2116
class JsonErrorException extends \Exception
2217
{
2318
public function __construct()

src/Exception/UnavailableMethodException.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313

1414
namespace Josantonius\Json\Exception;
1515

16-
/**
17-
* You can use an exception and error handler with this library.
18-
*
19-
* @see https://github.com/josantonius/php-error-handler
20-
*/
2116
class UnavailableMethodException extends \Exception
2217
{
2318
public function __construct(string $method)

src/Json.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
namespace Josantonius\Json;
1515

16-
use Josantonius\Json\Exception\CreateDirectoryException;
17-
use Josantonius\Json\Exception\CreateFileException;
1816
use Josantonius\Json\Exception\GetFileException;
1917
use Josantonius\Json\Exception\JsonErrorException;
18+
use Josantonius\Json\Exception\CreateFileException;
19+
use Josantonius\Json\Exception\CreateDirectoryException;
2020
use Josantonius\Json\Exception\UnavailableMethodException;
2121

2222
/**

tests/ConstructMethodTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
namespace Josantonius\Json\Tests;
1515

16-
use Josantonius\Json\Exception\CreateDirectoryException;
17-
use Josantonius\Json\Exception\CreateFileException;
1816
use Josantonius\Json\Json;
1917
use PHPUnit\Framework\TestCase;
18+
use Josantonius\Json\Exception\CreateFileException;
19+
use Josantonius\Json\Exception\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
@@ -13,9 +13,9 @@
1313

1414
namespace Josantonius\Json\Tests;
1515

16-
use Josantonius\Json\Exception\JsonErrorException;
1716
use Josantonius\Json\Json;
1817
use PHPUnit\Framework\TestCase;
18+
use Josantonius\Json\Exception\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
@@ -13,9 +13,9 @@
1313

1414
namespace Josantonius\Json\Tests;
1515

16-
use Josantonius\Json\Exception\UnavailableMethodException;
1716
use Josantonius\Json\Json;
1817
use PHPUnit\Framework\TestCase;
18+
use Josantonius\Json\Exception\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
@@ -13,10 +13,10 @@
1313

1414
namespace Josantonius\Json\Tests;
1515

16-
use Josantonius\Json\Exception\GetFileException;
17-
use Josantonius\Json\Exception\UnavailableMethodException;
1816
use Josantonius\Json\Json;
1917
use PHPUnit\Framework\TestCase;
18+
use Josantonius\Json\Exception\GetFileException;
19+
use Josantonius\Json\Exception\UnavailableMethodException;
2020

2121
class PushMethodTest extends TestCase
2222
{

0 commit comments

Comments
 (0)