Skip to content

Commit cf1587c

Browse files
committed
coding style
1 parent 691ca18 commit cf1587c

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
@@ -23,7 +23,9 @@ class ClassType
2323
use Traits\CommentAware;
2424

2525
const TYPE_CLASS = 'class';
26+
2627
const TYPE_INTERFACE = 'interface';
28+
2729
const TYPE_TRAIT = 'trait';
2830

2931
/** @var PhpNamespace|null */

src/PhpGenerator/Helpers.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ class Helpers
1818
use Nette\StaticClass;
1919

2020
const PHP_IDENT = '[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*';
21+
2122
const MAX_DEPTH = 50;
23+
2224
const WRAP_LENGTH = 70;
2325

2426

tests/PhpGenerator/ClassType.from.php7.phpt

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

2323
$res[] = ClassType::from(new class {
2424
public $a;
25+
2526
private $b;
2627

2728

tests/PhpGenerator/ClassType.inheritance.phpt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ require __DIR__ . '/../bootstrap.php';
1010
class A
1111
{
1212
public $a;
13+
1314
protected $b;
15+
1416
private $c;
1517

1618

@@ -23,7 +25,9 @@ class A
2325
class B extends A
2426
{
2527
public $d;
28+
2629
protected $e;
30+
2731
private $f;
2832

2933

tests/PhpGenerator/Helpers.dump().phpt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ Assert::same("(object) [\n\t'a' => (object) [\n\t\t'b' => 2,\n\t],\n]", Helpers:
4747
class Test
4848
{
4949
public $a = 1;
50+
5051
protected $b = 2;
52+
5153
private $c = 3;
5254
}
5355

@@ -58,6 +60,7 @@ Assert::equal(new Test, eval('return ' . Helpers::dump(new Test) . ';'));
5860
class Test2 extends Test
5961
{
6062
public $d = 5;
63+
6164
private $c = 4;
6265

6366

0 commit comments

Comments
 (0)