Skip to content
This repository was archived by the owner on Jul 12, 2020. It is now read-only.

Commit a4b2208

Browse files
committed
fix curly braces to new line for functions
1 parent 87bb505 commit a4b2208

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

src/main/QafooLabs/Refactoring/Domain/Model/PhpName.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ public function relativeName()
108108
return $this->relativeName;
109109
}
110110

111-
public function parent() {
111+
public function parent()
112+
{
112113
return $this->parent;
113114
}
114115

src/test/QafooLabs/Refactoring/Adapters/PHPParser/ParserPhpNameScannerTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ public function main()
6161
}
6262

6363

64-
public function testFindNamesFindsParentForPhpNameInSingleLineUseStatement() {
64+
public function testFindNamesFindsParentForPhpNameInSingleLineUseStatement()
65+
{
6566
$file = new File("Fqcn.php", <<<'PHP'
6667
<?php
6768
@@ -89,7 +90,8 @@ public function testFindNamesFindsParentForPhpNameInSingleLineUseStatement() {
8990
);
9091
}
9192

92-
public function testFindNamesFindsParentForPhpNameInMultiLineUseStatement() {
93+
public function testFindNamesFindsParentForPhpNameInMultiLineUseStatement()
94+
{
9395
$file = new File("Fqcn.php", <<<'PHP'
9496
<?php
9597

src/test/QafooLabs/Refactoring/Domain/Model/PhpNameTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ public function testIsFullyQualified($fqcn, $relativeName, $expected = TRUE)
9292
$this->assertEquals($expected, $name->isFullyQualified());
9393
}
9494

95-
public static function provideIsFullyQualified() {
95+
public static function provideIsFullyQualified()
96+
{
9697
$tests = array();
9798

9899
$tests[] = array('Foo', 'Foo', TRUE);
@@ -104,15 +105,17 @@ public static function provideIsFullyQualified() {
104105
return $tests;
105106
}
106107

107-
public function testGetShortNameReturnsLastPartForFQCN() {
108+
public function testGetShortNameReturnsLastPartForFQCN()
109+
{
108110
$name = new PhpName('Foo\\Bar', "Foo\\Bar", null, null);
109111
$short = new PhpName("Foo", "Foo", null, null);
110112

111113
$this->assertEquals('Bar', $name->shortName());
112114
$this->assertEquals('Foo', $short->shortName());
113115
}
114116

115-
public function testIsUseStatementWhenParentIsAUseStatement() {
117+
public function testIsUseStatementWhenParentIsAUseStatement()
118+
{
116119
$name = new PhpName('Foo\\Bar', 'Foo\\Bar', null, null, new UseStatement());
117120

118121
$this->assertTrue($name->isUse());

src/test/QafooLabs/Refactoring/Domain/Model/UseStatementTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ public function setUp()
1414
$this->useStatement = new UseStatement($file, LineRange::fromLines(3,5));
1515
}
1616

17-
public function testReturnsEndLineFromLineRange() {
17+
public function testReturnsEndLineFromLineRange()
18+
{
1819
$this->assertEquals(5, $this->useStatement->getEndLine());
1920
}
2021
}

0 commit comments

Comments
 (0)