Skip to content

Commit 45d8e2e

Browse files
whitespace
1 parent ff9cafe commit 45d8e2e

12 files changed

Lines changed: 26 additions & 26 deletions

ext/reflection/tests/attribute_get_current/class.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ReflectionAttribute::getCurrent() for class
55

66
#[Attribute]
77
class Demo {
8-
public function __construct( $args ) {
8+
public function __construct($args) {
99
echo ReflectionAttribute::getCurrent();
1010
}
1111
}
@@ -15,7 +15,7 @@ class WithDemo {
1515

1616
}
1717

18-
$case = new ReflectionClass( WithDemo::class );
18+
$case = new ReflectionClass(WithDemo::class);
1919
echo $case;
2020
echo "\n";
2121
$case->getAttributes()[0]->newInstance();

ext/reflection/tests/attribute_get_current/class_constant.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ReflectionAttribute::getCurrent() for class constant
55

66
#[Attribute]
77
class Demo {
8-
public function __construct( $args ) {
8+
public function __construct($args) {
99
echo ReflectionAttribute::getCurrent();
1010
}
1111
}
@@ -17,7 +17,7 @@ class WithDemo {
1717

1818
}
1919

20-
$case = new ReflectionClassConstant( WithDemo::class, 'EXAMPLE' );
20+
$case = new ReflectionClassConstant(WithDemo::class, 'EXAMPLE');
2121
echo $case;
2222
echo "\n";
2323
$case->getAttributes()[0]->newInstance();

ext/reflection/tests/attribute_get_current/class_method.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ReflectionAttribute::getCurrent() for method
55

66
#[Attribute]
77
class Demo {
8-
public function __construct( $args ) {
8+
public function __construct($args) {
99
echo ReflectionAttribute::getCurrent();
1010
}
1111
}
@@ -18,7 +18,7 @@ class WithDemo {
1818
) {}
1919
}
2020

21-
$case = new ReflectionMethod( WithDemo::class, 'method' );
21+
$case = new ReflectionMethod(WithDemo::class, 'method');
2222
echo $case;
2323
echo "\n";
2424
$case->getAttributes()[0]->newInstance();

ext/reflection/tests/attribute_get_current/class_method_parameter.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ReflectionAttribute::getCurrent() for method parameter
55

66
#[Attribute]
77
class Demo {
8-
public function __construct( $args ) {
8+
public function __construct($args) {
99
echo ReflectionAttribute::getCurrent();
1010
}
1111
}
@@ -18,7 +18,7 @@ class WithDemo {
1818

1919
}
2020

21-
$case = new ReflectionParameter( [ WithDemo::class, 'method' ], 'param' );
21+
$case = new ReflectionParameter([WithDemo::class, 'method'], 'param');
2222
echo $case;
2323
echo "\n";
2424
$case->getAttributes()[0]->newInstance();

ext/reflection/tests/attribute_get_current/class_property.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ReflectionAttribute::getCurrent() for property
55

66
#[Attribute]
77
class Demo {
8-
public function __construct( $args ) {
8+
public function __construct($args) {
99
echo ReflectionAttribute::getCurrent();
1010
}
1111
}
@@ -17,7 +17,7 @@ class WithDemo {
1717

1818
}
1919

20-
$case = new ReflectionProperty( WithDemo::class, 'prop' );
20+
$case = new ReflectionProperty(WithDemo::class, 'prop');
2121
echo $case;
2222
echo "\n";
2323
$case->getAttributes()[0]->newInstance();

ext/reflection/tests/attribute_get_current/closure.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ ReflectionAttribute::getCurrent() for closure
55

66
#[Attribute]
77
class Demo {
8-
public function __construct( $args ) {
8+
public function __construct($args) {
99
echo ReflectionAttribute::getCurrent();
1010
}
1111
}
1212

13-
$closure = #[Demo("closure")] static function ( mixed $param ) {};
13+
$closure = #[Demo("closure")] static function (mixed $param) {};
1414

15-
$case = new ReflectionFunction( $closure );
15+
$case = new ReflectionFunction($closure);
1616
echo $case;
1717
echo "\n";
1818
$case->getAttributes()[0]->newInstance();

ext/reflection/tests/attribute_get_current/closure_parameter.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ ReflectionAttribute::getCurrent() for closure parameter
55

66
#[Attribute]
77
class Demo {
8-
public function __construct( $args ) {
8+
public function __construct($args) {
99
echo ReflectionAttribute::getCurrent();
1010
}
1111
}
1212

13-
$closure = static function ( #[Demo("closure param")] mixed $param ) {};
13+
$closure = static function (#[Demo("closure param")] mixed $param) {};
1414

15-
$case = new ReflectionParameter( $closure, 'param' );
15+
$case = new ReflectionParameter($closure, 'param');
1616
echo $case;
1717
echo "\n";
1818
$case->getAttributes()[0]->newInstance();

ext/reflection/tests/attribute_get_current/error_from_constructor.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ReflectionAttribute::getCurrent() when called from another method invoked by con
55

66
#[Attribute]
77
class Demo {
8-
public function __construct( $args ) {
8+
public function __construct($args) {
99
echo ReflectionAttribute::getCurrent();
1010
$this->test();
1111
}
@@ -18,7 +18,7 @@ class Demo {
1818
#[Demo("global constant")]
1919
const GLOBAL_CONSTANT = true;
2020

21-
$case = new ReflectionConstant( 'GLOBAL_CONSTANT' );
21+
$case = new ReflectionConstant('GLOBAL_CONSTANT');
2222
echo $case;
2323
echo "\n";
2424
$case->getAttributes()[0]->newInstance();

ext/reflection/tests/attribute_get_current/error_manual_constructor.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ ReflectionAttribute::getCurrent() when attribute constructed manually
55

66
#[Attribute]
77
class Demo {
8-
public function __construct( $args ) {
8+
public function __construct($args) {
99
echo ReflectionAttribute::getCurrent();
1010
}
1111
}
1212

1313
#[Demo("global constant")]
1414
const GLOBAL_CONSTANT = true;
1515

16-
$case = new ReflectionConstant( 'GLOBAL_CONSTANT' );
16+
$case = new ReflectionConstant('GLOBAL_CONSTANT');
1717
echo $case;
1818
echo "\n";
1919
$case->getAttributes()[0]->newInstance();

ext/reflection/tests/attribute_get_current/global_constant.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ ReflectionAttribute::getCurrent() for global constant
55

66
#[Attribute]
77
class Demo {
8-
public function __construct( $args ) {
8+
public function __construct($args) {
99
echo ReflectionAttribute::getCurrent();
1010
}
1111
}
1212

1313
#[Demo("global constant")]
1414
const GLOBAL_CONSTANT = true;
1515

16-
$case = new ReflectionConstant( 'GLOBAL_CONSTANT' );
16+
$case = new ReflectionConstant('GLOBAL_CONSTANT');
1717
echo $case;
1818
echo "\n";
1919
$case->getAttributes()[0]->newInstance();

0 commit comments

Comments
 (0)