Completed
Push — master ( 416831...aecf8c )
by Milan
01:43
created
src/Request/Queue.php 2 patches
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -25,6 +25,9 @@  discard block
 block discarded – undo
25 25
 	/** @var string */
26 26
 	private $tempDir;
27 27
 
28
+	/**
29
+	 * @param string $tempDir
30
+	 */
28 31
 	public function __construct($tempDir)
29 32
 	{
30 33
 		$this->tempDir = $tempDir;
@@ -76,6 +79,9 @@  discard block
 block discarded – undo
76 79
 		return new Pay\XMLResponse($response->getContents());
77 80
 	}
78 81
 
82
+	/**
83
+	 * @param \Closure $fallback
84
+	 */
79 85
 	private function request($token, $fallback)
80 86
 	{
81 87
 		$request = new GuzzleHttp\Client(['headers' => ['X-Powered-By' => 'h4kuna/fio']]);
@@ -104,6 +110,9 @@  discard block
 block discarded – undo
104 110
 		return $response->getBody();
105 111
 	}
106 112
 
113
+	/**
114
+	 * @param string $filename
115
+	 */
107 116
 	private static function sleep($filename)
108 117
 	{
109 118
 		$criticalTime = time() - filemtime($filename);
@@ -126,6 +135,9 @@  discard block
 block discarded – undo
126 135
 		return self::$tokens[$key];
127 136
 	}
128 137
 
138
+	/**
139
+	 * @param string $filename
140
+	 */
129 141
 	private static function safeProtocol($filename)
130 142
 	{
131 143
 		return Utils\SafeStream::PROTOCOL . '://' . $filename;
Please login to merge, or discard this patch.
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace h4kuna\Fio\Request;
4 4
 
5
-use GuzzleHttp,
6
-	h4kuna\Fio,
7
-	h4kuna\Fio\Response\Pay,
8
-	Nette\Utils;
5
+use GuzzleHttp;
6
+use h4kuna\Fio;
7
+use h4kuna\Fio\Response\Pay;
8
+use Nette\Utils;
9 9
 
10 10
 class Queue implements IQueue
11 11
 {
Please login to merge, or discard this patch.