@@ -26,6 +26,9 @@ discard block |
||
| 26 | 26 | /** @var string */ |
| 27 | 27 | private $tempDir; |
| 28 | 28 | |
| 29 | + /** |
|
| 30 | + * @param string $tempDir |
|
| 31 | + */ |
|
| 29 | 32 | public function __construct($tempDir) |
| 30 | 33 | { |
| 31 | 34 | $this->tempDir = $tempDir; |
@@ -93,7 +96,7 @@ discard block |
||
| 93 | 96 | |
| 94 | 97 | /** |
| 95 | 98 | * @param $token |
| 96 | - * @param $fallback |
|
| 99 | + * @param \Closure $fallback |
|
| 97 | 100 | * @return ResponseInterface |
| 98 | 101 | * @throws Fio\QueueLimitException |
| 99 | 102 | * @throws Fio\ServiceUnavailableException |
@@ -151,6 +154,9 @@ discard block |
||
| 151 | 154 | } |
| 152 | 155 | } |
| 153 | 156 | |
| 157 | + /** |
|
| 158 | + * @param string $filename |
|
| 159 | + */ |
|
| 154 | 160 | private static function sleep($filename) |
| 155 | 161 | { |
| 156 | 162 | $criticalTime = time() - filemtime($filename); |
@@ -173,6 +179,9 @@ discard block |
||
| 173 | 179 | return self::$tokens[$key]; |
| 174 | 180 | } |
| 175 | 181 | |
| 182 | + /** |
|
| 183 | + * @param string $filename |
|
| 184 | + */ |
|
| 176 | 185 | private static function safeProtocol($filename) |
| 177 | 186 | { |
| 178 | 187 | return Utils\SafeStream::PROTOCOL . '://' . $filename; |