From 245fac9eb8186351028824813450ef1f737185f4 Mon Sep 17 00:00:00 2001 From: Bill Wheeler Date: Tue, 18 Apr 2017 09:33:14 -0500 Subject: [PATCH 1/6] =?UTF-8?q?Fix=20some=20typos=E2=80=A6.I=E2=80=99m=20j?= =?UTF-8?q?ust=20anal=20about=20such=20things.=20=20:)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Import.php | 2 +- src/ImportCommand.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Import.php b/src/Import.php index 1a002d3..534f403 100644 --- a/src/Import.php +++ b/src/Import.php @@ -287,7 +287,7 @@ public function getPasswordResetValues($table) * * @return bool */ - public function needsRefrseh() + public function needsRefresh() { return $this->refresh; } 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'); } From 3349f6ef521b23ad0cad19be27aaf59af863da19 Mon Sep 17 00:00:00 2001 From: Tim Gallaugher Date: Wed, 23 Oct 2019 23:06:20 -0400 Subject: [PATCH 2/6] update illuminate version --- .gitignore | 1 + composer.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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/composer.json b/composer.json index 3d5318f..0313579 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 || ^6" }, "authors": [ { From 29711586803299bbc637fd954a67c0b502db8613 Mon Sep 17 00:00:00 2001 From: Tim Gallaugher Date: Wed, 23 Oct 2019 23:30:40 -0400 Subject: [PATCH 3/6] studly_case() -> Str::studly() --- src/Import.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Import.php b/src/Import.php index 6f38210..dea10f4 100644 --- a/src/Import.php +++ b/src/Import.php @@ -3,6 +3,7 @@ namespace Nicklayb\LaravelDbImport; use DB; +use 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); } /** @@ -354,7 +355,7 @@ public function hasLastTables() */ public function getManipulationName($table) { - return 'manipulate'.studly_case($table); + return 'manipulate'.Str::studly($table); } /** From 55d017014fc0af5e0242f07f2fb74dd398f2eca5 Mon Sep 17 00:00:00 2001 From: Tim Gallaugher Date: Wed, 23 Oct 2019 23:30:40 -0400 Subject: [PATCH 4/6] studly_case() -> Str::studly() --- src/Import.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Import.php b/src/Import.php index 6f38210..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); } /** @@ -354,7 +355,7 @@ public function hasLastTables() */ public function getManipulationName($table) { - return 'manipulate'.studly_case($table); + return 'manipulate'.Str::studly($table); } /** From fa3282e786427c2bcf69d2359eb60b11fabd827c Mon Sep 17 00:00:00 2001 From: Tim Gallaugher Date: Wed, 23 Oct 2019 23:51:36 -0400 Subject: [PATCH 5/6] update required illuminate support version --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 0313579..53deb1c 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "keywords": ["laravel", "database", "import", "artisan"], "license": "MIT", "require": { - "illuminate/support": "^5 || ^6" + "illuminate/support": ">=5.7" }, "authors": [ { From 56e742320408af9b38f17e70015c1daa09674e60 Mon Sep 17 00:00:00 2001 From: Nicolas Boisvert Date: Thu, 24 Oct 2019 11:18:18 -0400 Subject: [PATCH 6/6] Update travis --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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