This repository has been archived by the owner on Feb 16, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release/v0.0.3: (31 commits) Update changelog Remove not-existing validation rule usage (fix #12) Fix minor readme typos Drop Laravel 5.5 support Update composer packages Update composer packages Add force option to artisan commands Simplify IoC binding Update minimum required PHP version Add Laravel v5.6 support Drop useless model contracts (models already swappable through IoC) Typehint void method returns Tweak composer file Require PHP 7.1.0 at least Simplify reamde Remove unused namespace Add composer dependency roave/security-advisories Add PHPUnitPrettyResultPrinter Enforce consistency Add missing composer dependencies ...
- Loading branch information
Showing
15 changed files
with
190 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
* text=auto | ||
*.js linguist-vendored | ||
*.css linguist-vendored | ||
*.scss linguist-vendored | ||
|
||
phpunit.* export-ignore | ||
phpcs.* export-ignore | ||
tests export-ignore | ||
.* export-ignore | ||
/phpunit.* export-ignore | ||
/phpcs.* export-ignore | ||
/tests export-ignore | ||
/.* export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,33 @@ | ||
preset: recommended | ||
php: | ||
preset: recommended | ||
|
||
enabled: | ||
- dir_constant | ||
- ereg_to_preg | ||
- mb_str_functions | ||
- no_short_echo_tag | ||
- strict_comparison | ||
- phpdoc_link_to_see | ||
- no_php4_constructor | ||
- declare_strict_types | ||
- unalign_double_arrow | ||
- length_ordered_imports | ||
- modernize_types_casting | ||
- return_type_declaration | ||
- not_operator_with_successor_space | ||
enabled: | ||
- dir_constant | ||
- ereg_to_preg | ||
- mb_str_functions | ||
- no_short_echo_tag | ||
- strict_comparison | ||
- phpdoc_link_to_see | ||
- no_php4_constructor | ||
- declare_strict_types | ||
- unalign_double_arrow | ||
- length_ordered_imports | ||
- modernize_types_casting | ||
- return_type_declaration | ||
- not_operator_with_successor_space | ||
|
||
disabled: | ||
- align_double_arrow | ||
- alpha_ordered_imports | ||
disabled: | ||
- align_double_arrow | ||
- alpha_ordered_imports | ||
|
||
js: | ||
tab-width: 4 | ||
print-width: 120 | ||
|
||
ts: | ||
tab-width: 4 | ||
print-width: 120 | ||
|
||
css: | ||
tab-width: 4 | ||
print-width: 120 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rinvex\Addresses\Console\Commands; | ||
|
||
use Illuminate\Console\Command; | ||
|
||
class PublishCommand extends Command | ||
{ | ||
/** | ||
* The name and signature of the console command. | ||
* | ||
* @var string | ||
*/ | ||
protected $signature = 'rinvex:publish:addresses {--force : Overwrite any existing files.}'; | ||
|
||
/** | ||
* The console command description. | ||
* | ||
* @var string | ||
*/ | ||
protected $description = 'Publish Rinvex Addresses Resources.'; | ||
|
||
/** | ||
* Execute the console command. | ||
* | ||
* @return void | ||
*/ | ||
public function handle(): void | ||
{ | ||
$this->warn($this->description); | ||
$this->call('vendor:publish', ['--tag' => 'rinvex-addresses-config', '--force' => $this->option('force')]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rinvex\Addresses\Console\Commands; | ||
|
||
use Illuminate\Console\Command; | ||
|
||
class RollbackCommand extends Command | ||
{ | ||
/** | ||
* The name and signature of the console command. | ||
* | ||
* @var string | ||
*/ | ||
protected $signature = 'rinvex:rollback:addresses {--force : Force the operation to run when in production.}'; | ||
|
||
/** | ||
* The console command description. | ||
* | ||
* @var string | ||
*/ | ||
protected $description = 'Rollback Rinvex Addresses Tables.'; | ||
|
||
/** | ||
* Execute the console command. | ||
* | ||
* @return void | ||
*/ | ||
public function handle(): void | ||
{ | ||
$this->warn($this->description); | ||
$this->call('migrate:reset', ['--path' => 'vendor/rinvex/addresses/database/migrations', '--force' => $this->option('force')]); | ||
} | ||
} |
Oops, something went wrong.