@@ -45,7 +45,6 @@ discard block |
||
45 | 45 | protected $logger; |
46 | 46 | |
47 | 47 | /** |
48 | - * @param LoggerInterface $cache |
|
49 | 48 | * @param string[] $options |
50 | 49 | */ |
51 | 50 | public function __construct(LoggerInterface $logger = null, array $options = []) |
@@ -142,6 +141,9 @@ discard block |
||
142 | 141 | return $this->results; |
143 | 142 | } |
144 | 143 | |
144 | + /** |
|
145 | + * @param string $text |
|
146 | + */ |
|
145 | 147 | private function calcCacheKey($text) |
146 | 148 | { |
147 | 149 | return sha1($text); |
@@ -118,7 +118,7 @@ |
||
118 | 118 | mkdir($fileName, 0755, true); |
119 | 119 | } |
120 | 120 | |
121 | - $fileName .= '/' . $result->getCacheKey() . '.mp3'; |
|
121 | + $fileName .= '/' . $result->getCacheKey() . '.mp3'; |
|
122 | 122 | } else { |
123 | 123 | $fileName = tempnam(sys_get_temp_dir(), 'tts-') . '.mp3'; |
124 | 124 | } |