Completed
Push — master ( 202c22...ec9255 )
by Milan
02:27
created
src/Driver/Cnb/Day.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 		if ($date === null) {
59 59
 			return $url;
60 60
 		}
61
-		return $url . '?date=' . urlencode($date->format('d.m.Y'));
61
+		return $url.'?date='.urlencode($date->format('d.m.Y'));
62 62
 	}
63 63
 
64 64
 }
Please login to merge, or discard this patch.
src/Caching/Cache.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 	{
90 90
 		$listRates = $driver->download($date, $this->allowedCurrencies);
91 91
 
92
-		file_put_contents(Utils\SafeStream::PROTOCOL . '://' . $file->getPathname(), serialize($listRates));
92
+		file_put_contents(Utils\SafeStream::PROTOCOL.'://'.$file->getPathname(), serialize($listRates));
93 93
 		if (self::isFileCurrent($file)) {
94 94
 			touch($file->getPathname(), $this->getRefresh());
95 95
 		}
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 	{
103 103
 		if ($this->isFileValid($file)) {
104 104
 			Utils\FileSystem::createDir($file->getPath(), 0755);
105
-			$handle = fopen(Utils\SafeStream::PROTOCOL . '://' . $this->temp . DIRECTORY_SEPARATOR . 'lock', 'w');
105
+			$handle = fopen(Utils\SafeStream::PROTOCOL.'://'.$this->temp.DIRECTORY_SEPARATOR.'lock', 'w');
106 106
 
107 107
 			if ($this->isFileValid($file)) {
108 108
 				$listRate = $this->saveCurrencies($driver, $file, $date);
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 	private function getRefresh()
131 131
 	{
132 132
 		if (!is_int($this->refresh)) {
133
-			$this->refresh = (int) (new \DateTime('today ' . $this->refresh))->format('U');
133
+			$this->refresh = (int) (new \DateTime('today '.$this->refresh))->format('U');
134 134
 			if (time() >= $this->refresh) {
135 135
 				$this->refresh += Utils\DateTime::DAY;
136 136
 			}
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 	private function createFileInfo(Driver\ADriver $driver, \DateTime $date = null)
143 143
 	{
144 144
 		$filename = $date === null ? self::FILE_CURRENT : $date->format('Y-m-d');
145
-		return new \SplFileInfo($this->temp . DIRECTORY_SEPARATOR . $driver->getName() . DIRECTORY_SEPARATOR . $filename);
145
+		return new \SplFileInfo($this->temp.DIRECTORY_SEPARATOR.$driver->getName().DIRECTORY_SEPARATOR.$filename);
146 146
 	}
147 147
 
148 148
 
Please login to merge, or discard this patch.
src/Exchange.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@
 block discarded – undo
177 177
 		if ($this->getListRates()->offsetExists($index)) {
178 178
 			return $this->getListRates()->offsetGet($index);
179 179
 		}
180
-		throw new UnknownCurrencyException('Undefined currency code: "' . $index . '".');
180
+		throw new UnknownCurrencyException('Undefined currency code: "'.$index.'".');
181 181
 	}
182 182
 
183 183
 
Please login to merge, or discard this patch.