@@ -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 | } |