Skip to content

Commit 7db3137

Browse files
committed
csfixer run
1 parent 782cb27 commit 7db3137

26 files changed

+102
-175
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"laravel/framework": "^11.0",
1818
"mockery/mockery": "^1.6.10",
1919
"phpunit/phpunit": "^10.5.35|^11.3.6",
20-
"orchestra/testbench": "^9.0"
20+
"orchestra/testbench": "^9.0",
21+
"laravel/pint": "^1.20"
2122
},
2223
"autoload": {
2324
"psr-4": {

src/AtomicDeploymentsServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function register()
2424
$this->app->bind(DeploymentInterface::class, config('atomic-deployments.deployment-class'));
2525

2626
$this->app->bind(AtomicDeploymentService::class, function ($app, $params) {
27-
if (empty($params) || (count($params) && !is_a($params[0], DeploymentInterface::class))) {
27+
if (empty($params) || (count($params) && ! is_a($params[0], DeploymentInterface::class))) {
2828
array_unshift($params, $app->make(DeploymentInterface::class));
2929
}
3030

src/Commands/DeployCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function handle()
3030

3131
$deploymentModel = AtomicDeployment::successful()->where('commit_hash', $hash)->first();
3232

33-
if (!$deploymentModel || !$deploymentModel->hasDeployment) {
33+
if (! $deploymentModel || ! $deploymentModel->hasDeployment) {
3434
Output::warn("Build not found for hash: {$hash}");
3535
} else {
3636
$atomicDeployment = AtomicDeploymentService::create(

src/Commands/ListCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function handle()
3131
return $deployment;
3232
});
3333

34-
if (!$deployments->count()) {
34+
if (! $deployments->count()) {
3535
ConsoleOutput::info('No deployments found');
3636

3737
return;

src/Events/DeploymentFailed.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ class DeploymentFailed implements ShouldQueue
1414
use SerializesModels;
1515

1616
public AtomicDeploymentService $deploymentService;
17+
1718
public ?AtomicDeployment $deployment = null;
1819

1920
/**
2021
* DeploymentSuccessful constructor.
21-
*
22-
* @param AtomicDeploymentService $deploymentService
23-
* @param AtomicDeployment|null $deployment
2422
*/
25-
public function __construct(AtomicDeploymentService $deploymentService, AtomicDeployment $deployment = null)
23+
public function __construct(AtomicDeploymentService $deploymentService, ?AtomicDeployment $deployment = null)
2624
{
2725
$this->deploymentService = $deploymentService;
2826
$this->deployment = $deployment;

src/Events/DeploymentSuccessful.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ class DeploymentSuccessful implements ShouldQueue
1414
use SerializesModels;
1515

1616
public AtomicDeploymentService $deploymentService;
17+
1718
public ?AtomicDeployment $deployment = null;
1819

1920
/**
2021
* DeploymentSuccessful constructor.
21-
*
22-
* @param AtomicDeploymentService $deploymentService
23-
* @param AtomicDeployment|null $deployment
2422
*/
25-
public function __construct(AtomicDeploymentService $deploymentService, AtomicDeployment $deployment = null)
23+
public function __construct(AtomicDeploymentService $deploymentService, ?AtomicDeployment $deployment = null)
2624
{
2725
$this->deploymentService = $deploymentService;
2826
$this->deployment = $deployment;

src/Exceptions/AreYouInsaneException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class AreYouInsaneException extends Exception
99
{
10-
public function __construct($message = '', $code = 0, Throwable $previous = null)
10+
public function __construct($message = '', $code = 0, ?Throwable $previous = null)
1111
{
1212
parent::__construct("(╯°□°)╯︵ ┻━┻: {$message}", $code, $previous);
1313
}

src/Exceptions/ExecuteFailedException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class ExecuteFailedException extends Exception
99
{
10-
public function __construct($message = '', $code = 0, Throwable $previous = null)
10+
public function __construct($message = '', $code = 0, ?Throwable $previous = null)
1111
{
1212
parent::__construct("exec failed: {$message}", $code, $previous);
1313
}

src/Exceptions/InvalidPathException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class InvalidPathException extends Exception
99
{
10-
public function __construct($message = '', $code = 0, Throwable $previous = null)
10+
public function __construct($message = '', $code = 0, ?Throwable $previous = null)
1111
{
1212
parent::__construct("Invalid Path: {$message}", $code, $previous);
1313
}

src/Helpers/ConsoleOutput.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,14 @@ class ConsoleOutput
88
{
99
public static ?Command $runningCommand = null;
1010

11-
/**
12-
* @param Command $runningCommand
13-
*/
1411
public function setOutput(Command $runningCommand)
1512
{
1613
static::$runningCommand = $runningCommand;
1714
}
1815

19-
/**
20-
* @param string $method
21-
* @param $arguments
22-
*/
2316
public static function __callStatic(string $method, $arguments)
2417
{
25-
if (!static::$runningCommand) {
18+
if (! static::$runningCommand) {
2619
return;
2720
}
2821

0 commit comments

Comments
 (0)