Skip to content

Commit

Permalink
remove unneeded namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
inmanturbo committed Feb 4, 2024
1 parent 3f3bd53 commit 2780f5b
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 24 deletions.
16 changes: 8 additions & 8 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,42 @@ parameters:
-
message: "#^Call to an undefined method Illuminate\\\\Database\\\\Schema\\\\MySqlBuilder\\:\\:mysqlDatabaseExists\\(\\)\\.$#"
count: 1
path: src/Macros/MySql/MySqlCreateDatabaseIfNotExists.php
path: src/MySql/MySqlCreateDatabaseIfNotExists.php

-
message: "#^Call to method getConnection\\(\\) on an unknown class Illuminate\\\\Database\\\\MySqlBuilder\\.$#"
count: 1
path: src/Macros/MySql/MySqlDatabaseExists.php
path: src/MySql/MySqlDatabaseExists.php

-
message: "#^PHPDoc tag @var for variable \\$this contains unknown class Illuminate\\\\Database\\\\MySqlBuilder\\.$#"
count: 1
path: src/Macros/MySql/MySqlDatabaseExists.php
path: src/MySql/MySqlDatabaseExists.php

-
message: "#^Cannot cast mixed to string\\.$#"
count: 1
path: src/Macros/MySql/MySqlEmptyTrash.php
path: src/MySql/MySqlEmptyTrash.php

-
message: "#^Call to an undefined method Illuminate\\\\Database\\\\Schema\\\\MySqlBuilder\\:\\:mysqlDatabaseExists\\(\\)\\.$#"
count: 1
path: src/Macros/MySql/MySqlTrashDatabase.php
path: src/MySql/MySqlTrashDatabase.php

-
message: "#^Parameter \\#1 \\.\\.\\.\\$arrays of function array_merge expects array, mixed given\\.$#"
count: 1
path: src/Macros/MySql/MySqlTrashDatabase.php
path: src/MySql/MySqlTrashDatabase.php

-
message: "#^Negated boolean expression is always true\\.$#"
count: 1
path: src/Macros/SQLite/SQLiteCreateDatabaseIfNotExists.php
path: src/SQLite/SQLiteCreateDatabaseIfNotExists.php

-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: src/Macros/SQLite/SQLiteCreateDatabaseIfNotExists.php
path: src/SQLite/SQLiteCreateDatabaseIfNotExists.php

-
message: "#^Instanceof between \\$this\\(Envor\\\\SchemaMacros\\\\SchemaMacrosServiceProvider\\) and Illuminate\\\\Database\\\\Schema\\\\MySqlBuilder will always evaluate to false\\.$#"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Envor\SchemaMacros\Macros\MySql;
namespace Envor\SchemaMacros\MySql;

use Stringable;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Envor\SchemaMacros\Macros\MySql;
namespace Envor\SchemaMacros\MySql;

use Stringable;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Envor\SchemaMacros\Macros\MySql;
namespace Envor\SchemaMacros\MySql;

use Envor\SchemaMacros\SchemaMacros;
use Illuminate\Support\Carbon;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Envor\SchemaMacros\Macros\MySql;
namespace Envor\SchemaMacros\MySql;

use Envor\SchemaMacros\SchemaMacros;
use Illuminate\Support\Facades\DB;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Envor\SchemaMacros\Macros\SQLite;
namespace Envor\SchemaMacros\SQLite;

use Illuminate\Support\Facades\File;
use Stringable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Envor\SchemaMacros\Macros\SQLite;
namespace Envor\SchemaMacros\SQLite;

use Illuminate\Support\Facades\File;
use Stringable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Envor\SchemaMacros\Macros\SQLite;
namespace Envor\SchemaMacros\SQLite;

use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Storage;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Envor\SchemaMacros\Macros\SQLite;
namespace Envor\SchemaMacros\SQLite;

use Envor\SchemaMacros\SchemaMacros;
use Illuminate\Support\Facades\File;
Expand Down
16 changes: 8 additions & 8 deletions src/SchemaMacrosServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ private function builderMacros(): array
private function sqliteBuilderMacros(): array
{
return [
'sqliteDatabaseExists' => \Envor\SchemaMacros\Macros\SQLite\SQLiteDatabaseExists::class,
'sqliteCreateDatabaseIfNotExists' => \Envor\SchemaMacros\Macros\SQLite\SQLiteCreateDatabaseIfNotExists::class,
'sqliteTrashDatabase' => \Envor\SchemaMacros\Macros\SQLite\SQLiteTrashDatabase::class,
'sqliteEmptyTrash' => \Envor\SchemaMacros\Macros\SQLite\SQLiteEmptyTrash::class,
'sqliteDatabaseExists' => \Envor\SchemaMacros\SQLite\SQLiteDatabaseExists::class,
'sqliteCreateDatabaseIfNotExists' => \Envor\SchemaMacros\SQLite\SQLiteCreateDatabaseIfNotExists::class,
'sqliteTrashDatabase' => \Envor\SchemaMacros\SQLite\SQLiteTrashDatabase::class,
'sqliteEmptyTrash' => \Envor\SchemaMacros\SQLite\SQLiteEmptyTrash::class,
];
}

Expand All @@ -117,10 +117,10 @@ private function sqliteBuilderMacros(): array
private function mysqlBuilderMacros(): array
{
return [
'mysqlDatabaseExists' => \Envor\SchemaMacros\Macros\MySql\MySqlDatabaseExists::class,
'mysqlCreateDatabaseIfNotExists' => \Envor\SchemaMacros\Macros\MySql\MySqlCreateDatabaseIfNotExists::class,
'mysqlTrashDatabase' => \Envor\SchemaMacros\Macros\MySql\MySqlTrashDatabase::class,
'mysqlEmptyTrash' => \Envor\SchemaMacros\Macros\MySql\MySqlEmptyTrash::class,
'mysqlDatabaseExists' => \Envor\SchemaMacros\MySql\MySqlDatabaseExists::class,
'mysqlCreateDatabaseIfNotExists' => \Envor\SchemaMacros\MySql\MySqlCreateDatabaseIfNotExists::class,
'mysqlTrashDatabase' => \Envor\SchemaMacros\MySql\MySqlTrashDatabase::class,
'mysqlEmptyTrash' => \Envor\SchemaMacros\MySql\MySqlEmptyTrash::class,
];
}
}

0 comments on commit 2780f5b

Please sign in to comment.