@@ -246,6 +246,6 @@ |
||
| 246 | 246 | throw new InvalidArgumentException(sprintf('Target path %s is not writeable.', $directory)); |
| 247 | 247 | } |
| 248 | 248 | |
| 249 | - return realpath($directory).'/'.substr($path, strrpos(str_replace('\\', '/', $path), '/') + 1); |
|
| 249 | + return realpath($directory) . '/' . substr($path, strrpos(str_replace('\\', '/', $path), '/') + 1); |
|
| 250 | 250 | } |
| 251 | 251 | } |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | return null; |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | - if (substr($this->original, strrpos(str_replace('\\', '/', $this->original), '/') + 1) === $this->target) { |
|
| 90 | + if (substr($this->original, strrpos(str_replace('\\', '/', $this->original), '/') + 1) === $this->target) { |
|
| 91 | 91 | return dirname($this->original); |
| 92 | 92 | } |
| 93 | 93 | } |
@@ -67,6 +67,7 @@ |
||
| 67 | 67 | * Locate the target for a string. |
| 68 | 68 | * |
| 69 | 69 | * @param String $resource |
| 70 | + * @param string $context |
|
| 70 | 71 | * |
| 71 | 72 | * @return String |
| 72 | 73 | * |