1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/15392] Changed dirname(__FILE__) to __DIR__

Changed dirname(__FILE__) to __DIR__ everywhere

PHPBB3-15392
This commit is contained in:
DinHere
2017-12-03 17:19:59 +02:00
committed by Marc Alexander
parent 66cbf2607b
commit 8c9d26db1f
198 changed files with 373 additions and 373 deletions

View File

@@ -55,7 +55,7 @@ class lint_test extends phpbb_test_case
public function lint_data()
{
return $this->check(dirname(__FILE__) . '/..');
return $this->check(__DIR__ . '/..');
}
protected function check($root)
@@ -81,16 +81,16 @@ class lint_test extends phpbb_test_case
continue;
}
if (is_dir($path) && !in_array($path, array(
dirname(__FILE__) . '/../.git',
dirname(__FILE__) . '/../build/new_version',
dirname(__FILE__) . '/../build/old_versions',
dirname(__FILE__) . '/../phpBB/cache',
dirname(__FILE__) . '/../phpBB/ext',
dirname(__FILE__) . '/../phpBB/store',
__DIR__ . '/../.git',
__DIR__ . '/../build/new_version',
__DIR__ . '/../build/old_versions',
__DIR__ . '/../phpBB/cache',
__DIR__ . '/../phpBB/ext',
__DIR__ . '/../phpBB/store',
// PHP Fatal error: Cannot declare class Container because the name is already in use in /var/www/projects/phpbb3/tests/../phpBB/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services1-1.php on line 20
// https://gist.github.com/e003913ffd493da63cbc
dirname(__FILE__) . '/../phpBB/vendor',
dirname(__FILE__) . '/../node_modules',
__DIR__ . '/../phpBB/vendor',
__DIR__ . '/../node_modules',
)))
{
$files = array_merge($files, $this->check($path));