@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | $data = new stdClass(); |
34 | 34 | $data->file = 'route'; |
35 | 35 | $data->text = $route; |
36 | - $text = (new Translate())->data( $data)->target()->response(); |
|
36 | + $text = (new Translate())->data($data)->target()->response(); |
|
37 | 37 | $this->setIndex(str_replace($matches[0][$key], $text->translate, $this->getIndex())); |
38 | 38 | } |
39 | 39 | } |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | $data = new stdClass(); |
49 | 49 | $data->file = $fileTranslator; |
50 | 50 | $data->text = $matches[1][$key]; |
51 | - $text = (new Translate())->data( $data)->target()->response(); |
|
51 | + $text = (new Translate())->data($data)->target()->response(); |
|
52 | 52 | $this->setIndex(str_replace($matches[0][$key], $text->translate, $this->getIndex())); |
53 | 53 | } |
54 | 54 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | $this->setIndex(file_get_contents(TEMPLATE_PATH . "/{$this->getThemeIndex()}/$index.{$this->getExt()}")); |
16 | 16 | $this->page(); |
17 | 17 | $this->route(); |
18 | - $this->text($this->getThemeIndex(). '_'. str_replace("/","_", $pathFile)); |
|
19 | - $this->text($this->getThemePage(). '_'. str_replace("/","_", $pathFile)); |
|
18 | + $this->text($this->getThemeIndex() . '_' . str_replace("/", "_", $pathFile)); |
|
19 | + $this->text($this->getThemePage() . '_' . str_replace("/", "_", $pathFile)); |
|
20 | 20 | } |
21 | 21 | } |
22 | 22 | \ No newline at end of file |