Skip to content

Commit

Permalink
refactor: Rename package namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielanhaia committed Jun 23, 2020
1 parent 7b8a1c5 commit 8d7baac
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
],
"autoload": {
"psr-4": {
"GabrielAnhaia\\LaravelCircuitBreaker\\": "src/"
"GabrielAnhaia\\PhpCircuitBreaker\\": "src/"
}
},
"autoload-dev": {
Expand Down
4 changes: 2 additions & 2 deletions src/Adapter/Redis/KeyHelper.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php


namespace GabrielAnhaia\LaravelCircuitBreaker\Adapter\Redis;
namespace GabrielAnhaia\PhpCircuitBreaker\Adapter\Redis;

/**
* Class KeyHelper responsible to deal with redis keys.
*
* @package GabrielAnhaia\LaravelCircuitBreaker\Adapter\Redis
* @package GabrielAnhaia\PhpCircuitBreaker\Adapter\Redis
*
* @author Gabriel Anhaia <[email protected]>>
*/
Expand Down
10 changes: 5 additions & 5 deletions src/Adapter/Redis/RedisCircuitBreaker.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?php


namespace GabrielAnhaia\LaravelCircuitBreaker\Adapter\Redis;
namespace GabrielAnhaia\PhpCircuitBreaker\Adapter\Redis;

use GabrielAnhaia\LaravelCircuitBreaker\CircuitState;
use GabrielAnhaia\LaravelCircuitBreaker\Contract\CircuitBreakerAdapter;
use GabrielAnhaia\LaravelCircuitBreaker\Exception\AdapterException;
use GabrielAnhaia\PhpCircuitBreaker\CircuitState;
use GabrielAnhaia\PhpCircuitBreaker\Contract\CircuitBreakerAdapter;
use GabrielAnhaia\PhpCircuitBreaker\Exception\AdapterException;

/**
* Class RedisCircuitBreaker
*
* @package GabrielAnhaia\LaravelCircuitBreaker\Adapter
* @package GabrielAnhaia\PhpCircuitBreaker\Adapter
*
* @author Gabriel Anhaia <[email protected]>
*/
Expand Down
8 changes: 4 additions & 4 deletions src/CircuitBreaker.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php declare(strict_types=1);

namespace GabrielAnhaia\LaravelCircuitBreaker;
namespace GabrielAnhaia\PhpCircuitBreaker;

use GabrielAnhaia\LaravelCircuitBreaker\Contract\CircuitBreakerAdapter;
use GabrielAnhaia\LaravelCircuitBreaker\Exception\CircuitException;
use GabrielAnhaia\PhpCircuitBreaker\Contract\CircuitBreakerAdapter;
use GabrielAnhaia\PhpCircuitBreaker\Exception\CircuitException;

/**
* Class CircuitBreaker
*
* @package GabrielAnhaia\LaravelCircuitBreaker
* @package GabrielAnhaia\PhpCircuitBreaker
*
* @author Gabriel Anhaia <[email protected]>
*/
Expand Down
4 changes: 2 additions & 2 deletions src/CircuitState.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace GabrielAnhaia\LaravelCircuitBreaker;
namespace GabrielAnhaia\PhpCircuitBreaker;

use Eloquent\Enumeration\AbstractEnumeration;

/**
* Class CircuitState
*
* @package GabrielAnhaia\LaravelCircuitBreaker
* @package GabrielAnhaia\PhpCircuitBreaker
*
* @author Gabriel Anhaia <[email protected]>
*
Expand Down
6 changes: 3 additions & 3 deletions src/Contract/CircuitBreakerAdapter.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php declare(strict_types=1);

namespace GabrielAnhaia\LaravelCircuitBreaker\Contract;
namespace GabrielAnhaia\PhpCircuitBreaker\Contract;

use GabrielAnhaia\LaravelCircuitBreaker\CircuitState;
use GabrielAnhaia\PhpCircuitBreaker\CircuitState;

/**
* Class CircuitBreakerAdapter
*
* @package GabrielAnhaia\LaravelCircuitBreaker\Contract
* @package GabrielAnhaia\PhpCircuitBreaker\Contract
*
* @author Gabriel Anhaia <[email protected]>
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Exception/AdapterException.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php


namespace GabrielAnhaia\LaravelCircuitBreaker\Exception;
namespace GabrielAnhaia\PhpCircuitBreaker\Exception;

use Throwable;

/**
* Class AdapterException
*
* @package GabrielAnhaia\LaravelCircuitBreaker\Exception
* @package GabrielAnhaia\PhpCircuitBreaker\Exception
*
* @author Gabriel Anhaia <[email protected]>
*/
Expand Down
6 changes: 3 additions & 3 deletions src/Exception/CircuitException.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?php


namespace GabrielAnhaia\LaravelCircuitBreaker\Exception;
namespace GabrielAnhaia\PhpCircuitBreaker\Exception;

use GabrielAnhaia\LaravelCircuitBreaker\CircuitState;
use GabrielAnhaia\PhpCircuitBreaker\CircuitState;
use Throwable;

/**
* Class CircuitException
*
* @package GabrielAnhaia\LaravelCircuitBreaker\Exception
* @package GabrielAnhaia\PhpCircuitBreaker\Exception
*
* @author Gabriel Anhaia <[email protected]>
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Adapter/Redis/KeyHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Tests\Unit\Adapter\Redis;

use GabrielAnhaia\LaravelCircuitBreaker\Adapter\Redis\KeyHelper;
use GabrielAnhaia\PhpCircuitBreaker\Adapter\Redis\KeyHelper;
use Tests\TestCase;

/**
Expand Down
8 changes: 4 additions & 4 deletions tests/Unit/Adapter/Redis/RedisCircuitBreakerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Tests\Unit\Adapter\Redis;

use GabrielAnhaia\LaravelCircuitBreaker\Adapter\Redis\KeyHelper;
use GabrielAnhaia\LaravelCircuitBreaker\Adapter\Redis\RedisCircuitBreaker;
use GabrielAnhaia\LaravelCircuitBreaker\CircuitState;
use GabrielAnhaia\LaravelCircuitBreaker\Exception\AdapterException;
use GabrielAnhaia\PhpCircuitBreaker\Adapter\Redis\KeyHelper;
use GabrielAnhaia\PhpCircuitBreaker\Adapter\Redis\RedisCircuitBreaker;
use GabrielAnhaia\PhpCircuitBreaker\CircuitState;
use GabrielAnhaia\PhpCircuitBreaker\Exception\AdapterException;
use Tests\TestCase;

/**
Expand Down

0 comments on commit 8d7baac

Please sign in to comment.