This commit is contained in:
TiclemFR
2024-01-20 23:14:52 +01:00
parent a068f54957
commit 031f7071e6
881 changed files with 241469 additions and 247870 deletions

View File

@@ -2,14 +2,13 @@
namespace PhpParser\Node\Name;
class FullyQualified extends \PhpParser\Node\Name
{
class FullyQualified extends \PhpParser\Node\Name {
/**
* Checks whether the name is unqualified. (E.g. Name)
*
* @return bool Whether the name is unqualified
*/
public function isUnqualified() : bool {
public function isUnqualified(): bool {
return false;
}
@@ -18,7 +17,7 @@ class FullyQualified extends \PhpParser\Node\Name
*
* @return bool Whether the name is qualified
*/
public function isQualified() : bool {
public function isQualified(): bool {
return false;
}
@@ -27,7 +26,7 @@ class FullyQualified extends \PhpParser\Node\Name
*
* @return bool Whether the name is fully qualified
*/
public function isFullyQualified() : bool {
public function isFullyQualified(): bool {
return true;
}
@@ -36,15 +35,15 @@ class FullyQualified extends \PhpParser\Node\Name
*
* @return bool Whether the name is relative
*/
public function isRelative() : bool {
public function isRelative(): bool {
return false;
}
public function toCodeString() : string {
public function toCodeString(): string {
return '\\' . $this->toString();
}
public function getType() : string {
public function getType(): string {
return 'Name_FullyQualified';
}
}

View File

@@ -2,14 +2,13 @@
namespace PhpParser\Node\Name;
class Relative extends \PhpParser\Node\Name
{
class Relative extends \PhpParser\Node\Name {
/**
* Checks whether the name is unqualified. (E.g. Name)
*
* @return bool Whether the name is unqualified
*/
public function isUnqualified() : bool {
public function isUnqualified(): bool {
return false;
}
@@ -18,7 +17,7 @@ class Relative extends \PhpParser\Node\Name
*
* @return bool Whether the name is qualified
*/
public function isQualified() : bool {
public function isQualified(): bool {
return false;
}
@@ -27,7 +26,7 @@ class Relative extends \PhpParser\Node\Name
*
* @return bool Whether the name is fully qualified
*/
public function isFullyQualified() : bool {
public function isFullyQualified(): bool {
return false;
}
@@ -36,15 +35,15 @@ class Relative extends \PhpParser\Node\Name
*
* @return bool Whether the name is relative
*/
public function isRelative() : bool {
public function isRelative(): bool {
return true;
}
public function toCodeString() : string {
public function toCodeString(): string {
return 'namespace\\' . $this->toString();
}
public function getType() : string {
public function getType(): string {
return 'Name_Relative';
}
}