-
Notifications
You must be signed in to change notification settings - Fork 0
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 #21 from wedevelopnl/cleanup
Cleanup + phpstan + rector + php 8.1 requirement
- Loading branch information
Showing
30 changed files
with
401 additions
and
221 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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Call to method delete\\(\\) on an unknown class WeDevelop\\\\Akeneo\\\\Models\\\\ProductAssociation\\.ProductModel\\.$#" | ||
count: 1 | ||
path: src/Imports/AkeneoImport.php | ||
|
||
- | ||
message: "#^Access to property \\$Type on an unknown class WeDevelop\\\\Akeneo\\\\Models\\\\ProductAssociation\\.Product\\.$#" | ||
count: 2 | ||
path: src/Models/Product.php | ||
|
||
- | ||
message: "#^Call to method RelatedProduct\\(\\) on an unknown class WeDevelop\\\\Akeneo\\\\Models\\\\ProductAssociation\\.Product\\.$#" | ||
count: 3 | ||
path: src/Models/Product.php | ||
|
||
- | ||
message: "#^Using nullsafe method call on non\\-nullable type WeDevelop\\\\Akeneo\\\\Models\\\\ProductMediaFile\\. Use \\-\\> instead\\.$#" | ||
count: 1 | ||
path: src/Models/ProductAttributeValue.php | ||
|
||
- | ||
message: "#^Method WeDevelop\\\\Akeneo\\\\Service\\\\AkeneoApi\\:\\:refreshToken\\(\\) is unused\\.$#" | ||
count: 1 | ||
path: src/Service/AkeneoApi.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
parameters: | ||
level: 5 | ||
bootstrapFiles: | ||
- vendor/syntro/silverstripe-phpstan/bootstrap.php | ||
scanDirectories: | ||
- src | ||
paths: | ||
- src | ||
|
||
includes: | ||
- vendor/syntro/silverstripe-phpstan/phpstan.neon | ||
- phpstan-baseline.neon |
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,24 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Netwerkstatt\SilverstripeRector\Set\SilverstripeSetList; | ||
use Rector\Config\RectorConfig; | ||
use Rector\Set\ValueObject\LevelSetList; | ||
use Rector\Set\ValueObject\SetList; | ||
|
||
return static function (RectorConfig $rectorConfig): void { | ||
$rectorConfig->paths([ | ||
__DIR__ . '/src' | ||
]); | ||
|
||
// define sets of rules | ||
$rectorConfig->sets([ | ||
LevelSetList::UP_TO_PHP_81, | ||
SetList::CODE_QUALITY, | ||
SetList:: CODING_STYLE, | ||
SilverstripeSetList::CODE_STYLE, | ||
]); | ||
|
||
//$rectorConfig->phpstanConfig(__DIR__ . '/phpstan.neon'); | ||
}; |
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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace WeDevelop\Akeneo\Enums; | ||
|
||
enum ProductAttributeType: string | ||
{ | ||
case BOOLEAN = 'pim_catalog_boolean'; | ||
case DATE = 'pim_catalog_date'; | ||
case FILE = 'pim_catalog_file'; | ||
case IMAGE = 'pim_catalog_image'; | ||
case METRIC = 'pim_catalog_metric'; | ||
case MULTISELECT = 'pim_catalog_multiselect'; | ||
case PRICE_COLLECTION = 'pim_catalog_price_collection'; | ||
case SIMPLESELECT = 'pim_catalog_simpleselect'; | ||
case TEXT = 'pim_catalog_text'; | ||
case TEXTAREA = 'pim_catalog_textarea'; | ||
} | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace WeDevelop\Akeneo\Enums; | ||
|
||
enum ProductAttributeType: string | ||
{ | ||
case BOOLEAN = 'pim_catalog_boolean'; | ||
case DATE = 'pim_catalog_date'; | ||
case FILE = 'pim_catalog_file'; | ||
case IMAGE = 'pim_catalog_image'; | ||
case METRIC = 'pim_catalog_metric'; | ||
case MULTISELECT = 'pim_catalog_multiselect'; | ||
case PRICE_COLLECTION = 'pim_catalog_price_collection'; | ||
case SIMPLESELECT = 'pim_catalog_simpleselect'; | ||
case TEXT = 'pim_catalog_text'; | ||
case TEXTAREA = 'pim_catalog_textarea'; | ||
} |
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
Oops, something went wrong.