Skip to content

Commit bdb3258

Browse files
A strict typification has been added
1 parent fc6799c commit bdb3258

File tree

52 files changed

+104
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+104
-0
lines changed

config/deploy-operations.php

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

3+
declare(strict_types=1);
4+
35
return [
46
/*
57
|--------------------------------------------------------------------------

src/Console/Install.php

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

3+
declare(strict_types=1);
4+
35
namespace DragonCode\LaravelDeployOperations\Console;
46

57
use DragonCode\LaravelDeployOperations\Constants\Names;

src/Console/Make.php

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

3+
declare(strict_types=1);
4+
35
namespace DragonCode\LaravelDeployOperations\Console;
46

57
use DragonCode\LaravelDeployOperations\Constants\Names;

src/Console/Operations.php

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

3+
declare(strict_types=1);
4+
35
namespace DragonCode\LaravelDeployOperations\Console;
46

57
use DragonCode\LaravelDeployOperations\Constants\Names;

src/Console/Refresh.php

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

3+
declare(strict_types=1);
4+
35
namespace DragonCode\LaravelDeployOperations\Console;
46

57
use DragonCode\LaravelDeployOperations\Constants\Names;

src/Console/Reset.php

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

3+
declare(strict_types=1);
4+
35
namespace DragonCode\LaravelDeployOperations\Console;
46

57
use DragonCode\LaravelDeployOperations\Constants\Names;

src/Console/Rollback.php

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

3+
declare(strict_types=1);
4+
35
namespace DragonCode\LaravelDeployOperations\Console;
46

57
use DragonCode\LaravelDeployOperations\Constants\Names;

src/Console/Status.php

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

3+
declare(strict_types=1);
4+
35
namespace DragonCode\LaravelDeployOperations\Console;
46

57
use DragonCode\LaravelDeployOperations\Constants\Names;

src/Constants/Names.php

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

3+
declare(strict_types=1);
4+
35
namespace DragonCode\LaravelDeployOperations\Constants;
46

57
class Names

src/Operation.php

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

3+
declare(strict_types=1);
4+
35
namespace DragonCode\LaravelDeployOperations;
46

57
use DragonCode\LaravelDeployOperations\Concerns\Artisan;

tests/Commands/InstallTest.php

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

3+
declare(strict_types=1);
4+
35
namespace Tests\Commands;
46

57
use DragonCode\LaravelDeployOperations\Constants\Names;

tests/Commands/MakeTest.php

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

3+
declare(strict_types=1);
4+
35
namespace Tests\Commands;
46

57
use DragonCode\LaravelDeployOperations\Constants\Names;

tests/Commands/OperationsTest.php

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

3+
declare(strict_types=1);
4+
35
namespace Tests\Commands;
46

57
use DragonCode\LaravelDeployOperations\Constants\Names;

tests/Commands/RefreshTest.php

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

3+
declare(strict_types=1);
4+
35
namespace Tests\Commands;
46

57
use DragonCode\LaravelDeployOperations\Constants\Names;

tests/Commands/ResetTest.php

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

3+
declare(strict_types=1);
4+
35
namespace Tests\Commands;
46

57
use DragonCode\LaravelDeployOperations\Constants\Names;

tests/Commands/RollbackTest.php

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

3+
declare(strict_types=1);
4+
35
namespace Tests\Commands;
46

57
use DragonCode\LaravelDeployOperations\Constants\Names;

tests/Commands/StatusTest.php

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

3+
declare(strict_types=1);
4+
35
namespace Tests\Commands;
46

57
use DragonCode\LaravelDeployOperations\Constants\Names;

tests/Concerns/AssertDatabase.php

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

3+
declare(strict_types=1);
4+
35
namespace Tests\Concerns;
46

57
use Illuminate\Support\Facades\DB;

tests/Concerns/Database.php

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

3+
declare(strict_types=1);
4+
35
namespace Tests\Concerns;
46

57
trait Database

tests/Concerns/Files.php

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

3+
declare(strict_types=1);
4+
35
namespace Tests\Concerns;
46

57
use DragonCode\Support\Facades\Filesystem\Directory;

tests/TestCase.php

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

3+
declare(strict_types=1);
4+
35
namespace Tests;
46

57
use DragonCode\LaravelDeployOperations\Repositories\OperationsRepository;

tests/fixtures/app/async/2021_04_06_212742_every_time.php

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

3+
declare(strict_types=1);
4+
35
use DragonCode\LaravelDeployOperations\Operation;
46
use Illuminate\Database\Query\Builder;
57
use Illuminate\Support\Facades\DB;

tests/fixtures/app/async/2023_04_06_212637_foo_bar.php

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

3+
declare(strict_types=1);
4+
35
use DragonCode\LaravelDeployOperations\Operation;
46
use Illuminate\Database\Query\Builder;
57
use Illuminate\Support\Facades\DB;

tests/fixtures/app/di/2022_10_11_234251_invoke.php

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

3+
declare(strict_types=1);
4+
35
use DragonCode\LaravelDeployOperations\Operation;
46
use Illuminate\Database\Query\Builder;
57
use Illuminate\Support\Facades\DB;

tests/fixtures/app/di/2022_10_11_234251_invoke_down.php

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

3+
declare(strict_types=1);
4+
35
use DragonCode\LaravelDeployOperations\Operation;
46
use Illuminate\Database\Query\Builder;
57
use Illuminate\Support\Facades\DB;

tests/fixtures/app/di/2022_10_11_234312_up_down.php

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

3+
declare(strict_types=1);
4+
35
use DragonCode\LaravelDeployOperations\Operation;
46
use Illuminate\Database\Query\Builder;
57
use Illuminate\Support\Facades\DB;

tests/fixtures/app/operations/2020_12_07_153105_foo_bar.php

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

3+
declare(strict_types=1);
4+
35
use DragonCode\LaravelDeployOperations\Operation;
46
use Illuminate\Database\Query\Builder;
57
use Illuminate\Support\Facades\DB;

tests/fixtures/app/operations/2021_01_02_020947_every_time.php

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

3+
declare(strict_types=1);
4+
35
use DragonCode\LaravelDeployOperations\Operation;
46
use Illuminate\Database\Query\Builder;
57
use Illuminate\Support\Facades\DB;

tests/fixtures/app/operations/2021_05_24_120003_run_on_all.php

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

3+
declare(strict_types=1);
4+
35
use DragonCode\LaravelDeployOperations\Operation;
46
use Illuminate\Database\Query\Builder;
57
use Illuminate\Support\Facades\DB;

tests/fixtures/app/operations/2021_05_24_120003_run_on_many_environments.php

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

3+
declare(strict_types=1);
4+
35
use DragonCode\LaravelDeployOperations\Operation;
46
use Illuminate\Database\Query\Builder;
57
use Illuminate\Support\Facades\DB;

tests/fixtures/app/operations/2021_05_24_120003_run_on_production.php

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

3+
declare(strict_types=1);
4+
35
use DragonCode\LaravelDeployOperations\Operation;
46
use Illuminate\Database\Query\Builder;
57
use Illuminate\Support\Facades\DB;

tests/fixtures/app/operations/2021_05_24_120003_run_on_testing.php

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

3+
declare(strict_types=1);
4+
35
use DragonCode\LaravelDeployOperations\Operation;
46
use Illuminate\Database\Query\Builder;
57
use Illuminate\Support\Facades\DB;

tests/fixtures/app/operations/2021_06_07_132849_run_except_production.php

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

3+
declare(strict_types=1);
4+
35
use DragonCode\LaravelDeployOperations\Operation;
46
use Illuminate\Database\Query\Builder;
57
use Illuminate\Support\Facades\DB;

tests/fixtures/app/operations/2021_06_07_132917_run_except_testing.php

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

3+
declare(strict_types=1);
4+
35
use DragonCode\LaravelDeployOperations\Operation;
46
use Illuminate\Database\Query\Builder;
57
use Illuminate\Support\Facades\DB;

tests/fixtures/app/operations/2021_06_07_134045_run_except_many_environments.php

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

3+
declare(strict_types=1);
4+
35
use DragonCode\LaravelDeployOperations\Operation;
46
use Illuminate\Database\Query\Builder;
57
use Illuminate\Support\Facades\DB;

tests/fixtures/app/operations/2021_10_26_143247_run_allow.php

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

3+
declare(strict_types=1);
4+
35
use DragonCode\LaravelDeployOperations\Operation;
46
use Illuminate\Database\Query\Builder;
57
use Illuminate\Support\Facades\DB;

tests/fixtures/app/operations/2021_10_26_143304_run_disallow.php

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

3+
declare(strict_types=1);
4+
35
use DragonCode\LaravelDeployOperations\Operation;
46
use Illuminate\Database\Query\Builder;
57
use Illuminate\Support\Facades\DB;

tests/fixtures/app/operations/2021_12_23_165047_run_success.php

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

3+
declare(strict_types=1);
4+
35
use DragonCode\LaravelDeployOperations\Operation;
46
use Illuminate\Database\Query\Builder;
57
use Illuminate\Support\Facades\DB;

tests/fixtures/app/operations/2021_12_23_184029_run_failed.php

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

3+
declare(strict_types=1);
4+
35
use DragonCode\LaravelDeployOperations\Operation;
46
use Illuminate\Database\Query\Builder;
57
use Illuminate\Support\Facades\DB;

tests/fixtures/app/operations/2022_08_17_135147_test_before_enabled.php

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

3+
declare(strict_types=1);
4+
35
use DragonCode\LaravelDeployOperations\Operation;
46
use Illuminate\Database\Query\Builder;
57
use Illuminate\Support\Facades\DB;

tests/fixtures/app/operations/2022_08_17_135153_test_before_disabled.php

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

3+
declare(strict_types=1);
4+
35
use DragonCode\LaravelDeployOperations\Operation;
46
use Illuminate\Database\Query\Builder;
57
use Illuminate\Support\Facades\DB;

tests/fixtures/app/operations/sub_path/2021_12_15_205804_baz.php

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

3+
declare(strict_types=1);
4+
35
use DragonCode\LaravelDeployOperations\Operation;
46
use Illuminate\Database\Query\Builder;
57
use Illuminate\Support\Facades\DB;

tests/fixtures/app/operations/sub_path/2022_10_27_230732_foo.php

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

3+
declare(strict_types=1);
4+
35
use DragonCode\LaravelDeployOperations\Operation;
46
use Illuminate\Database\Query\Builder;
57
use Illuminate\Support\Facades\DB;

tests/fixtures/app/operations_failed/2021_12_23_165048_run_success_on_failed.php

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

3+
declare(strict_types=1);
4+
35
use DragonCode\LaravelDeployOperations\Operation;
46
use Illuminate\Database\Query\Builder;
57
use Illuminate\Support\Facades\DB;

tests/fixtures/app/operations_failed/2021_12_23_184029_run_failed_failure.php

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

3+
declare(strict_types=1);
4+
35
use DragonCode\LaravelDeployOperations\Operation;
46
use Illuminate\Database\Query\Builder;
57
use Illuminate\Support\Facades\DB;

tests/fixtures/migrations/2020_12_07_164624_create_test_table.php

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

3+
declare(strict_types=1);
4+
35
use Illuminate\Database\Migrations\Migration;
46
use Illuminate\Database\Schema\Blueprint;
57
use Illuminate\Support\Facades\Schema;

tests/fixtures/migrations/2021_01_02_022431_create_every_time_table.php

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

3+
declare(strict_types=1);
4+
35
use Illuminate\Database\Migrations\Migration;
46
use Illuminate\Database\Schema\Blueprint;
57
use Illuminate\Support\Facades\Schema;

tests/fixtures/migrations/2021_02_15_124419_create_transactions_table.php

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

3+
declare(strict_types=1);
4+
35
use Illuminate\Database\Migrations\Migration;
46
use Illuminate\Database\Schema\Blueprint;
57
use Illuminate\Support\Facades\Schema;

tests/fixtures/migrations/2021_05_24_122027_create_environment_table.php

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

3+
declare(strict_types=1);
4+
35
use Illuminate\Database\Migrations\Migration;
46
use Illuminate\Database\Schema\Blueprint;
57
use Illuminate\Support\Facades\Schema;

tests/fixtures/migrations/2021_12_23_165218_create_success_table.php

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

3+
declare(strict_types=1);
4+
35
use Illuminate\Database\Migrations\Migration;
46
use Illuminate\Database\Schema\Blueprint;
57
use Illuminate\Support\Facades\Schema;

0 commit comments

Comments
 (0)