@@ -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 | } |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | public function defaultAction($templateName) |
22 | 22 | { |
23 | 23 | return $this->render( |
24 | - '@Test/Default/' . $templateName . '.twig', |
|
24 | + '@Test/Default/'.$templateName.'.twig', |
|
25 | 25 | [ |
26 | 26 | 'data' => [ |
27 | 27 | ['name' => 'Everette Grim', 'salary' => 5458.0], |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | { |
59 | 59 | $response = new Response( |
60 | 60 | $this->render( |
61 | - '@Test/Default/' . $templateName . '.twig', |
|
61 | + '@Test/Default/'.$templateName.'.twig', |
|
62 | 62 | [ |
63 | 63 | 'data' => [ |
64 | 64 | ['name' => 'Everette Grim', 'salary' => 5458.0], |