-
-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge FollowRequireByDirRector to almost identical AbsolutizeRequireA…
…ndIncludePathRector
- Loading branch information
1 parent
0227d24
commit f7abdf6
Showing
10 changed files
with
95 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...lity/Rector/Include_/AbsolutizeRequireAndIncludePathRector/Fixture/inter_variable.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\CodeQuality\Rector\Include_\AbsolutizeRequireAndIncludePathRector\Fixture; | ||
|
||
final class InterVariable | ||
{ | ||
public function run(string $variable) | ||
{ | ||
require 'path/' . $variable; | ||
} | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\CodeQuality\Rector\Include_\AbsolutizeRequireAndIncludePathRector\Fixture; | ||
|
||
final class InterVariable | ||
{ | ||
public function run(string $variable) | ||
{ | ||
require __DIR__ . '/path/' . $variable; | ||
} | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...Rector/Include_/AbsolutizeRequireAndIncludePathRector/Fixture/skip_absolute_paths.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\CodeQuality\Rector\Include_\AbsolutizeRequireAndIncludePathRector\Fixture; | ||
|
||
final class SkipAbsolutePaths | ||
{ | ||
public function run() | ||
{ | ||
require '/vendor/autoload.php'; | ||
} | ||
} |
33 changes: 0 additions & 33 deletions
33
...sts/CodingStyle/Rector/Include_/FollowRequireByDirRector/FollowRequireByDirRectorTest.php
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
rules-tests/CodingStyle/Rector/Include_/FollowRequireByDirRector/config/configured_rule.php
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
116 changes: 0 additions & 116 deletions
116
rules/CodingStyle/Rector/Include_/FollowRequireByDirRector.php
This file was deleted.
Oops, something went wrong.