@@ -24,7 +24,7 @@ |
||
24 | 24 | if (is_file($tss)) { |
25 | 25 | $this->file = $tss; |
26 | 26 | $this->rules = $this->cache->load($tss); |
27 | - $this->filePath->setBaseDir(dirname(realpath($tss)) . DIRECTORY_SEPARATOR); |
|
27 | + $this->filePath->setBaseDir(dirname(realpath($tss)).DIRECTORY_SEPARATOR); |
|
28 | 28 | if (empty($this->rules)) $tss = file_get_contents($tss); |
29 | 29 | else return; |
30 | 30 | } |
@@ -145,7 +145,7 @@ |
||
145 | 145 | $string = $this->extractString($i); |
146 | 146 | $length = strlen($string)+1; |
147 | 147 | $char = $this->getChar($char); |
148 | - $string = str_replace('\\' . $char, $char, $string); |
|
148 | + $string = str_replace('\\'.$char, $char, $string); |
|
149 | 149 | $tokens[] = ['type' => self::STRING, 'value' => $string, 'line' => $this->lineNo]; |
150 | 150 | return $length; |
151 | 151 | } |