@@ -45,12 +45,12 @@ discard block |
||
| 45 | 45 | $source = static::$client->getResponse()->getContent(); |
| 46 | 46 | |
| 47 | 47 | // create source directory if necessary |
| 48 | - if (!file_exists(__DIR__ . static::$TEMP_PATH)) { |
|
| 49 | - mkdir(__DIR__ . static::$TEMP_PATH); |
|
| 48 | + if (!file_exists(__DIR__.static::$TEMP_PATH)) { |
|
| 49 | + mkdir(__DIR__.static::$TEMP_PATH); |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | // save source |
| 53 | - file_put_contents(__DIR__ . static::$TEMP_PATH . 'simple' . '.' . $format, $source); |
|
| 53 | + file_put_contents(__DIR__.static::$TEMP_PATH.'simple'.'.'.$format, $source); |
|
| 54 | 54 | |
| 55 | 55 | // load source |
| 56 | 56 | switch ($format) { |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | throw new InvalidArgumentException(); |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | - return $reader->load(__DIR__ . static::$TEMP_PATH . 'simple' . '.' . $format); |
|
| 70 | + return $reader->load(__DIR__.static::$TEMP_PATH.'simple'.'.'.$format); |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | // |
@@ -86,8 +86,8 @@ discard block |
||
| 86 | 86 | { |
| 87 | 87 | try { |
| 88 | 88 | $fs = new Filesystem(); |
| 89 | - $fs->remove(__DIR__ . static::$TEMP_PATH); |
|
| 90 | - } catch(\Exception $e) { |
|
| 89 | + $fs->remove(__DIR__.static::$TEMP_PATH); |
|
| 90 | + } catch (\Exception $e) { |
|
| 91 | 91 | if (!in_array(getenv('IGNORE_DELETE_EXCEPTIONS'), ['true', '1', 1, true], true)) { |
| 92 | 92 | throw $e; |
| 93 | 93 | } |
@@ -105,8 +105,8 @@ discard block |
||
| 105 | 105 | if (in_array(getenv('DELETE_TEMP_FILES'), ['true', '1', 1, true], true)) { |
| 106 | 106 | try { |
| 107 | 107 | $fs = new Filesystem(); |
| 108 | - $fs->remove(__DIR__ . static::$TEMP_PATH); |
|
| 109 | - } catch(\Exception $e) { |
|
| 108 | + $fs->remove(__DIR__.static::$TEMP_PATH); |
|
| 109 | + } catch (\Exception $e) { |
|
| 110 | 110 | if (!in_array(getenv('IGNORE_DELETE_EXCEPTIONS'), ['true', '1', 1, true], true)) { |
| 111 | 111 | throw $e; |
| 112 | 112 | } |