Skip to content

Commit

Permalink
Add php-cs-fixer.phar
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv committed Nov 26, 2024
1 parent a3a339d commit 44b3a55
Show file tree
Hide file tree
Showing 374 changed files with 13,613 additions and 13,200 deletions.
4 changes: 3 additions & 1 deletion .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
->in(__DIR__ . '/src')
->in(__DIR__ . '/recipe')
->in(__DIR__ . '/contrib')
->in(__DIR__ . '/tests');
->in(__DIR__ . '/tests')
->in(__DIR__ . '/vendor'); // Also fix vendor files as we have them under git control.

return (new PhpCsFixer\Config())
->setRules([
'@PER-CS' => true,
'nullable_type_declaration_for_default_null_value' => true,
])
->setFinder($finder);
1 change: 1 addition & 0 deletions contrib/bugsnag.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
## Configuration
Expand Down
1 change: 1 addition & 0 deletions contrib/cachetool.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
## Configuration
Expand Down
1 change: 1 addition & 0 deletions contrib/chatwork.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
# Chatwork Recipe
Expand Down
1 change: 1 addition & 0 deletions contrib/cimonitor.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
Monitor your deployments on [CIMonitor](https://github.com/CIMonitor/CIMonitor).
Expand Down
1 change: 1 addition & 0 deletions contrib/cloudflare.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
### Configuration
Expand Down
1 change: 1 addition & 0 deletions contrib/cpanel.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
### Description
This is a recipe that uses the [cPanel 2 API](https://documentation.cPanel.net/display/DD/Guide+to+cPanel+API+2).
Expand Down
1 change: 1 addition & 0 deletions contrib/crontab.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
Recipe for adding crontab jobs.
Expand Down
1 change: 1 addition & 0 deletions contrib/directadmin.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
### Configuration
- `directadmin` – array with configuration for DirectAdmin
Expand Down
1 change: 1 addition & 0 deletions contrib/discord.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
## Installing
Expand Down
1 change: 1 addition & 0 deletions contrib/grafana.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
## Configuration options
Expand Down
1 change: 1 addition & 0 deletions contrib/hangouts.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
Add hook on deploy:
Expand Down
1 change: 1 addition & 0 deletions contrib/hipchat.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
## Configuration
Expand Down
1 change: 1 addition & 0 deletions contrib/ispmanager.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
* This recipe for work with ISPManager Lite panel by API.
*/
Expand Down
1 change: 1 addition & 0 deletions contrib/mattermost.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
## Installing
Expand Down
1 change: 1 addition & 0 deletions contrib/ms-teams.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
## Installing
Expand Down
1 change: 1 addition & 0 deletions contrib/newrelic.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
## Configuration
Expand Down
1 change: 1 addition & 0 deletions contrib/npm.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
## Configuration
Expand Down
1 change: 1 addition & 0 deletions contrib/ntfy.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
## Installing
Expand Down
1 change: 1 addition & 0 deletions contrib/phinx.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
## Configuration options
Expand Down
1 change: 1 addition & 0 deletions contrib/php-fpm.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
:::caution
Expand Down
1 change: 1 addition & 0 deletions contrib/rabbit.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
### Installing
Expand Down
1 change: 1 addition & 0 deletions contrib/raygun.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
## Configuration
Expand Down
1 change: 1 addition & 0 deletions contrib/rocketchat.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
## Installing
Expand Down
1 change: 1 addition & 0 deletions contrib/rollbar.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
## Configuration
Expand Down
1 change: 1 addition & 0 deletions contrib/rsync.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
:::warning
This must not be confused with `/src/Utility/Rsync.php`, deployer's built-in rsync. Their configuration options are also very different, read carefully below.
Expand Down
1 change: 1 addition & 0 deletions contrib/sentry.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
### Configuration options
Expand Down
1 change: 1 addition & 0 deletions contrib/slack.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
## Installing
Expand Down
1 change: 1 addition & 0 deletions contrib/supervisord-monitor.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
### Description
This is a recipe that uses the [Supervisord server monitoring project](https://github.com/mlazarov/supervisord-monitor).
Expand Down
1 change: 1 addition & 0 deletions contrib/telegram.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
## Installing
1. Create telegram bot with [BotFather](https://t.me/BotFather) and grab the token provided
Expand Down
1 change: 1 addition & 0 deletions contrib/webpack_encore.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
## Configuration
Expand Down
1 change: 1 addition & 0 deletions contrib/workplace.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
This recipes works with Custom Integrations and Publishing Bots.
Expand Down
1 change: 1 addition & 0 deletions contrib/yammer.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
Add hook on deploy:
Expand Down
1 change: 1 addition & 0 deletions contrib/yarn.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
## Configuration
Expand Down
Binary file added php-cs-fixer.phar
Binary file not shown.
1 change: 1 addition & 0 deletions recipe/shopware.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* ## Usage
*
Expand Down
2 changes: 1 addition & 1 deletion src/Component/PharUpdate/Update.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function __construct(
string $sha1,
string $url,
Version $version,
string $key = null
?string $key = null,
) {
$this->name = $name;
$this->publicKey = $key;
Expand Down
2 changes: 1 addition & 1 deletion src/Component/PharUpdate/Version/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function __construct(
int $minor = 0,
int $patch = 0,
array $pre = [],
array $build = []
array $build = [],
) {
$this->build = $build;
$this->major = $major;
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/RunException.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function __construct(
string $command,
int $exitCode,
string $output,
string $errorOutput
string $errorOutput,
) {
$this->host = $host;
$this->command = $command;
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/TimeoutException.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class TimeoutException extends Exception
{
public function __construct(
string $command,
?float $timeout
?float $timeout,
) {
$message = sprintf('The command "%s" exceeded the timeout of %s seconds.', $command, $timeout);
parent::__construct($message, 1);
Expand Down
2 changes: 1 addition & 1 deletion src/Executor/Master.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function __construct(
InputInterface $input,
OutputInterface $output,
Server $server,
Messenger $messenger
Messenger $messenger,
) {
$this->input = $input;
$this->output = $output;
Expand Down
2 changes: 1 addition & 1 deletion src/Executor/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Server

public function __construct(
OutputInterface $output,
Deployer $deployer
Deployer $deployer,
) {
$this->output = $output;
$this->deployer = $deployer;
Expand Down
1 change: 1 addition & 0 deletions tests/joy/JoyTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
Expand Down
1 change: 1 addition & 0 deletions tests/legacy/AbstractTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
Expand Down
1 change: 1 addition & 0 deletions tests/legacy/CurrentPathTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
Expand Down
1 change: 1 addition & 0 deletions tests/legacy/DeployTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
Expand Down
1 change: 1 addition & 0 deletions tests/legacy/EnvTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
Expand Down
1 change: 1 addition & 0 deletions tests/legacy/NamedArgumentsTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
Expand Down
1 change: 1 addition & 0 deletions tests/legacy/OncePerNodeTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
Expand Down
1 change: 1 addition & 0 deletions tests/legacy/OnceTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
Expand Down
1 change: 1 addition & 0 deletions tests/legacy/ParallelTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
Expand Down
1 change: 1 addition & 0 deletions tests/legacy/SelectTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
Expand Down
1 change: 1 addition & 0 deletions tests/legacy/UpdateCodeTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
Expand Down
1 change: 1 addition & 0 deletions tests/legacy/YamlTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
Expand Down
1 change: 1 addition & 0 deletions tests/src/Collection/CollectionTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
Expand Down
1 change: 1 addition & 0 deletions tests/src/DeployerTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
Expand Down
1 change: 1 addition & 0 deletions tests/src/FunctionsTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
Expand Down
1 change: 1 addition & 0 deletions tests/src/Host/ConfigurationTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
Expand Down
1 change: 1 addition & 0 deletions tests/src/Host/HostTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
Expand Down
1 change: 1 addition & 0 deletions tests/src/Host/RangeTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
Expand Down
1 change: 1 addition & 0 deletions tests/src/Support/HelpersTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
Expand Down
1 change: 1 addition & 0 deletions tests/src/Support/ObjectProxyTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
Expand Down
1 change: 1 addition & 0 deletions tests/src/Task/ContextTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
Expand Down
Loading

0 comments on commit 44b3a55

Please sign in to comment.