diff --git a/.gitignore b/.gitignore index 166ef74..37727c5 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ Homestead.yaml Homestead.json .env **/.DS_Store +.idea/* diff --git a/.travis.yml b/.travis.yml index 2fffed2..d14393b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: php php: - - '7.0' - - '7.1' + - '7.2' + - '7.3' before_script: composer install --dev script: phpunit diff --git a/composer.json b/composer.json index 3d5318f..53deb1c 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "keywords": ["laravel", "database", "import", "artisan"], "license": "MIT", "require": { - "illuminate/support": "^5" + "illuminate/support": ">=5.7" }, "authors": [ { diff --git a/src/Import.php b/src/Import.php index 671d7c1..03f8906 100644 --- a/src/Import.php +++ b/src/Import.php @@ -3,6 +3,7 @@ namespace Nicklayb\LaravelDbImport; use DB; +use Illuminate\Support\Str; /** * Class for Import process @@ -207,7 +208,7 @@ public function hasTableFilter($table) */ public function getFilterName($table) { - return 'filter'.studly_case($table); + return 'filter'. Str::studly($table); } /** @@ -331,7 +332,7 @@ public function getPasswordResetValues($table) * * @return bool */ - public function needsRefrseh() + public function needsRefresh() { return $this->refresh; } @@ -354,7 +355,7 @@ public function hasLastTables() */ public function getManipulationName($table) { - return 'manipulate'.studly_case($table); + return 'manipulate'.Str::studly($table); } /** diff --git a/src/ImportCommand.php b/src/ImportCommand.php index 794264d..dc6f8c9 100644 --- a/src/ImportCommand.php +++ b/src/ImportCommand.php @@ -31,7 +31,7 @@ class ImportCommand extends Command * * @var string */ - protected $description = 'Import data from a source database to a destionation database'; + protected $description = 'Import data from a source database to a destination database'; /** * Import to execute @@ -118,7 +118,7 @@ public function handle() { if ($this->boot()) { $this->bar->start(); - if ($this->import->needsRefrseh()) { + if ($this->import->needsRefresh()) { $this->bar->setMessage('Refreshing'); Artisan::call('migrate:refresh'); }