Update namespace

This commit is contained in:
nullthoughts
2020-03-17 14:01:56 -04:00
parent 552bc8fba8
commit cb719060f2
12 changed files with 26 additions and 26 deletions

View File

@@ -1,8 +1,8 @@
<?php <?php
namespace distinctm\LaravelDataSync\Console\Commands; namespace nullthoughts\LaravelDataSync\Console\Commands;
use distinctm\LaravelDataSync\Updater; use nullthoughts\LaravelDataSync\Updater;
use Illuminate\Console\Command; use Illuminate\Console\Command;
class Sync extends Command class Sync extends Command

View File

@@ -1,6 +1,6 @@
<?php <?php
namespace distinctm\LaravelDataSync; namespace nullthoughts\LaravelDataSync;
use Illuminate\Support\ServiceProvider; use Illuminate\Support\ServiceProvider;

View File

@@ -1,6 +1,6 @@
<?php <?php
namespace distinctm\LaravelDataSync\Exceptions; namespace nullthoughts\LaravelDataSync\Exceptions;
use Exception; use Exception;
use Throwable; use Throwable;

View File

@@ -1,6 +1,6 @@
<?php <?php
namespace distinctm\LaravelDataSync\Exceptions; namespace nullthoughts\LaravelDataSync\Exceptions;
use Exception; use Exception;

View File

@@ -1,6 +1,6 @@
<?php <?php
namespace distinctm\LaravelDataSync\Exceptions; namespace nullthoughts\LaravelDataSync\Exceptions;
use Exception; use Exception;

View File

@@ -1,6 +1,6 @@
<?php <?php
namespace distinctm\LaravelDataSync\Exceptions; namespace nullthoughts\LaravelDataSync\Exceptions;
use Exception; use Exception;
use Throwable; use Throwable;

View File

@@ -1,11 +1,11 @@
<?php <?php
namespace distinctm\LaravelDataSync; namespace nullthoughts\LaravelDataSync;
use distinctm\LaravelDataSync\Exceptions\ErrorUpdatingModelException; use nullthoughts\LaravelDataSync\Exceptions\ErrorUpdatingModelException;
use distinctm\LaravelDataSync\Exceptions\FileDirectoryNotFoundException; use nullthoughts\LaravelDataSync\Exceptions\FileDirectoryNotFoundException;
use distinctm\LaravelDataSync\Exceptions\NoCriteriaException; use nullthoughts\LaravelDataSync\Exceptions\NoCriteriaException;
use distinctm\LaravelDataSync\Exceptions\NoRecordsInvalidJSONException; use nullthoughts\LaravelDataSync\Exceptions\NoRecordsInvalidJSONException;
use Illuminate\Support\Collection; use Illuminate\Support\Collection;
use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\File;
use Illuminate\Support\Str; use Illuminate\Support\Str;
@@ -19,7 +19,7 @@ class Updater
* @param string|null $path * @param string|null $path
* @param string|null $model * @param string|null $model
* *
* @throws \distinctm\LaravelDataSync\Exceptions\FileDirectoryNotFoundException * @throws \nullthoughts\LaravelDataSync\Exceptions\FileDirectoryNotFoundException
*/ */
public function __construct($path = null, $model = null) public function __construct($path = null, $model = null)
{ {
@@ -52,7 +52,7 @@ class Updater
* *
* @param string $file * @param string $file
* *
* @throws \distinctm\LaravelDataSync\Exceptions\NoRecordsInvalidJSONException * @throws \nullthoughts\LaravelDataSync\Exceptions\NoRecordsInvalidJSONException
* *
* @return \Illuminate\Support\Collection * @return \Illuminate\Support\Collection
*/ */
@@ -81,7 +81,7 @@ class Updater
* *
* @param $path * @param $path
* *
* @throws \distinctm\LaravelDataSync\Exceptions\FileDirectoryNotFoundException * @throws \nullthoughts\LaravelDataSync\Exceptions\FileDirectoryNotFoundException
* *
* @return string * @return string
*/ */
@@ -148,7 +148,7 @@ class Updater
* *
* @param stdClass $record * @param stdClass $record
* *
* @throws \distinctm\LaravelDataSync\Exceptions\NoCriteriaException * @throws \nullthoughts\LaravelDataSync\Exceptions\NoCriteriaException
* *
* @return \Illuminate\Support\Collection * @return \Illuminate\Support\Collection
*/ */
@@ -206,7 +206,7 @@ class Updater
* *
* @param string $file * @param string $file
* *
* @throws \distinctm\LaravelDataSync\Exceptions\NoRecordsInvalidJSONException * @throws \nullthoughts\LaravelDataSync\Exceptions\NoRecordsInvalidJSONException
* *
* @return \Illuminate\Support\Collection * @return \Illuminate\Support\Collection
*/ */

View File

@@ -1,6 +1,6 @@
<?php <?php
namespace distinctm\LaravelDataSync\Tests; namespace nullthoughts\LaravelDataSync\Tests;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;

View File

@@ -1,6 +1,6 @@
<?php <?php
namespace distinctm\LaravelDataSync\Tests; namespace nullthoughts\LaravelDataSync\Tests;
use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Model;

View File

@@ -1,6 +1,6 @@
<?php <?php
namespace distinctm\LaravelDataSync\Tests; namespace nullthoughts\LaravelDataSync\Tests;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;

View File

@@ -1,9 +1,9 @@
<?php <?php
namespace distinctm\LaravelDataSync\Tests; namespace nullthoughts\LaravelDataSync\Tests;
use distinctm\LaravelDataSync\Exceptions\ErrorUpdatingModelException; use nullthoughts\LaravelDataSync\Exceptions\ErrorUpdatingModelException;
use distinctm\LaravelDataSync\Tests\fakes\UpdaterFake; use nullthoughts\LaravelDataSync\Tests\fakes\UpdaterFake;
use Exception; use Exception;
class UpdaterTest extends TestCase class UpdaterTest extends TestCase

View File

@@ -1,15 +1,15 @@
<?php <?php
namespace distinctm\LaravelDataSync\Tests\Fakes; namespace nullthoughts\LaravelDataSync\Tests\Fakes;
use distinctm\LaravelDataSync\Updater; use nullthoughts\LaravelDataSync\Updater;
use Illuminate\Support\Str; use Illuminate\Support\Str;
class UpdaterFake extends Updater class UpdaterFake extends Updater
{ {
protected function getModel(string $name) protected function getModel(string $name)
{ {
return '\\distinctm\\LaravelDataSync\\Tests\\'.Str::studly( return '\\nullthoughts\\LaravelDataSync\\Tests\\'.Str::studly(
pathinfo($name, PATHINFO_FILENAME) pathinfo($name, PATHINFO_FILENAME)
); );
} }