Skip to content

Commit 97250e6

Browse files
committed
unify coding style with phpstan
1 parent 49c4c4b commit 97250e6

38 files changed

+73
-69
lines changed

src/Ast/ConstExpr/ConstExprArrayItemNode.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@
22

33
namespace PHPStan\PhpDocParser\Ast\ConstExpr;
44

5-
65
class ConstExprArrayItemNode implements ConstExprNode
76
{
7+
88
/** @var null|ConstExprNode */
99
public $key;
1010

1111
/** @var ConstExprNode */
1212
public $value;
1313

14-
1514
public function __construct(ConstExprNode $key = null, ConstExprNode $value)
1615
{
1716
$this->key = $key;
@@ -28,4 +27,5 @@ public function __toString(): string
2827
return "{$this->value}";
2928
}
3029
}
30+
3131
}

src/Ast/ConstExpr/ConstExprArrayNode.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22

33
namespace PHPStan\PhpDocParser\Ast\ConstExpr;
44

5-
65
class ConstExprArrayNode implements ConstExprNode
76
{
7+
88
/** @var ConstExprArrayItemNode[] */
99
public $items;
1010

11-
1211
/**
1312
* @param ConstExprArrayItemNode[] $items
1413
*/
@@ -22,4 +21,5 @@ public function __toString(): string
2221
{
2322
return '[' . implode(', ', $this->items) . ']';
2423
}
24+
2525
}

src/Ast/ConstExpr/ConstExprFalseNode.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
namespace PHPStan\PhpDocParser\Ast\ConstExpr;
44

5-
65
class ConstExprFalseNode implements ConstExprNode
76
{
7+
88
public function __toString(): string
99
{
1010
return 'false';
1111
}
12+
1213
}

src/Ast/ConstExpr/ConstExprFloatNode.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22

33
namespace PHPStan\PhpDocParser\Ast\ConstExpr;
44

5-
65
class ConstExprFloatNode implements ConstExprNode
76
{
7+
88
/** @var string */
99
public $value;
1010

11-
1211
public function __construct(string $value)
1312
{
1413
$this->value = $value;
@@ -19,4 +18,5 @@ public function __toString(): string
1918
{
2019
return $this->value;
2120
}
21+
2222
}

src/Ast/ConstExpr/ConstExprIntegerNode.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22

33
namespace PHPStan\PhpDocParser\Ast\ConstExpr;
44

5-
65
class ConstExprIntegerNode implements ConstExprNode
76
{
7+
88
/** @var string */
99
public $value;
1010

11-
1211
public function __construct(string $value)
1312
{
1413
$this->value = $value;
@@ -19,4 +18,5 @@ public function __toString(): string
1918
{
2019
return $this->value;
2120
}
21+
2222
}

src/Ast/ConstExpr/ConstExprNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use PHPStan\PhpDocParser\Ast\Node;
66

7-
87
interface ConstExprNode extends Node
98
{
9+
1010
}

src/Ast/ConstExpr/ConstExprNullNode.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
namespace PHPStan\PhpDocParser\Ast\ConstExpr;
44

5-
65
class ConstExprNullNode implements ConstExprNode
76
{
7+
88
public function __toString(): string
99
{
1010
return 'null';
1111
}
12+
1213
}

src/Ast/ConstExpr/ConstExprStringNode.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22

33
namespace PHPStan\PhpDocParser\Ast\ConstExpr;
44

5-
65
class ConstExprStringNode implements ConstExprNode
76
{
7+
88
/** @var string */
99
public $value;
1010

11-
1211
public function __construct(string $value)
1312
{
1413
$this->value = $value;
@@ -19,4 +18,5 @@ public function __toString(): string
1918
{
2019
return $this->value;
2120
}
21+
2222
}

src/Ast/ConstExpr/ConstExprTrueNode.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
namespace PHPStan\PhpDocParser\Ast\ConstExpr;
44

5-
65
class ConstExprTrueNode implements ConstExprNode
76
{
7+
88
public function __toString(): string
99
{
1010
return 'true';
1111
}
12+
1213
}

src/Ast/ConstExpr/ConstFetchNode.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@
22

33
namespace PHPStan\PhpDocParser\Ast\ConstExpr;
44

5-
65
class ConstFetchNode implements ConstExprNode
76
{
7+
88
/** @var string class name for class constants or empty string for non-class constants */
99
public $className;
1010

1111
/** @var string */
1212
public $name;
1313

14-
1514
public function __construct(string $className, string $name)
1615
{
1716
$this->className = $className;
@@ -28,4 +27,5 @@ public function __toString(): string
2827
return "{$this->className}::{$this->name}";
2928
}
3029
}
30+
3131
}

0 commit comments

Comments
 (0)