Skip to content

Commit

Permalink
🚨 [EIC-881] Corrigindo erros php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoapaes committed Sep 10, 2024
1 parent 567f68f commit bef5bb3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
GITHUB_TOKEN=
PHP_VERSION=56|73|74|80
PHP_VERSION=56|73|74|80|81|82|83
DB_ENGINE=
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
test:
strategy:
matrix:
PHP: [56, 73, 74, 80, 81]
PHP: [56, 74, 80, 81, 82, 83]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Prepare code
env:
Expand Down
9 changes: 5 additions & 4 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

$rules = [
'@PSR2' => true,
'@PSR12' => true,
'array_syntax' => ['syntax' => 'short'],
'multiline_whitespace_before_semicolons' => false,
'echo_tag_syntax' => false,
Expand All @@ -22,10 +22,11 @@
'ternary_operator_spaces' => true,
'trailing_comma_in_multiline' => true,
'trim_array_spaces' => true,
'braces' => [
'allow_single_line_closure' => true,
'position_after_functions_and_oop_constructs' => 'same',
'curly_braces_position' => [
'classes_opening_brace' => 'same_line',
'functions_opening_brace' => 'same_line',
],
'visibility_required' => ['elements' => ['property', 'method']],
];

$excludes = [
Expand Down
4 changes: 2 additions & 2 deletions src/Phinx.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ private function phinx($seed) {
$app->setAutoExit(false);

$output = new BufferedOutput();

$this->run($app, $output, 'migrate', $config);

if($seed) {
$this->run($app, $output, 'seed:run', $config);
}
}

private function run(PhinxApplication $phinx, BufferedOutput $output, $commandName, $config, $environment='production') {
private function run(PhinxApplication $phinx, BufferedOutput $output, $commandName, $config, $environment = 'production') {
$arguments = [
'command' => $commandName,
'--environment' => $environment,
Expand Down

0 comments on commit bef5bb3

Please sign in to comment.