Skip to content

Commit

Permalink
Atualiza biblioteca PHP-CS-Fixer e Semver
Browse files Browse the repository at this point in the history
  • Loading branch information
edersoares committed Oct 5, 2021
1 parent 377e5ae commit bb15ada
Show file tree
Hide file tree
Showing 5 changed files with 482 additions and 474 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ieducar-*.tar.gz
.env
.env.host
.env.testing
.php_cs.cache
.php-cs-fixer.cache
docker-compose.override.yml

/node_modules
Expand Down
24 changes: 24 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

$finder = PhpCsFixer\Finder::create()
->in('app');

$config = new PhpCsFixer\Config();

return $config->setRules([
'@PSR12' => true,
'phpdoc_align' => [
'align' => 'vertical'
],
'single_quote' => [
'strings_containing_single_quote_chars' => true
],
'phpdoc_separation' => true,
'blank_line_before_statement' => true,
'array_syntax' => ['syntax' => 'short'],
'no_extra_blank_lines' => true,
'no_unused_imports' => true,
'ordered_imports' => [
'sort_algorithm' => 'alpha'
]
])->setFinder($finder);
38 changes: 0 additions & 38 deletions .php_cs

This file was deleted.

6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"ext-pdo": "*",
"ext-pgsql": "*",
"aws/aws-sdk-php-laravel": "^3.6",
"composer/semver": "^1.7",
"composer/semver": "^3.2",
"cossou/jasperphp": "^2.8",
"dex/composer-plug-and-play": "~0.3",
"doctrine/dbal": "^2.13",
Expand Down Expand Up @@ -47,7 +47,7 @@
"facade/ignition": "^2.11",
"fakerphp/faker": "^1.15",
"filp/whoops": "^2.14",
"friendsofphp/php-cs-fixer": "^2.19",
"friendsofphp/php-cs-fixer": "^3.2",
"laravel/sail": "^0.0.5",
"laravel/telescope": "^4.6",
"mockery/mockery": "^1.4.3",
Expand Down Expand Up @@ -125,7 +125,7 @@
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
]
]
},
"config": {
"preferred-install": "dist",
Expand Down
Loading

0 comments on commit bb15ada

Please sign in to comment.