mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
CS fix
This commit is contained in:
parent
6eb7a688d1
commit
0a2a0feaf2
@ -19,6 +19,7 @@ use function array_search;
|
||||
use function array_slice;
|
||||
use function chdir;
|
||||
use function error_log;
|
||||
use function explode;
|
||||
use function fwrite;
|
||||
use function gc_disable;
|
||||
use function getcwd;
|
||||
@ -32,6 +33,7 @@ use function is_string;
|
||||
use function preg_replace;
|
||||
use function realpath;
|
||||
use function setlocale;
|
||||
use function strlen;
|
||||
use function strpos;
|
||||
use function strtolower;
|
||||
use function substr;
|
||||
|
@ -2,6 +2,10 @@
|
||||
|
||||
namespace Psalm\Internal\LanguageServer;
|
||||
|
||||
use function rtrim;
|
||||
use function strlen;
|
||||
use function substr;
|
||||
|
||||
/** @internal */
|
||||
final class PathMapper
|
||||
{
|
||||
|
@ -23,6 +23,7 @@ use Psalm\Tests\LanguageServer\MockProtocolStream;
|
||||
use Psalm\Tests\TestConfig;
|
||||
|
||||
use function Amp\Promise\wait;
|
||||
use function getcwd;
|
||||
use function rand;
|
||||
|
||||
class DiagnosticTest extends AsyncTestCase
|
||||
|
@ -13,7 +13,7 @@ final class PathMapperTest extends TestCase
|
||||
$mapper->configureClientRoot('/home/user/src/project');
|
||||
$this->assertSame(
|
||||
'/home/user/src/project/filename.php',
|
||||
$mapper->mapServerToClient('/var/www/filename.php')
|
||||
$mapper->mapServerToClient('/var/www/filename.php'),
|
||||
);
|
||||
}
|
||||
|
||||
@ -25,7 +25,7 @@ final class PathMapperTest extends TestCase
|
||||
|
||||
$this->assertSame(
|
||||
'/home/user/src/project/filename.php',
|
||||
$mapper->mapServerToClient('/var/www/filename.php')
|
||||
$mapper->mapServerToClient('/var/www/filename.php'),
|
||||
);
|
||||
}
|
||||
|
||||
@ -43,7 +43,7 @@ final class PathMapperTest extends TestCase
|
||||
$mapper->configureClientRoot($client_root_provided_later);
|
||||
$this->assertSame(
|
||||
$server_ath,
|
||||
$mapper->mapClientToServer($client_path)
|
||||
$mapper->mapClientToServer($client_path),
|
||||
);
|
||||
}
|
||||
|
||||
@ -59,7 +59,7 @@ final class PathMapperTest extends TestCase
|
||||
$mapper->configureClientRoot($client_root_provided_later);
|
||||
$this->assertSame(
|
||||
$client_path,
|
||||
$mapper->mapServerToClient($server_path)
|
||||
$mapper->mapServerToClient($server_path),
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user