mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-23 16:13:50 +00:00
[export][rector] rector rules to add get form default data on export, aggregator, direct export
This commit is contained in:
@@ -11,6 +11,9 @@ declare(strict_types=1);
|
||||
|
||||
namespace Utils\Rector\Rector;
|
||||
|
||||
use Chill\MainBundle\Export\AggregatorInterface;
|
||||
use Chill\MainBundle\Export\DirectExportInterface;
|
||||
use Chill\MainBundle\Export\ExportInterface;
|
||||
use Chill\MainBundle\Export\FilterInterface;
|
||||
use PhpParser\Node;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
@@ -43,7 +46,12 @@ class ChillBundleAddFormDefaultDataOnExportFilterAggregatorRector extends Abstra
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!$this->classAnalyzer->hasImplements($node, FilterInterface::class)) {
|
||||
if (
|
||||
!$this->classAnalyzer->hasImplements($node, FilterInterface::class)
|
||||
&& !$this->classAnalyzer->hasImplements($node, AggregatorInterface::class)
|
||||
&& !$this->classAnalyzer->hasImplements($node, ExportInterface::class)
|
||||
&& !$this->classAnalyzer->hasImplements($node, DirectExportInterface::class)
|
||||
) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user