@@ -76,7 +76,7 @@ |
||
| 76 | 76 | */ |
| 77 | 77 | private static function requireFile($mapFileName) |
| 78 | 78 | { |
| 79 | - if (! isset(self::$memoizedMapData[$mapFileName])) { |
|
| 79 | + if (!isset(self::$memoizedMapData[$mapFileName])) { |
|
| 80 | 80 | self::$memoizedMapData[$mapFileName] = require $mapFileName; |
| 81 | 81 | } |
| 82 | 82 | return self::$memoizedMapData[$mapFileName]; |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | |
| 29 | 29 | private function writeSubMaps(CurrencyInfoKeys $currencyInfoKeys) |
| 30 | 30 | { |
| 31 | - array_map(function ($infoType) { |
|
| 31 | + array_map(function($infoType) { |
|
| 32 | 32 | $this->writeExport($this->getSubMapFileName($infoType), $this->getSubTypeMap($infoType)); |
| 33 | 33 | }, $currencyInfoKeys->get()); |
| 34 | 34 | } |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | private function assertStaticMethodWasCalledWithParams($methodName, ...$expectedArgs) |
| 36 | 36 | { |
| 37 | - if (! isset(self::$staticMethodCalls[$methodName])) { |
|
| 37 | + if (!isset(self::$staticMethodCalls[$methodName])) { |
|
| 38 | 38 | $this->fail(sprintf('Static method "%s" was not called', $methodName)); |
| 39 | 39 | } |
| 40 | 40 | $message = 'Expected static method call arguments do not match'; |
@@ -47,8 +47,8 @@ |
||
| 47 | 47 | { |
| 48 | 48 | $infoTypeKeys = ['foo', 'bar']; |
| 49 | 49 | $source = [ |
| 50 | - ['foo' => 'BAZ', 'bar' => 2,], |
|
| 51 | - ['foo' => 'QUX', 'bar' => 3,], |
|
| 50 | + ['foo' => 'BAZ', 'bar' => 2, ], |
|
| 51 | + ['foo' => 'QUX', 'bar' => 3, ], |
|
| 52 | 52 | ]; |
| 53 | 53 | |
| 54 | 54 | /** @var CurrencyInfoKeys|\PHPUnit_Framework_MockObject_MockObject $stubCurrencyInfoKeys */ |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | { |
| 44 | 44 | $testSource = ['foo' => ['bar' => 'buz']]; |
| 45 | 45 | $fileName = tempnam(sys_get_temp_dir(), 'test-'); |
| 46 | - register_shutdown_function(function () use ($fileName) { |
|
| 46 | + register_shutdown_function(function() use ($fileName) { |
|
| 47 | 47 | @unlink($fileName); |
| 48 | 48 | }); |
| 49 | 49 | file_put_contents($fileName, json_encode($testSource)); |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | { |
| 61 | 61 | $euroInfo = CurrencyInfo::getMapForCurrency('EUR'); |
| 62 | 62 | $currencyInfoKeys = new CurrencyInfoKeys(); |
| 63 | - array_map(function ($infoKey) use ($euroInfo) { |
|
| 63 | + array_map(function($infoKey) use ($euroInfo) { |
|
| 64 | 64 | $this->assertArrayHasKey($infoKey, $euroInfo); |
| 65 | 65 | }, $currencyInfoKeys->get()); |
| 66 | 66 | } |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | { |
| 61 | 61 | $euroInfo = CurrencyInfo::getMapForCurrency('EUR'); |
| 62 | 62 | $currencyInfoKeys = new CurrencyInfoKeys(); |
| 63 | - array_map(function ($infoKey) use ($euroInfo) { |
|
| 63 | + array_map(function($infoKey) use ($euroInfo) { |
|
| 64 | 64 | $this->assertArrayHasKey($infoKey, $euroInfo); |
| 65 | 65 | }, $currencyInfoKeys->get()); |
| 66 | 66 | } |