@@ -9,13 +9,13 @@ |
||
9 | 9 | private $functionSet; |
10 | 10 | private $elementData; |
11 | 11 | private $line; |
12 | - private $filePath; |
|
12 | + private $filePath; |
|
13 | 13 | |
14 | 14 | public function __construct(\Transphporm\FunctionSet $functionSet, \Transphporm\Hook\ElementData $elementData, &$line, \Transphporm\FilePath $filePath) { |
15 | 15 | $this->functionSet = $functionSet; |
16 | 16 | $this->elementData = $elementData; |
17 | 17 | $this->line = &$line; |
18 | - $this->filePath = $filePath; |
|
18 | + $this->filePath = $filePath; |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | public function run(array $values, \DomElement $element, array $rules, \Transphporm\Hook\PseudoMatcher $pseudoMatcher, array $properties = []) { |
@@ -17,7 +17,7 @@ |
||
17 | 17 | private $functionSet; |
18 | 18 | |
19 | 19 | public function __construct(array $rules, &$configLine, $file, $line, PseudoMatcher $pseudoMatcher, |
20 | - \Transphporm\Parser\Value $valueParser, \Transphporm\FunctionSet $functionSet, \Transphporm\FilePath $filePath) { |
|
20 | + \Transphporm\Parser\Value $valueParser, \Transphporm\FunctionSet $functionSet, \Transphporm\FilePath $filePath) { |
|
21 | 21 | $this->rules = $rules; |
22 | 22 | $this->configLine = &$configLine; |
23 | 23 | $this->file = $file; |
@@ -2,20 +2,20 @@ |
||
2 | 2 | namespace Transphporm; |
3 | 3 | |
4 | 4 | class FilePath { |
5 | - private $baseDir; |
|
6 | - private $customBase; |
|
5 | + private $baseDir; |
|
6 | + private $customBase; |
|
7 | 7 | |
8 | - public function __construct($customBase = null) { |
|
9 | - $this->baseDir = ""; |
|
10 | - if ($customBase === null) $this->customBase = getcwd(); |
|
11 | - else $this->customBase = rtrim($customBase, '/'); |
|
12 | - } |
|
8 | + public function __construct($customBase = null) { |
|
9 | + $this->baseDir = ""; |
|
10 | + if ($customBase === null) $this->customBase = getcwd(); |
|
11 | + else $this->customBase = rtrim($customBase, '/'); |
|
12 | + } |
|
13 | 13 | |
14 | - public function setBaseDir($baseDir) { |
|
15 | - $this->baseDir = $baseDir; |
|
16 | - } |
|
14 | + public function setBaseDir($baseDir) { |
|
15 | + $this->baseDir = $baseDir; |
|
16 | + } |
|
17 | 17 | |
18 | - public function getFilePath($filePath = "") { |
|
18 | + public function getFilePath($filePath = "") { |
|
19 | 19 | if (isset($filePath[0]) && $filePath[0] == "/") return $this->customBase . $filePath; |
20 | 20 | else return $this->baseDir . $filePath; |
21 | 21 | } |