@@ -51,11 +51,11 @@ discard block |
||
51 | 51 | $appVariable->setRequestStack($requestStack); |
52 | 52 | |
53 | 53 | // generate source from template |
54 | - $source = static::$environment->loadTemplate($templateName . '.twig')->render(['app' => $appVariable]); |
|
54 | + $source = static::$environment->loadTemplate($templateName.'.twig')->render(['app' => $appVariable]); |
|
55 | 55 | |
56 | 56 | // create paths |
57 | - $tempDirPath = __DIR__ . static::$TEMP_PATH; |
|
58 | - $tempFilePath = $tempDirPath . $templateName . '.' . $format; |
|
57 | + $tempDirPath = __DIR__.static::$TEMP_PATH; |
|
58 | + $tempFilePath = $tempDirPath.$templateName.'.'.$format; |
|
59 | 59 | |
60 | 60 | // create source directory if necessary |
61 | 61 | if (!file_exists($tempDirPath)) { |
@@ -100,9 +100,9 @@ discard block |
||
100 | 100 | */ |
101 | 101 | public static function setUpBeforeClass() |
102 | 102 | { |
103 | - static::$environment = new Twig_Environment(new Twig_Loader_Filesystem(__DIR__ . static::$RESOURCE_PATH), ['strict_variables' => true]); |
|
103 | + static::$environment = new Twig_Environment(new Twig_Loader_Filesystem(__DIR__.static::$RESOURCE_PATH), ['strict_variables' => true]); |
|
104 | 104 | static::$environment->addExtension(new TwigExcelExtension()); |
105 | - static::$environment->setCache(__DIR__ . static::$TEMP_PATH); |
|
105 | + static::$environment->setCache(__DIR__.static::$TEMP_PATH); |
|
106 | 106 | } |
107 | 107 | |
108 | 108 | /** |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | public static function tearDownAfterClass() |
112 | 112 | { |
113 | 113 | if (in_array(getenv('DELETE_TEMP_FILES'), ['true', '1', 1, true], true)) { |
114 | - exec('rm -rf ' . __DIR__ . static::$TEMP_PATH); |
|
114 | + exec('rm -rf '.__DIR__.static::$TEMP_PATH); |
|
115 | 115 | } |
116 | 116 | } |
117 | 117 | } |