REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 804 B
Close
/opt/cpanel/ea-wappspector/vendor/rector/rector/rules/Php70/NodeAnalyzer/Php4ConstructorClassMethodAnalyzer.php
Text
Base64
<?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(); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
BattleshipTernaryAnalyzer.php
4.40 KB
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Php4ConstructorClassMethodAnalyzer.php
804 B
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).