Skip to content

Commit

Permalink
Merge branch 'release/0.1.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
eliashaeussler committed Oct 2, 2023
2 parents b6e0858 + 8712bf5 commit c111ca1
Show file tree
Hide file tree
Showing 12 changed files with 57 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

$config
->setRules([
'@PSR2' => true,
'@PER-CS' => true,
'@Symfony' => true,
'global_namespace_import' => [
'import_classes' => true,
Expand Down
8 changes: 8 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ composer lint
composer lint:composer
composer lint:editorconfig
composer lint:php

# Fix all CGL issues
ddev composer fix

# Fix specific CGL issues
composer fix:composer
composer fix:editorconfig
composer fix:php
```

## Run static code analysis
Expand Down
17 changes: 12 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"require-dev": {
"armin/editorconfig-cli": "^1.5",
"ergebnis/composer-normalize": "^2.30",
"friendsofphp/php-cs-fixer": "^3.14",
"friendsofphp/php-cs-fixer": "^3.29",
"phpstan/extension-installer": "^1.2",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-phpunit": "^1.3",
Expand Down Expand Up @@ -51,15 +51,22 @@
"sort-packages": true
},
"scripts": {
"fix": [
"@fix:composer",
"@fix:editorconfig",
"@fix:php"
],
"fix:composer": "@composer normalize",
"fix:editorconfig": "@lint:editorconfig --fix",
"fix:php": "php-cs-fixer fix",
"lint": [
"@lint:composer",
"@lint:editorconfig:fix",
"@lint:editorconfig",
"@lint:php"
],
"lint:composer": "@composer normalize",
"lint:composer": "@fix:composer --dry-run",
"lint:editorconfig": "ec",
"lint:editorconfig:fix": "@lint:editorconfig --fix",
"lint:php": "php-cs-fixer fix",
"lint:php": "@fix:php --dry-run",
"migration": [
"@migration:rector"
],
Expand Down
50 changes: 27 additions & 23 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified docs/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
"extends": [
"local>CPS-IT/renovate-config",
"local>CPS-IT/renovate-config:git-flow"
],
"assignees": [
"eliashaeussler"
]
}
3 changes: 1 addition & 2 deletions src/Diff/DiffObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ public function __construct(
private readonly ?string $originalPath,
private readonly ?string $destinationPath,
private readonly array $chunks,
) {
}
) {}

public function getMode(): DiffMode
{
Expand Down
3 changes: 1 addition & 2 deletions src/Diff/DiffResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ public function __construct(
private readonly array $diffObjects,
private readonly string $patch,
private readonly Outcome $outcome,
) {
}
) {}

/**
* @return list<DiffObject>
Expand Down
3 changes: 1 addition & 2 deletions src/Diff/Outcome.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ final class Outcome
private function __construct(
private readonly bool $successful,
private readonly ?string $message = null,
) {
}
) {}

public static function successful(): self
{
Expand Down
4 changes: 1 addition & 3 deletions src/Exception/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@
* @author Elias Häußler <e.haeussler@familie-redlich.de>
* @license GPL-3.0-or-later
*/
abstract class Exception extends \Exception
{
}
abstract class Exception extends \Exception {}
3 changes: 1 addition & 2 deletions src/Migrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ final class Migrator
public function __construct(
private readonly Diff\Differ\Differ $differ = new Diff\Differ\GitDiffer(),
private bool $performMigrations = true,
) {
}
) {}

/**
* @throws Exception\PatchFailureException
Expand Down
3 changes: 1 addition & 2 deletions src/Resource/Collector/ArrayCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ final class ArrayCollector implements CollectorInterface
*/
public function __construct(
private readonly array $collection,
) {
}
) {}

public function collect(): array
{
Expand Down

0 comments on commit c111ca1

Please sign in to comment.