Skip to content

Commit 8a987b8

Browse files
committed
Update namespace
1 parent 552bc8f commit 8a987b8

12 files changed

+26
-26
lines changed

src/Console/Commands/Sync.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
namespace distinctm\LaravelDataSync\Console\Commands;
3+
namespace nullthoughts\LaravelDataSync\Console\Commands;
44

5-
use distinctm\LaravelDataSync\Updater;
5+
use nullthoughts\LaravelDataSync\Updater;
66
use Illuminate\Console\Command;
77

88
class Sync extends Command

src/DataSyncBaseServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace distinctm\LaravelDataSync;
3+
namespace nullthoughts\LaravelDataSync;
44

55
use Illuminate\Support\ServiceProvider;
66

src/Exceptions/ErrorUpdatingModelException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace distinctm\LaravelDataSync\Exceptions;
3+
namespace nullthoughts\LaravelDataSync\Exceptions;
44

55
use Exception;
66
use Throwable;

src/Exceptions/FileDirectoryNotFoundException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace distinctm\LaravelDataSync\Exceptions;
3+
namespace nullthoughts\LaravelDataSync\Exceptions;
44

55
use Exception;
66

src/Exceptions/NoCriteriaException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace distinctm\LaravelDataSync\Exceptions;
3+
namespace nullthoughts\LaravelDataSync\Exceptions;
44

55
use Exception;
66

src/Exceptions/NoRecordsInvalidJSONException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace distinctm\LaravelDataSync\Exceptions;
3+
namespace nullthoughts\LaravelDataSync\Exceptions;
44

55
use Exception;
66
use Throwable;

src/Updater.php

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace distinctm\LaravelDataSync;
3+
namespace nullthoughts\LaravelDataSync;
44

5-
use distinctm\LaravelDataSync\Exceptions\ErrorUpdatingModelException;
6-
use distinctm\LaravelDataSync\Exceptions\FileDirectoryNotFoundException;
7-
use distinctm\LaravelDataSync\Exceptions\NoCriteriaException;
8-
use distinctm\LaravelDataSync\Exceptions\NoRecordsInvalidJSONException;
5+
use nullthoughts\LaravelDataSync\Exceptions\ErrorUpdatingModelException;
6+
use nullthoughts\LaravelDataSync\Exceptions\FileDirectoryNotFoundException;
7+
use nullthoughts\LaravelDataSync\Exceptions\NoCriteriaException;
8+
use nullthoughts\LaravelDataSync\Exceptions\NoRecordsInvalidJSONException;
99
use Illuminate\Support\Collection;
1010
use Illuminate\Support\Facades\File;
1111
use Illuminate\Support\Str;
@@ -19,7 +19,7 @@ class Updater
1919
* @param string|null $path
2020
* @param string|null $model
2121
*
22-
* @throws \distinctm\LaravelDataSync\Exceptions\FileDirectoryNotFoundException
22+
* @throws \nullthoughts\LaravelDataSync\Exceptions\FileDirectoryNotFoundException
2323
*/
2424
public function __construct($path = null, $model = null)
2525
{
@@ -52,7 +52,7 @@ public function run()
5252
*
5353
* @param string $file
5454
*
55-
* @throws \distinctm\LaravelDataSync\Exceptions\NoRecordsInvalidJSONException
55+
* @throws \nullthoughts\LaravelDataSync\Exceptions\NoRecordsInvalidJSONException
5656
*
5757
* @return \Illuminate\Support\Collection
5858
*/
@@ -81,7 +81,7 @@ protected function syncModel(string $file)
8181
*
8282
* @param $path
8383
*
84-
* @throws \distinctm\LaravelDataSync\Exceptions\FileDirectoryNotFoundException
84+
* @throws \nullthoughts\LaravelDataSync\Exceptions\FileDirectoryNotFoundException
8585
*
8686
* @return string
8787
*/
@@ -148,7 +148,7 @@ protected function sortModels(\Illuminate\Support\Collection $files)
148148
*
149149
* @param stdClass $record
150150
*
151-
* @throws \distinctm\LaravelDataSync\Exceptions\NoCriteriaException
151+
* @throws \nullthoughts\LaravelDataSync\Exceptions\NoCriteriaException
152152
*
153153
* @return \Illuminate\Support\Collection
154154
*/
@@ -206,7 +206,7 @@ protected function getModel(string $name)
206206
*
207207
* @param string $file
208208
*
209-
* @throws \distinctm\LaravelDataSync\Exceptions\NoRecordsInvalidJSONException
209+
* @throws \nullthoughts\LaravelDataSync\Exceptions\NoRecordsInvalidJSONException
210210
*
211211
* @return \Illuminate\Support\Collection
212212
*/

tests/Roles.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace distinctm\LaravelDataSync\Tests;
3+
namespace nullthoughts\LaravelDataSync\Tests;
44

55
use Illuminate\Database\Eloquent\Model;
66

tests/Supervisor.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace distinctm\LaravelDataSync\Tests;
3+
namespace nullthoughts\LaravelDataSync\Tests;
44

55
use Illuminate\Database\Eloquent\Model;
66

tests/TestCase.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace distinctm\LaravelDataSync\Tests;
3+
namespace nullthoughts\LaravelDataSync\Tests;
44

55
use Illuminate\Database\Schema\Blueprint;
66
use Illuminate\Support\Facades\Schema;

tests/Unit/UpdaterTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace distinctm\LaravelDataSync\Tests;
3+
namespace nullthoughts\LaravelDataSync\Tests;
44

5-
use distinctm\LaravelDataSync\Exceptions\ErrorUpdatingModelException;
6-
use distinctm\LaravelDataSync\Tests\fakes\UpdaterFake;
5+
use nullthoughts\LaravelDataSync\Exceptions\ErrorUpdatingModelException;
6+
use nullthoughts\LaravelDataSync\Tests\fakes\UpdaterFake;
77
use Exception;
88

99
class UpdaterTest extends TestCase

tests/fakes/UpdaterFake.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<?php
22

3-
namespace distinctm\LaravelDataSync\Tests\Fakes;
3+
namespace nullthoughts\LaravelDataSync\Tests\Fakes;
44

5-
use distinctm\LaravelDataSync\Updater;
5+
use nullthoughts\LaravelDataSync\Updater;
66
use Illuminate\Support\Str;
77

88
class UpdaterFake extends Updater
99
{
1010
protected function getModel(string $name)
1111
{
12-
return '\\distinctm\\LaravelDataSync\\Tests\\'.Str::studly(
12+
return '\\nullthoughts\\LaravelDataSync\\Tests\\'.Str::studly(
1313
pathinfo($name, PATHINFO_FILENAME)
1414
);
1515
}

0 commit comments

Comments
 (0)