Skip to content

Commit

Permalink
Apply php-cs-fixer/rector rules
Browse files Browse the repository at this point in the history
  • Loading branch information
magicsunday committed Mar 18, 2024
1 parent 3dc5715 commit 13419cc
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 632 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,3 @@ jobs:
if: ${{ always() && steps.install.conclusion == 'success' }}
run: |
composer ci:test:php:rector
- id: tests_unit
name: Unit Tests
if: ${{ always() && steps.install.conclusion == 'success' }}
run: |
composer ci:test:php:unit
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@composer require magicsunday/webtrees-module-base:^1.0",
"### Copy base module to vendor directory",
"mkdir -p webtrees-fan-chart/vendor/magicsunday",
"cp -r vendor/magicsunday/webtrees-module-base webtrees-fan-chart/vendor/magicsunday/webtrees-module-base",
"cp -r .build/vendor/magicsunday/webtrees-module-base webtrees-fan-chart/vendor/magicsunday/webtrees-module-base",
"### Remove all not required files from archive",
"rm -rf webtrees-fan-chart/.github",
"rm -rf webtrees-fan-chart/resources/js/modules",
Expand Down Expand Up @@ -94,7 +94,7 @@
"ci:test": [
"@ci:test:php:lint",
"@ci:test:php:phpstan",
"@ci:test:php:rector",
"@ci:test:php:rector"
],
"module:check": [
"@ci:test"
Expand Down
2 changes: 2 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
parameters:
ignoreErrors: []
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
includes:
- %currentWorkingDirectory%/.build/vendor/phpstan/phpstan-strict-rules/rules.neon
- %currentWorkingDirectory%/.build/vendor/phpstan/phpstan-deprecation-rules/rules.neon
# - %currentWorkingDirectory%/phpstan-baseline.neon
- %currentWorkingDirectory%/phpstan-baseline.neon

parameters:
# You can currently choose from 10 levels (0 is the loosest and 9 is the strictest).
Expand Down
6 changes: 3 additions & 3 deletions src/Facade/DataFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
use MagicSunday\Webtrees\FanChart\Configuration;
use MagicSunday\Webtrees\FanChart\Model\Node;
use MagicSunday\Webtrees\FanChart\Model\NodeData;
use MagicSunday\Webtrees\FanChart\Processor\DateProcessor;
use MagicSunday\Webtrees\FanChart\Processor\ImageProcessor;
use MagicSunday\Webtrees\FanChart\Processor\NameProcessor;
use MagicSunday\Webtrees\ModuleBase\Processor\DateProcessor;
use MagicSunday\Webtrees\ModuleBase\Processor\ImageProcessor;
use MagicSunday\Webtrees\ModuleBase\Processor\NameProcessor;

/**
* Facade class to hide complex logic to generate the structure required to display the tree.
Expand Down
3 changes: 0 additions & 3 deletions src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@
use MagicSunday\Webtrees\FanChart\Facade\DataFacade;
use MagicSunday\Webtrees\FanChart\Traits\ModuleChartTrait;
use MagicSunday\Webtrees\FanChart\Traits\ModuleCustomTrait;
use MagicSunday\Webtrees\ModuleBase\Processor\DateProcessor;
use MagicSunday\Webtrees\ModuleBase\Processor\ImageProcessor;
use MagicSunday\Webtrees\ModuleBase\Processor\NameProcessor;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterface;
Expand Down
180 changes: 0 additions & 180 deletions src/Processor/DateProcessor.php

This file was deleted.

93 changes: 0 additions & 93 deletions src/Processor/ImageProcessor.php

This file was deleted.

0 comments on commit 13419cc

Please sign in to comment.