Skip to content

Commit

Permalink
resolving namespace conflicts (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvsaintpe authored Sep 15, 2024
1 parent 130b7c0 commit 9f90940
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
],
"autoload": {
"psr-4": {
"Umbrellio\\Deploy\\": "src/"
"Umbrellio\\RollbackMissingMigrations\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Umbrellio\\Deploy\\Tests\\": "tests/"
"Umbrellio\\RollbackMissingMigrations\\Tests\\": "tests/"
}
},
"require": {
Expand All @@ -55,7 +55,7 @@
"extra": {
"laravel": {
"providers": [
"Umbrellio\\Deploy\\RollbackMissingMigrationServiceProvider"
"Umbrellio\\RollbackMissingMigrations\\RollbackMissingMigrationServiceProvider"
]
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/Console/RollbackMissingMigrations.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace Umbrellio\Deploy\Console;
namespace Umbrellio\RollbackMissingMigrations\Console;

use Illuminate\Database\Console\Migrations\BaseCommand;
use Illuminate\Support\Facades\App;
use Symfony\Component\Process\Process;
use Umbrellio\Deploy\Helpers\DbHelper;
use Umbrellio\RollbackMissingMigrations\Helpers\DbHelper;

class RollbackMissingMigrations extends BaseCommand
{
Expand Down
2 changes: 1 addition & 1 deletion src/Console/RollbackNewMigrations.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Umbrellio\Deploy\Console;
namespace Umbrellio\RollbackMissingMigrations\Console;

use Illuminate\Console\Command;
use Illuminate\Database\Migrations\Migration;
Expand Down
2 changes: 1 addition & 1 deletion src/Exceptions/RollbackMissingMigrationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Umbrellio\Deploy\Exceptions;
namespace Umbrellio\RollbackMissingMigrations\Exceptions;

use Exception;
use Illuminate\Support\Collection;
Expand Down
4 changes: 2 additions & 2 deletions src/Helpers/DbHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace Umbrellio\Deploy\Helpers;
namespace Umbrellio\RollbackMissingMigrations\Helpers;

use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\DB;
use Umbrellio\Deploy\Exceptions\RollbackMissingMigrationException;
use Umbrellio\RollbackMissingMigrations\Exceptions\RollbackMissingMigrationException;

class DbHelper
{
Expand Down
6 changes: 3 additions & 3 deletions src/RollbackMissingMigrationServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

declare(strict_types=1);

namespace Umbrellio\Deploy;
namespace Umbrellio\RollbackMissingMigrations;

use Illuminate\Support\ServiceProvider;
use Umbrellio\Deploy\Console\RollbackMissingMigrations;
use Umbrellio\Deploy\Console\RollbackNewMigrations;
use Umbrellio\RollbackMissingMigrations\Console\RollbackMissingMigrations;
use Umbrellio\RollbackMissingMigrations\Console\RollbackNewMigrations;

class RollbackMissingMigrationServiceProvider extends ServiceProvider
{
Expand Down
2 changes: 1 addition & 1 deletion tests/FunctionalTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Umbrellio\Deploy\Tests;
namespace Umbrellio\RollbackMissingMigrations\Tests;

use Illuminate\Foundation\Application;
use Orchestra\Testbench\TestCase;
Expand Down
2 changes: 1 addition & 1 deletion tests/UnitTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Umbrellio\Deploy\Tests;
namespace Umbrellio\RollbackMissingMigrations\Tests;

use PHPUnit\Framework\TestCase;

Expand Down
8 changes: 4 additions & 4 deletions tests/functional/Console/RollbackMissingMigrationsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

declare(strict_types=1);

namespace Umbrellio\Deploy\Tests\functional\Console;
namespace Umbrellio\RollbackMissingMigrations\Tests\functional\Console;

use Generator;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\DB;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Test;
use Umbrellio\Deploy\Exceptions\RollbackMissingMigrationException;
use Umbrellio\Deploy\RollbackMissingMigrationServiceProvider;
use Umbrellio\Deploy\Tests\FunctionalTestCase;
use Umbrellio\RollbackMissingMigrations\Exceptions\RollbackMissingMigrationException;
use Umbrellio\RollbackMissingMigrations\RollbackMissingMigrationServiceProvider;
use Umbrellio\RollbackMissingMigrations\Tests\FunctionalTestCase;

class RollbackMissingMigrationsTest extends FunctionalTestCase
{
Expand Down

0 comments on commit 9f90940

Please sign in to comment.