░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
vps.doorgans.com
LOCATION:
/opt/cpanel/ea-wappspector/vendor/rector/rector/rules/Php70/NodeAnalyzer
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: Php4ConstructorClassMethodAnalyzer.php
<?php declare (strict_types=1); namespace Rector\Php70\NodeAnalyzer; use PhpParser\Node\Stmt\ClassMethod; use PHPStan\Analyser\Scope; use PHPStan\Reflection\ClassReflection; final class Php4ConstructorClassMethodAnalyzer { public function detect(ClassMethod $classMethod, Scope $scope) : bool { // catch only classes without namespace if ($scope->getNamespace() !== null) { return \false; } if ($classMethod->isAbstract()) { return \false; } if ($classMethod->isStatic()) { return \false; } $classReflection = $scope->getClassReflection(); if (!$classReflection instanceof ClassReflection) { return \false; } return !$classReflection->isAnonymous(); } }
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 BattleshipTernaryAnalyzer.php
PHP
4.4 KB
2024-11-08 13:59
EDIT
📄 Php4ConstructorClassMethodAnalyzer.php
PHP
804 B
2024-11-08 13:59
EDIT