Skip to content

Commit

Permalink
Merge pull request #897 from kukulich/trailing
Browse files Browse the repository at this point in the history
Removed traling spaces
  • Loading branch information
Ocramius authored Dec 3, 2021
2 parents a314ea2 + 894109a commit 1f7a13b
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 41 deletions.
2 changes: 1 addition & 1 deletion test/unit/Fixture/AutoloadableClassWithTwoDirectories.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
class AutoloadableClassWithTwoDirectories
{

}
}
6 changes: 3 additions & 3 deletions test/unit/NodeCompiler/CompileNodeToValueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -509,11 +509,11 @@ public function testSelfStaticOrParentAsPropertyDefaultValue(): void
{
$phpCode = <<<'PHP'
<?php
class Baz {
const PARENT_CONSTANT = 'parentConstant';
}
class Foo extends Baz {
const SELF_CONSTANT = 'selfConstant';
const STATIC_CONSTANT = 'staticConstant';
Expand All @@ -522,7 +522,7 @@ class Foo extends Baz {
public $selfClass = self::class;
public $staticClass = static::class;
public $parentClass = parent::class;
public $selfConstant = self::SELF_CONSTANT;
public $staticConstant = self::STATIC_CONSTANT;
public $parentConstant = parent::PARENT_CONSTANT;
Expand Down
4 changes: 2 additions & 2 deletions test/unit/Reflection/ReflectionClassConstantTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,13 @@ public function deprecatedDocCommentProvider(): array
{
return [
[
'/**
'/**
* @deprecated since 8.0
*/',
true,
],
[
'/**
'/**
* @deprecated
*/',
true,
Expand Down
40 changes: 20 additions & 20 deletions test/unit/Reflection/ReflectionClassTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ class Foo
protected $c = 'c',
$d = 'd';
private $e = bool,
$f = false;
$f = false;
}
PHP;

Expand Down Expand Up @@ -2200,20 +2200,20 @@ public function testTraitRenamingMethodWithWrongCaseShouldStillWork(): void
{
$php = <<<'PHP'
<?php
trait MyTrait
{
protected function myMethod() : void{
}
}
class HelloWorld
{
use MyTrait {
MyMethod as myRenamedMethod;
}
public function sayHello(int $date): void
{
$this->myRenamedMethod();
Expand All @@ -2229,19 +2229,19 @@ public function testTraitSeparateUsesWithMethodRename(): void
{
$php = <<<'PHP'
<?php
trait HelloWorldTraitTest
{
}
trait HelloWorldTrait
{
public function sayHello(): void
{
}
}
class HelloWorld
{
use HelloWorldTraitTest;
Expand All @@ -2259,19 +2259,19 @@ public function testTraitMultipleUsesWithMethodRename(): void
{
$php = <<<'PHP'
<?php
trait HelloWorldTraitTest
{
}
trait HelloWorldTrait
{
public function sayHello(): void
{
}
}
class HelloWorld
{
use HelloWorldTraitTest, HelloWorldTrait {
Expand All @@ -2288,12 +2288,12 @@ public function testTraitMethodWithModifiedVisibility(): void
{
$php = <<<'PHP'
<?php
trait BarTrait {
private function privateMethod() {}
protected function protectedMethod() {}
}
class Foo
{
use BarTrait {
Expand Down Expand Up @@ -2336,7 +2336,7 @@ public function testHasStringableInterface(): void
{
$php = <<<'PHP'
<?php
class ClassHasStringable implements Stringable
{
public function __toString(): string
Expand Down Expand Up @@ -2387,7 +2387,7 @@ public function testHasAllInterfacesWithStringable(): void
{
$php = <<<'PHP'
<?php
abstract class HasStringable implements Iterator
{
public function __toString(): string
Expand All @@ -2410,13 +2410,13 @@ public function deprecatedDocCommentProvider(): array
{
return [
[
'/**
'/**
* @deprecated since 8.0
*/',
true,
],
[
'/**
'/**
* @deprecated
*/',
true,
Expand Down Expand Up @@ -2447,7 +2447,7 @@ public function testIsEnum(): void
{
$php = <<<'PHP'
<?php
enum IsEnum
{
case Bar;
Expand Down
8 changes: 4 additions & 4 deletions test/unit/Reflection/ReflectionConstantTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public function testGetDocCommentByConst(): void
/**
* @var int
*/
/** This constant comment should be used. */
/** This constant comment should be used. */
const FOO = 1;';

$reflector = new DefaultReflector(new StringSourceLocator($php, $this->astLocator));
Expand All @@ -238,7 +238,7 @@ public function testGetDocCommentByDefine(): void
/**
* @var int
*/
/** This constant comment should be used. */
/** This constant comment should be used. */
define("FOO", 1);';

$reflector = new DefaultReflector(new StringSourceLocator($php, $this->astLocator));
Expand Down Expand Up @@ -321,13 +321,13 @@ public function deprecatedDocCommentProvider(): array
{
return [
[
'/**
'/**
* @deprecated since 8.0
*/',
true,
],
[
'/**
'/**
* @deprecated
*/',
true,
Expand Down
12 changes: 6 additions & 6 deletions test/unit/Reflection/ReflectionFunctionAbstractTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ static function (): void {
*/
public function testIsDeprecated(string $comment): void
{
$php = sprintf('<?php
$php = sprintf('<?php
%s
function foo() {}', $comment);

Expand All @@ -154,7 +154,7 @@ public function nonDeprecatedProvider(): array
return [
[''],
[
'/**
'/**
* @deprecatedPolicy
*/',
],
Expand Down Expand Up @@ -307,7 +307,7 @@ public function testGetDocCommentWithComment(): void
/**
* Unused function comment
*/
/** This function comment should be used. */
/** This function comment should be used. */
function foo() {}
';

Expand All @@ -319,7 +319,7 @@ function foo() {}

public function testSetDocCommentFromString(): void
{
$php = '<?php
$php = '<?php
function foo() {}
';

Expand Down Expand Up @@ -839,12 +839,12 @@ public function deprecatedDocCommentsProvider(): array
{
return [
[
'/**
'/**
* @deprecated since 7.1
*/',
],
[
'/**
'/**
* @deprecated
*/',
],
Expand Down
4 changes: 2 additions & 2 deletions test/unit/Reflection/ReflectionNamedTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public function testGetClassWithSelfOrStatic(string $classNameToReflect, string
abstract class ParentClass {
public function method(): %s;
}
class ClassWithExtend extends ParentClass {}
', $type);

Expand All @@ -277,7 +277,7 @@ public function testGetClassWithParent(): void
$php = '<?php
abstract class Foo {
}
class Boo extends Foo {
public function method(): parent {}
}
Expand Down
6 changes: 3 additions & 3 deletions test/unit/Reflection/ReflectionPropertyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ class Foo
private $a = 0,
$b = 1;
protected $c = 3,
$d = 4;
$d = 4;
}
PHP;

Expand Down Expand Up @@ -826,13 +826,13 @@ public function deprecatedDocCommentProvider(): array
{
return [
[
'/**
'/**
* @deprecated since 8.0
*/',
true,
],
[
'/**
'/**
* @deprecated
*/',
true,
Expand Down

0 comments on commit 1f7a13b

Please sign in to comment.