File tree Expand file tree Collapse file tree 5 files changed +4
-6
lines changed
main/QafooLabs/Refactoring/Domain/Model
test/QafooLabs/Refactoring Expand file tree Collapse file tree 5 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,6 @@ private function overlaps(PhpName $other)
87
87
88
88
private function shareNamespace (PhpName $ other )
89
89
{
90
- $ otherName = array ();
91
90
$ otherParts = $ this ->stringToParts ($ other ->fullyQualifiedName );
92
91
93
92
return strpos ($ this ->fullyQualifiedName , $ otherParts [0 ]) !== false ;
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public function testRenameLocalVariable()
29
29
\Phake::when ($ this ->editor )->openBuffer (\Phake::anyParameters ())->thenReturn ($ buffer );
30
30
\Phake::when ($ this ->codeAnalysis )->findMethodRange (\Phake::anyParameters ())->thenReturn (LineRange::fromSingleLine (1 ));
31
31
32
- $ patch = $ this ->refactoring ->refactor (new File ('foo.php ' , <<<'PHP'
32
+ $ this ->refactoring ->refactor (new File ('foo.php ' , <<<'PHP'
33
33
<?php
34
34
class Foo
35
35
{
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public function setUp()
28
28
*/
29
29
public function testRefactorSimpleMethod ()
30
30
{
31
- $ patch = $ this ->refactoring ->refactor (new File ('foo.php ' , <<<'PHP'
31
+ $ this ->refactoring ->refactor (new File ('foo.php ' , <<<'PHP'
32
32
<?php
33
33
class Foo
34
34
{
@@ -69,7 +69,7 @@ public function testVariableUsedBeforeAndAfterExtractedSlice()
69
69
{
70
70
$ this ->markTestIncomplete ('Failing over some invisible whitespace issue? ' );
71
71
72
- $ patch = $ this ->refactoring ->refactor (new File ('foo.php ' , <<<'PHP'
72
+ $ this ->refactoring ->refactor (new File ('foo.php ' , <<<'PHP'
73
73
<?php
74
74
class Foo
75
75
{
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public function whenCreateMethodSignatureWithInvalidVisibility_ThenThrowExceptio
22
22
{
23
23
$ this ->setExpectedException ('InvalidArgumentException ' );
24
24
25
- $ method = new MethodSignature ('foo ' , MethodSignature::IS_PRIVATE | MethodSignature::IS_PUBLIC );
25
+ new MethodSignature ('foo ' , MethodSignature::IS_PRIVATE | MethodSignature::IS_PUBLIC );
26
26
}
27
27
28
28
/**
Original file line number Diff line number Diff line change @@ -95,7 +95,6 @@ public function testRegression4()
95
95
{
96
96
$ name = new PhpName ('Foo ' , 'Foo ' );
97
97
$ from = new PhpName ('Foo \\Foo ' , 'Foo ' );
98
- $ to = new PhpName ('Foo \\Bar ' , 'Bar ' );
99
98
100
99
$ this ->assertFalse ($ name ->isAffectedByChangesTo ($ from ), 'Namespace should not be affected by changes to Class in namespace. ' );
101
100
}
You can’t perform that action at this time.
0 commit comments