Skip to content

Commit 2780f5b

Browse files
committed
remove unneeded namespace
1 parent 3f3bd53 commit 2780f5b

10 files changed

+24
-24
lines changed

phpstan-baseline.neon

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,42 @@ parameters:
33
-
44
message: "#^Call to an undefined method Illuminate\\\\Database\\\\Schema\\\\MySqlBuilder\\:\\:mysqlDatabaseExists\\(\\)\\.$#"
55
count: 1
6-
path: src/Macros/MySql/MySqlCreateDatabaseIfNotExists.php
6+
path: src/MySql/MySqlCreateDatabaseIfNotExists.php
77

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

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

1818
-
1919
message: "#^Cannot cast mixed to string\\.$#"
2020
count: 1
21-
path: src/Macros/MySql/MySqlEmptyTrash.php
21+
path: src/MySql/MySqlEmptyTrash.php
2222

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

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

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

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

4343
-
4444
message: "#^Instanceof between \\$this\\(Envor\\\\SchemaMacros\\\\SchemaMacrosServiceProvider\\) and Illuminate\\\\Database\\\\Schema\\\\MySqlBuilder will always evaluate to false\\.$#"

src/Macros/MySql/MySqlCreateDatabaseIfNotExists.php renamed to src/MySql/MySqlCreateDatabaseIfNotExists.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Envor\SchemaMacros\Macros\MySql;
3+
namespace Envor\SchemaMacros\MySql;
44

55
use Stringable;
66

src/Macros/MySql/MySqlDatabaseExists.php renamed to src/MySql/MySqlDatabaseExists.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Envor\SchemaMacros\Macros\MySql;
3+
namespace Envor\SchemaMacros\MySql;
44

55
use Stringable;
66

src/Macros/MySql/MySqlEmptyTrash.php renamed to src/MySql/MySqlEmptyTrash.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Envor\SchemaMacros\Macros\MySql;
3+
namespace Envor\SchemaMacros\MySql;
44

55
use Envor\SchemaMacros\SchemaMacros;
66
use Illuminate\Support\Carbon;

src/Macros/MySql/MySqlTrashDatabase.php renamed to src/MySql/MySqlTrashDatabase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Envor\SchemaMacros\Macros\MySql;
3+
namespace Envor\SchemaMacros\MySql;
44

55
use Envor\SchemaMacros\SchemaMacros;
66
use Illuminate\Support\Facades\DB;

src/Macros/SQLite/SQLiteCreateDatabaseIfNotExists.php renamed to src/SQLite/SQLiteCreateDatabaseIfNotExists.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Envor\SchemaMacros\Macros\SQLite;
3+
namespace Envor\SchemaMacros\SQLite;
44

55
use Illuminate\Support\Facades\File;
66
use Stringable;

src/Macros/SQLite/SQLiteDatabaseExists.php renamed to src/SQLite/SQLiteDatabaseExists.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Envor\SchemaMacros\Macros\SQLite;
3+
namespace Envor\SchemaMacros\SQLite;
44

55
use Illuminate\Support\Facades\File;
66
use Stringable;

src/Macros/SQLite/SQLiteEmptyTrash.php renamed to src/SQLite/SQLiteEmptyTrash.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Envor\SchemaMacros\Macros\SQLite;
3+
namespace Envor\SchemaMacros\SQLite;
44

55
use Illuminate\Support\Facades\File;
66
use Illuminate\Support\Facades\Storage;

src/Macros/SQLite/SQLiteTrashDatabase.php renamed to src/SQLite/SQLiteTrashDatabase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Envor\SchemaMacros\Macros\SQLite;
3+
namespace Envor\SchemaMacros\SQLite;
44

55
use Envor\SchemaMacros\SchemaMacros;
66
use Illuminate\Support\Facades\File;

src/SchemaMacrosServiceProvider.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ private function builderMacros(): array
104104
private function sqliteBuilderMacros(): array
105105
{
106106
return [
107-
'sqliteDatabaseExists' => \Envor\SchemaMacros\Macros\SQLite\SQLiteDatabaseExists::class,
108-
'sqliteCreateDatabaseIfNotExists' => \Envor\SchemaMacros\Macros\SQLite\SQLiteCreateDatabaseIfNotExists::class,
109-
'sqliteTrashDatabase' => \Envor\SchemaMacros\Macros\SQLite\SQLiteTrashDatabase::class,
110-
'sqliteEmptyTrash' => \Envor\SchemaMacros\Macros\SQLite\SQLiteEmptyTrash::class,
107+
'sqliteDatabaseExists' => \Envor\SchemaMacros\SQLite\SQLiteDatabaseExists::class,
108+
'sqliteCreateDatabaseIfNotExists' => \Envor\SchemaMacros\SQLite\SQLiteCreateDatabaseIfNotExists::class,
109+
'sqliteTrashDatabase' => \Envor\SchemaMacros\SQLite\SQLiteTrashDatabase::class,
110+
'sqliteEmptyTrash' => \Envor\SchemaMacros\SQLite\SQLiteEmptyTrash::class,
111111
];
112112
}
113113

@@ -117,10 +117,10 @@ private function sqliteBuilderMacros(): array
117117
private function mysqlBuilderMacros(): array
118118
{
119119
return [
120-
'mysqlDatabaseExists' => \Envor\SchemaMacros\Macros\MySql\MySqlDatabaseExists::class,
121-
'mysqlCreateDatabaseIfNotExists' => \Envor\SchemaMacros\Macros\MySql\MySqlCreateDatabaseIfNotExists::class,
122-
'mysqlTrashDatabase' => \Envor\SchemaMacros\Macros\MySql\MySqlTrashDatabase::class,
123-
'mysqlEmptyTrash' => \Envor\SchemaMacros\Macros\MySql\MySqlEmptyTrash::class,
120+
'mysqlDatabaseExists' => \Envor\SchemaMacros\MySql\MySqlDatabaseExists::class,
121+
'mysqlCreateDatabaseIfNotExists' => \Envor\SchemaMacros\MySql\MySqlCreateDatabaseIfNotExists::class,
122+
'mysqlTrashDatabase' => \Envor\SchemaMacros\MySql\MySqlTrashDatabase::class,
123+
'mysqlEmptyTrash' => \Envor\SchemaMacros\MySql\MySqlEmptyTrash::class,
124124
];
125125
}
126126
}

0 commit comments

Comments
 (0)