-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from dimitriBouteille/develop
3.0.1
- Loading branch information
Showing
12 changed files
with
50 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ vendor/ | |
var/ | ||
.idea/ | ||
composer.lock | ||
.php-cs-fixer.cache | ||
.php-cs-fixer.cache | ||
web |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
/** | ||
* Copyright (c) 2023 Dimitri BOUTEILLE | ||
* Copyright (c) 2024 Dimitri BOUTEILLE (https://github.com/dimitriBouteille) | ||
* See LICENSE.txt for license details. | ||
* | ||
* Author: Dimitri BOUTEILLE <[email protected]> | ||
|
@@ -9,7 +9,8 @@ | |
$finder = \PhpCsFixer\Finder::create() | ||
->name('*.php') | ||
->in([ | ||
'src', | ||
__DIR__ . '/src', | ||
__DIR__ . '/tests', | ||
]) | ||
; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,6 @@ parameters: | |
level: 5 | ||
paths: | ||
- src | ||
- tests | ||
excludePaths: | ||
- src/Orm/Database.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
/** | ||
* Copyright (c) 2023 Dimitri BOUTEILLE (https://github.com/dimitriBouteille) | ||
* Copyright (c) 2024 Dimitri BOUTEILLE (https://github.com/dimitriBouteille) | ||
* See LICENSE.txt for license details. | ||
* | ||
* Author: Dimitri BOUTEILLE <[email protected]> | ||
|
@@ -10,14 +10,17 @@ | |
use Rector\Set\ValueObject\SetList; | ||
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromStrictConstructorRector; | ||
|
||
return static function (RectorConfig $rectorConfig): void { | ||
// register single rule | ||
$rectorConfig->rule(TypedPropertyFromStrictConstructorRector::class); | ||
|
||
// here we can define, what sets of rules will be applied | ||
// tip: use "SetList" class to autocomplete sets with your IDE | ||
$rectorConfig->sets([ | ||
SetList::CODE_QUALITY, | ||
return RectorConfig::configure() | ||
->withPaths([ | ||
__DIR__ . '/src', | ||
__DIR__ . '/tests', | ||
]) | ||
->withRules([ | ||
TypedPropertyFromStrictConstructorRector::class, | ||
]) | ||
->withPreparedSets( | ||
codeQuality: true, | ||
) | ||
->withSets([ | ||
SetList::PHP_81, | ||
]); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"config:base", | ||
":disableDependencyDashboard" | ||
], | ||
"minimumReleaseAge": "30 days", | ||
"labels": ["dependencies"], | ||
"prConcurrentLimit": 5, | ||
"baseBranches": ["develop"], | ||
"assignees": ["dimitriBouteille"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* Author: Dimitri BOUTEILLE <[email protected]> | ||
*/ | ||
|
||
namespace Dbout\WpOrm\Tests\Unit\Builders; | ||
namespace Dbout\WpOrm\Tests\Builders; | ||
|
||
use Dbout\WpOrm\Builders\PostBuilder; | ||
use Dbout\WpOrm\Exceptions\WpOrmException; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* Author: Dimitri BOUTEILLE <[email protected]> | ||
*/ | ||
|
||
namespace Dbout\WpOrm\Tests\Unit\Models; | ||
namespace Dbout\WpOrm\Tests\Models; | ||
|
||
use Dbout\WpOrm\Exceptions\CannotOverrideCustomTypeException; | ||
use Dbout\WpOrm\Models\Attachment; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* Author: Dimitri BOUTEILLE <[email protected]> | ||
*/ | ||
|
||
namespace Dbout\WpOrm\Tests\Unit\Scopes; | ||
namespace Dbout\WpOrm\Tests\Scopes; | ||
|
||
use Dbout\WpOrm\Builders\OptionBuilder; | ||
use Dbout\WpOrm\Builders\PostBuilder; | ||
|