Skip to content

Commit

Permalink
Changes namespace name
Browse files Browse the repository at this point in the history
  • Loading branch information
chapdel committed Jan 25, 2022
1 parent 1777146 commit f2c3948
Show file tree
Hide file tree
Showing 14 changed files with 21 additions and 25 deletions.
4 changes: 0 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
],
"license": "BSD-2-Clause",
"authors": [
{
"name": "Daniel Stainback",
"email": "[email protected]"
},
{
"name": "Chapdel KAMGA",
"email": "[email protected]"
Expand Down
6 changes: 3 additions & 3 deletions config/currency.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@
'drivers' => [

'database' => [
'class' => \ForexAPI\Currency\Drivers\Database::class,
'class' => \RestUniverse\Currency\Drivers\Database::class,
'connection' => null,
'table' => 'currencies',
],

'filesystem' => [
'class' => \ForexAPI\Currency\Drivers\Filesystem::class,
'class' => \RestUniverse\Currency\Drivers\Filesystem::class,
'disk' => null,
'path' => 'currencies.json',
],
Expand Down Expand Up @@ -114,7 +114,7 @@
'formatters' => [

'php_intl' => [
'class' => \ForexAPI\Currency\Formatters\PHPIntl::class,
'class' => \RestUniverse\Currency\Formatters\PHPIntl::class,
],

],
Expand Down
4 changes: 2 additions & 2 deletions src/Console/Cleanup.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ForexAPI\Currency\Console;
namespace RestUniverse\Currency\Console;

use Illuminate\Console\Command;

Expand All @@ -23,7 +23,7 @@ class Cleanup extends Command
/**
* Currency instance
*
* @var \ForexAPI\Currency\Currency
* @var \RestUniverse\Currency\Currency
*/
protected $currency;

Expand Down
4 changes: 2 additions & 2 deletions src/Console/Hydrate.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ForexAPI\Currency\Console;
namespace RestUniverse\Currency\Console;

use Illuminate\Support\Arr;
use Illuminate\Console\Command;
Expand All @@ -26,7 +26,7 @@ class Hydrate extends Command
/**
* Currency storage instance
*
* @var \ForexAPI\Currency\Contracts\DriverInterface
* @var \RestUniverse\Currency\Contracts\DriverInterface
*/
protected $storage;

Expand Down
2 changes: 1 addition & 1 deletion src/Contracts/DriverInterface.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ForexAPI\Currency\Contracts;
namespace RestUniverse\Currency\Contracts;

use DateTime;

Expand Down
2 changes: 1 addition & 1 deletion src/Contracts/FormatterInterface.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ForexAPI\Currency\Contracts;
namespace RestUniverse\Currency\Contracts;

interface FormatterInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Currency.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ForexAPI\Currency;
namespace RestUniverse\Currency;

use Illuminate\Support\Arr;
use Illuminate\Contracts\Cache\Factory as FactoryContract;
Expand Down Expand Up @@ -289,7 +289,7 @@ public function getActiveCurrencies()
/**
* Get storage driver.
*
* @return \ForexAPI\Currency\Contracts\DriverInterface
* @return \RestUniverse\Currency\Contracts\DriverInterface
*/
public function getDriver()
{
Expand All @@ -310,7 +310,7 @@ public function getDriver()
/**
* Get formatter driver.
*
* @return \ForexAPI\Currency\Contracts\FormatterInterface
* @return \RestUniverse\Currency\Contracts\FormatterInterface
*/
public function getFormatter()
{
Expand Down
2 changes: 1 addition & 1 deletion src/CurrencyServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ForexAPI\Currency;
namespace RestUniverse\Currency;

use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Str;
Expand Down
4 changes: 2 additions & 2 deletions src/Drivers/AbstractDriver.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace ForexAPI\Currency\Drivers;
namespace RestUniverse\Currency\Drivers;

use Illuminate\Support\Arr;
use ForexAPI\Currency\Contracts\DriverInterface;
use RestUniverse\Currency\Contracts\DriverInterface;

abstract class AbstractDriver implements DriverInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Drivers/Database.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ForexAPI\Currency\Drivers;
namespace RestUniverse\Currency\Drivers;

use DateTime;
use Illuminate\Support\Collection;
Expand Down
2 changes: 1 addition & 1 deletion src/Drivers/Filesystem.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ForexAPI\Currency\Drivers;
namespace RestUniverse\Currency\Drivers;

use DateTime;
use Exception;
Expand Down
4 changes: 2 additions & 2 deletions src/Formatters/PHPIntl.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace ForexAPI\Currency\Formatters;
namespace RestUniverse\Currency\Formatters;

use NumberFormatter;
use ForexAPI\Currency\Contracts\FormatterInterface;
use RestUniverse\Currency\Contracts\FormatterInterface;

class PHPIntl implements FormatterInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Middleware/CurrencyMiddleware.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ForexAPI\Currency\Middleware;
namespace RestUniverse\Currency\Middleware;

use Closure;
use Illuminate\Http\Request;
Expand Down
2 changes: 1 addition & 1 deletion src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @param string $to
* @param bool $format
*
* @return \ForexAPI\Currency\Currency|string
* @return \RestUniverse\Currency\Currency|string
*/
function currency($amount = null, $from = null, $to = null, $format = true)
{
Expand Down

0 comments on commit f2c3948

Please sign in to comment.