@@ -12,13 +12,13 @@ |
||
12 | 12 | |
13 | 13 | if ($this->isJsonFile($json)) { |
14 | 14 | $path = $this->filePath->getFilePath($json); |
15 | - if (!file_exists($path)) throw new \Exception('File does not exist at: ' . $path); |
|
15 | + if (!file_exists($path)) throw new \Exception('File does not exist at: '.$path); |
|
16 | 16 | $json = file_get_contents($path); |
17 | 17 | } |
18 | 18 | |
19 | 19 | $map = json_decode($json, true); |
20 | 20 | |
21 | - if (!is_array($map)) throw new \Exception('Could not decode json: ' . json_last_error_msg()); |
|
21 | + if (!is_array($map)) throw new \Exception('Could not decode json: '.json_last_error_msg()); |
|
22 | 22 | |
23 | 23 | return $map; |
24 | 24 | } |
@@ -24,7 +24,7 @@ |
||
24 | 24 | if (is_file($tss)) { |
25 | 25 | $this->file = $tss; |
26 | 26 | $this->rules = $this->cache->load($tss); |
27 | - $baseDir = dirname(realpath($tss)) . DIRECTORY_SEPARATOR; |
|
27 | + $baseDir = dirname(realpath($tss)).DIRECTORY_SEPARATOR; |
|
28 | 28 | if (empty($this->rules)) $tss = file_get_contents($tss); |
29 | 29 | else return; |
30 | 30 | } |
@@ -12,7 +12,7 @@ |
||
12 | 12 | } |
13 | 13 | |
14 | 14 | public function getFilePath($filePath = "") { |
15 | - if (isset($filePath[0]) && $filePath[0] == "/") return $this->customBase . $filePath; |
|
16 | - else return $this->baseDir . $filePath; |
|
15 | + if (isset($filePath[0]) && $filePath[0] == "/") return $this->customBase.$filePath; |
|
16 | + else return $this->baseDir.$filePath; |
|
17 | 17 | } |
18 | 18 | } |