|
@@ -43,7 +43,7 @@ discard block |
|
|
block discarded – undo |
|
43
|
43
|
*/ |
|
44
|
44
|
public function get(ApiKey $apiKey): int |
|
45
|
45
|
{ |
|
46
|
|
- $filename = $this->path . '/'. $this->generateFilename($apiKey); |
|
|
46
|
+ $filename = $this->path . '/' . $this->generateFilename($apiKey); |
|
47
|
47
|
$this->checkNonceFile($filename); |
|
48
|
48
|
|
|
49
|
49
|
return (int) file_get_contents($filename); |
|
@@ -54,7 +54,7 @@ discard block |
|
|
block discarded – undo |
|
54
|
54
|
*/ |
|
55
|
55
|
public function increase(ApiKey $apiKey): void |
|
56
|
56
|
{ |
|
57
|
|
- $filename = $this->path . '/'. $this->generateFilename($apiKey); |
|
|
57
|
+ $filename = $this->path . '/' . $this->generateFilename($apiKey); |
|
58
|
58
|
$this->checkNonceFile($filename); |
|
59
|
59
|
|
|
60
|
60
|
file_put_contents($filename, (int) file_get_contents($filename) + 1); |
Please login to merge, or discard this patch.