Completed
Push — master ( 416831...aecf8c )
by Milan
01:43
created
src/Response/Pay/XMLResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 	 */
60 60
 	private function getValue($path)
61 61
 	{
62
-		$val = $this->xml->xpath($path . '/text()');
62
+		$val = $this->xml->xpath($path.'/text()');
63 63
 		return (string) $val[0];
64 64
 	}
65 65
 
Please login to merge, or discard this patch.
src/Request/Queue.php 3 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 					throw $e;
94 94
 				} elseif ($i >= $this->limitLoop) {
95 95
 					fclose($file);
96
-					throw new Fio\QueueLimitException('You have limit up requests to server ' . $this->limitLoop);
96
+					throw new Fio\QueueLimitException('You have limit up requests to server '.$this->limitLoop);
97 97
 				}
98 98
 				self::sleep($tempFile);
99 99
 				$next = TRUE;
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 	{
121 121
 		$key = substr($token, 10, -10);
122 122
 		if (!isset(self::$tokens[$key])) {
123
-			self::$tokens[$key] = $this->tempDir . DIRECTORY_SEPARATOR . md5($key);
123
+			self::$tokens[$key] = $this->tempDir.DIRECTORY_SEPARATOR.md5($key);
124 124
 		}
125 125
 
126 126
 		return self::$tokens[$key];
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 
129 129
 	private static function safeProtocol($filename)
130 130
 	{
131
-		return Utils\SafeStream::PROTOCOL . '://' . $filename;
131
+		return Utils\SafeStream::PROTOCOL.'://'.$filename;
132 132
 	}
133 133
 
134 134
 }
Please login to merge, or discard this patch.
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.
src/Response/Read/TransactionAbstract.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 		if (array_key_exists($name, $this->properties)) {
28 28
 			return $this->properties[$name];
29 29
 		}
30
-		throw new Fio\TransactionPropertyException('Property does not exists. ' . $name);
30
+		throw new Fio\TransactionPropertyException('Property does not exists. '.$name);
31 31
 	}
32 32
 
33 33
 	public function clearTemporaryValues()
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
 	public function bindProperty($name, $type, $value)
39 39
 	{
40
-		$method = 'set' . ucfirst($name);
40
+		$method = 'set'.ucfirst($name);
41 41
 		if (method_exists($this, $method)) {
42 42
 			$value = $this->{$method}($value);
43 43
 		} elseif ($value !== NULL) {
Please login to merge, or discard this patch.