Skip to content

Commit

Permalink
IBX-8121: Fixed code style issues for 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveb-p authored May 7, 2024
1 parent e060eb4 commit 1739688
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 3 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on:
push:
branches:
- main
- '[0-9]+.[0-9]+'
pull_request: ~

jobs:
cs-fix:
name: Run code style check
runs-on: "ubuntu-22.04"
strategy:
matrix:
php:
- '8.3'
steps:
- uses: actions/checkout@v4

- name: Setup PHP Action
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
extensions: 'pdo_sqlite, gd'
tools: cs2pr

- uses: ramsey/composer-install@v3
with:
dependency-versions: highest

- name: Run code style check
run: composer run-script check-cs -- --format=checkstyle | cs2pr
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
"symfony/process": "^5.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0",
"ibexa/code-style": "^1.0",
"ibexa/code-style": "~2.0.0",
"ibexa/doctrine-schema": "~5.0.x-dev"
},
"scripts": {
"check-cs": "@fix-cs --dry-run",
"fix-cs": "php-cs-fixer fix --config=.php-cs-fixer.php -v --show-progress=dots"
},
"extra": {
Expand All @@ -46,6 +46,7 @@
}
},
"config": {
"sort-packages": true
"sort-packages": true,
"allow-plugins": false
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Bundle\Cron\DependencyInjection\Compiler;

use Ibexa\Bundle\Cron\Registry\CronJobsRegistry;
Expand Down
1 change: 1 addition & 0 deletions src/bundle/DependencyInjection/IbexaCronExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Bundle\Cron\DependencyInjection;

use Symfony\Component\Config\FileLocator;
Expand Down
1 change: 1 addition & 0 deletions src/bundle/IbexaCronBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Bundle\Cron;

use Ibexa\Bundle\Cron\DependencyInjection\Compiler\CronJobCompilerPass;
Expand Down
1 change: 1 addition & 0 deletions src/bundle/Registry/CronJobsRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Bundle\Cron\Registry;

use Cron\Job\ShellJob;
Expand Down

0 comments on commit 1739688

Please sign in to comment.