projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
More updates to stop using dev or alpha or beta versions.
[yaffs-website]
/
vendor
/
drupal
/
console-core
/
src
/
functions.php
1
<?php
2
3
use Webmozart\PathUtil\Path;
4
5
/**
6
* @param string $path
7
* @return null|string
8
*/
9
function calculateRealPath($path)
10
{
11
if (!$path) {
12
return null;
13
}
14
15
if (strpos($path, 'phar://')===0) {
16
return $path;
17
}
18
19
if (realpath($path)) {
20
return $path;
21
}
22
23
return Path::canonicalize($path);
24
}