Skip to content

Commit 1652635

Browse files
committed
coding style
1 parent 4645c82 commit 1652635

File tree

5 files changed

+12
-0
lines changed

5 files changed

+12
-0
lines changed

src/PhpGenerator/ClassType.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ final class ClassType
2525
use Traits\CommentAware;
2626

2727
const TYPE_CLASS = 'class';
28+
2829
const TYPE_INTERFACE = 'interface';
30+
2931
const TYPE_TRAIT = 'trait';
3032

3133
/** @var PhpNamespace|null */

src/PhpGenerator/Helpers.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ final class Helpers
2020
use Nette\StaticClass;
2121

2222
const PHP_IDENT = '[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*';
23+
2324
const MAX_DEPTH = 50;
25+
2426
const WRAP_LENGTH = 70;
2527

2628

tests/PhpGenerator/ClassType.from.anonymous.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ abstract class Class1
2323

2424
$res[] = ClassType::from(new class {
2525
public $a;
26+
2627
private $b;
2728

2829

tests/PhpGenerator/ClassType.inheritance.phpt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ require __DIR__ . '/../bootstrap.php';
1111
class A
1212
{
1313
public $a;
14+
1415
protected $b;
16+
1517
private $c;
1618

1719

@@ -24,7 +26,9 @@ class A
2426
class B extends A
2527
{
2628
public $d;
29+
2730
protected $e;
31+
2832
private $f;
2933

3034

tests/PhpGenerator/Helpers.dump().phpt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ Assert::same("(object) [\n\t'a' => (object) [\n\t\t'b' => 2,\n\t],\n]", Helpers:
4949
class Test
5050
{
5151
public $a = 1;
52+
5253
protected $b = 2;
54+
5355
private $c = 3;
5456
}
5557

@@ -60,6 +62,7 @@ Assert::equal(new Test, eval('return ' . Helpers::dump(new Test) . ';'));
6062
class Test2 extends Test
6163
{
6264
public $d = 5;
65+
6366
private $c = 4;
6467

6568

0 commit comments

Comments
 (0)