@@ -6,7 +6,7 @@ |
||
| 6 | 6 | |
| 7 | 7 | class BitwiseOr extends AssignOp |
| 8 | 8 | { |
| 9 | - public function getType() : string { |
|
| 10 | - return 'Expr_AssignOp_BitwiseOr'; |
|
| 11 | - } |
|
| 9 | + public function getType() : string { |
|
| 10 | + return 'Expr_AssignOp_BitwiseOr'; |
|
| 11 | + } |
|
| 12 | 12 | } |
@@ -4,8 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use PhpParser\Node\Expr\AssignOp; |
| 6 | 6 | |
| 7 | -class BitwiseOr extends AssignOp |
|
| 8 | -{ |
|
| 7 | +class BitwiseOr extends AssignOp { |
|
| 9 | 8 | public function getType() : string { |
| 10 | 9 | return 'Expr_AssignOp_BitwiseOr'; |
| 11 | 10 | } |
@@ -6,12 +6,12 @@ |
||
| 6 | 6 | |
| 7 | 7 | class Double extends Cast |
| 8 | 8 | { |
| 9 | - // For use in "kind" attribute |
|
| 10 | - const KIND_DOUBLE = 1; // "double" syntax |
|
| 11 | - const KIND_FLOAT = 2; // "float" syntax |
|
| 12 | - const KIND_REAL = 3; // "real" syntax |
|
| 9 | + // For use in "kind" attribute |
|
| 10 | + const KIND_DOUBLE = 1; // "double" syntax |
|
| 11 | + const KIND_FLOAT = 2; // "float" syntax |
|
| 12 | + const KIND_REAL = 3; // "real" syntax |
|
| 13 | 13 | |
| 14 | - public function getType() : string { |
|
| 15 | - return 'Expr_Cast_Double'; |
|
| 16 | - } |
|
| 14 | + public function getType() : string { |
|
| 15 | + return 'Expr_Cast_Double'; |
|
| 16 | + } |
|
| 17 | 17 | } |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | // For use in "kind" attribute |
| 10 | 10 | const KIND_DOUBLE = 1; // "double" syntax |
| 11 | - const KIND_FLOAT = 2; // "float" syntax |
|
| 11 | + const KIND_FLOAT = 2; // "float" syntax |
|
| 12 | 12 | const KIND_REAL = 3; // "real" syntax |
| 13 | 13 | |
| 14 | 14 | public function getType() : string { |
@@ -4,8 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use PhpParser\Node\Expr\Cast; |
| 6 | 6 | |
| 7 | -class Double extends Cast |
|
| 8 | -{ |
|
| 7 | +class Double extends Cast { |
|
| 9 | 8 | // For use in "kind" attribute |
| 10 | 9 | const KIND_DOUBLE = 1; // "double" syntax |
| 11 | 10 | const KIND_FLOAT = 2; // "float" syntax |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | |
| 7 | 7 | class String_ extends Cast |
| 8 | 8 | { |
| 9 | - public function getType() : string { |
|
| 10 | - return 'Expr_Cast_String'; |
|
| 11 | - } |
|
| 9 | + public function getType() : string { |
|
| 10 | + return 'Expr_Cast_String'; |
|
| 11 | + } |
|
| 12 | 12 | } |
@@ -4,8 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use PhpParser\Node\Expr\Cast; |
| 6 | 6 | |
| 7 | -class String_ extends Cast |
|
| 8 | -{ |
|
| 7 | +class String_ extends Cast { |
|
| 9 | 8 | public function getType() : string { |
| 10 | 9 | return 'Expr_Cast_String'; |
| 11 | 10 | } |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | |
| 7 | 7 | class Unset_ extends Cast |
| 8 | 8 | { |
| 9 | - public function getType() : string { |
|
| 10 | - return 'Expr_Cast_Unset'; |
|
| 11 | - } |
|
| 9 | + public function getType() : string { |
|
| 10 | + return 'Expr_Cast_Unset'; |
|
| 11 | + } |
|
| 12 | 12 | } |
@@ -4,8 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use PhpParser\Node\Expr\Cast; |
| 6 | 6 | |
| 7 | -class Unset_ extends Cast |
|
| 8 | -{ |
|
| 7 | +class Unset_ extends Cast { |
|
| 9 | 8 | public function getType() : string { |
| 10 | 9 | return 'Expr_Cast_Unset'; |
| 11 | 10 | } |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | |
| 7 | 7 | class Bool_ extends Cast |
| 8 | 8 | { |
| 9 | - public function getType() : string { |
|
| 10 | - return 'Expr_Cast_Bool'; |
|
| 11 | - } |
|
| 9 | + public function getType() : string { |
|
| 10 | + return 'Expr_Cast_Bool'; |
|
| 11 | + } |
|
| 12 | 12 | } |
@@ -4,8 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use PhpParser\Node\Expr\Cast; |
| 6 | 6 | |
| 7 | -class Bool_ extends Cast |
|
| 8 | -{ |
|
| 7 | +class Bool_ extends Cast { |
|
| 9 | 8 | public function getType() : string { |
| 10 | 9 | return 'Expr_Cast_Bool'; |
| 11 | 10 | } |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | |
| 7 | 7 | class Object_ extends Cast |
| 8 | 8 | { |
| 9 | - public function getType() : string { |
|
| 10 | - return 'Expr_Cast_Object'; |
|
| 11 | - } |
|
| 9 | + public function getType() : string { |
|
| 10 | + return 'Expr_Cast_Object'; |
|
| 11 | + } |
|
| 12 | 12 | } |
@@ -4,8 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use PhpParser\Node\Expr\Cast; |
| 6 | 6 | |
| 7 | -class Object_ extends Cast |
|
| 8 | -{ |
|
| 7 | +class Object_ extends Cast { |
|
| 9 | 8 | public function getType() : string { |
| 10 | 9 | return 'Expr_Cast_Object'; |
| 11 | 10 | } |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | |
| 7 | 7 | class Int_ extends Cast |
| 8 | 8 | { |
| 9 | - public function getType() : string { |
|
| 10 | - return 'Expr_Cast_Int'; |
|
| 11 | - } |
|
| 9 | + public function getType() : string { |
|
| 10 | + return 'Expr_Cast_Int'; |
|
| 11 | + } |
|
| 12 | 12 | } |
@@ -4,8 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use PhpParser\Node\Expr\Cast; |
| 6 | 6 | |
| 7 | -class Int_ extends Cast |
|
| 8 | -{ |
|
| 7 | +class Int_ extends Cast { |
|
| 9 | 8 | public function getType() : string { |
| 10 | 9 | return 'Expr_Cast_Int'; |
| 11 | 10 | } |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | |
| 7 | 7 | class Array_ extends Cast |
| 8 | 8 | { |
| 9 | - public function getType() : string { |
|
| 10 | - return 'Expr_Cast_Array'; |
|
| 11 | - } |
|
| 9 | + public function getType() : string { |
|
| 10 | + return 'Expr_Cast_Array'; |
|
| 11 | + } |
|
| 12 | 12 | } |
@@ -4,8 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use PhpParser\Node\Expr\Cast; |
| 6 | 6 | |
| 7 | -class Array_ extends Cast |
|
| 8 | -{ |
|
| 7 | +class Array_ extends Cast { |
|
| 9 | 8 | public function getType() : string { |
| 10 | 9 | return 'Expr_Cast_Array'; |
| 11 | 10 | } |
@@ -6,25 +6,25 @@ |
||
| 6 | 6 | |
| 7 | 7 | class Variable extends Expr |
| 8 | 8 | { |
| 9 | - /** @var string|Expr Name */ |
|
| 10 | - public $name; |
|
| 9 | + /** @var string|Expr Name */ |
|
| 10 | + public $name; |
|
| 11 | 11 | |
| 12 | - /** |
|
| 13 | - * Constructs a variable node. |
|
| 14 | - * |
|
| 15 | - * @param string|Expr $name Name |
|
| 16 | - * @param array $attributes Additional attributes |
|
| 17 | - */ |
|
| 18 | - public function __construct($name, array $attributes = []) { |
|
| 19 | - $this->attributes = $attributes; |
|
| 20 | - $this->name = $name; |
|
| 21 | - } |
|
| 12 | + /** |
|
| 13 | + * Constructs a variable node. |
|
| 14 | + * |
|
| 15 | + * @param string|Expr $name Name |
|
| 16 | + * @param array $attributes Additional attributes |
|
| 17 | + */ |
|
| 18 | + public function __construct($name, array $attributes = []) { |
|
| 19 | + $this->attributes = $attributes; |
|
| 20 | + $this->name = $name; |
|
| 21 | + } |
|
| 22 | 22 | |
| 23 | - public function getSubNodeNames() : array { |
|
| 24 | - return ['name']; |
|
| 25 | - } |
|
| 23 | + public function getSubNodeNames() : array { |
|
| 24 | + return ['name']; |
|
| 25 | + } |
|
| 26 | 26 | |
| 27 | - public function getType() : string { |
|
| 28 | - return 'Expr_Variable'; |
|
| 29 | - } |
|
| 27 | + public function getType() : string { |
|
| 28 | + return 'Expr_Variable'; |
|
| 29 | + } |
|
| 30 | 30 | } |
@@ -4,8 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use PhpParser\Node\Expr; |
| 6 | 6 | |
| 7 | -class Variable extends Expr |
|
| 8 | -{ |
|
| 7 | +class Variable extends Expr { |
|
| 9 | 8 | /** @var string|Expr Name */ |
| 10 | 9 | public $name; |
| 11 | 10 | |