Skip to content

Commit

Permalink
Update php-cs-fixer to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Art4 committed Sep 22, 2021
1 parent 2ed1bbf commit 4e80ecb
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.php_cs.cache
.php-cs-fixer.cache
.phpunit.result.cache
composer.lock
composer.phar
Expand Down
4 changes: 2 additions & 2 deletions .php_cs → .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
])
;

return PhpCsFixer\Config::create()
->setRules([
$config = new PhpCsFixer\Config();
return $config->setRules([
'@Symfony' => true,

'array_syntax' => ['syntax' => 'short'],
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"psr/http-factory": "^1.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.0",
"friendsofphp/php-cs-fixer": "^3.0",
"phpunit/phpunit": "^9.5",
"guzzlehttp/psr7": "^2.0",
"php-mock/php-mock-phpunit": "^2.6"
Expand Down
10 changes: 5 additions & 5 deletions src/Redmine/Api/Issue.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
*/
class Issue extends AbstractApi
{
const PRIO_LOW = 1;
const PRIO_NORMAL = 2;
const PRIO_HIGH = 3;
const PRIO_URGENT = 4;
const PRIO_IMMEDIATE = 5;
public const PRIO_LOW = 1;
public const PRIO_NORMAL = 2;
public const PRIO_HIGH = 3;
public const PRIO_URGENT = 4;
public const PRIO_IMMEDIATE = 5;

/**
* List issues.
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/Client/NativeCurlClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ class NativeCurlClientTest extends TestCase
{
use PHPMock;

const __NAMESPACE__ = 'Redmine\Client';
public const __NAMESPACE__ = 'Redmine\Client';

const DEFAULT_CURL_OPTIONS = [
public const DEFAULT_CURL_OPTIONS = [
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_PORT => 80,
CURLOPT_URL => 'http://test.local/path',
Expand Down

0 comments on commit 4e80ecb

Please sign in to comment.