@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | $source = static::$client->getResponse()->getContent(); |
53 | 53 | |
54 | 54 | // create paths |
55 | - $tempDirPath = __DIR__ . static::$TEMP_PATH; |
|
56 | - $tempFilePath = $tempDirPath . 'simple' . '.' . $format; |
|
55 | + $tempDirPath = __DIR__.static::$TEMP_PATH; |
|
56 | + $tempFilePath = $tempDirPath.'simple'.'.'.$format; |
|
57 | 57 | |
58 | 58 | // save source |
59 | 59 | static::$fileSystem->dumpFile($tempFilePath, $source); |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | throw new InvalidArgumentException(); |
74 | 74 | } |
75 | 75 | |
76 | - return $reader->load(__DIR__ . static::$TEMP_PATH . 'simple' . '.' . $format); |
|
76 | + return $reader->load(__DIR__.static::$TEMP_PATH.'simple'.'.'.$format); |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | // |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | public static function setUpBeforeClass() |
114 | 114 | { |
115 | 115 | static::$fileSystem = new Filesystem(); |
116 | - static::$fileSystem->remove(__DIR__ . static::$TEMP_PATH); |
|
116 | + static::$fileSystem->remove(__DIR__.static::$TEMP_PATH); |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | /** |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | public static function tearDownAfterClass() |
124 | 124 | { |
125 | 125 | if (in_array(getenv('DELETE_TEMP_FILES'), ['true', '1', 1, true], true)) { |
126 | - static::$fileSystem->remove(__DIR__ . static::$TEMP_PATH); |
|
126 | + static::$fileSystem->remove(__DIR__.static::$TEMP_PATH); |
|
127 | 127 | } |
128 | 128 | } |
129 | 129 | } |
@@ -299,7 +299,7 @@ |
||
299 | 299 | */ |
300 | 300 | public function testDocumentTemplate($format) |
301 | 301 | { |
302 | - $document = $this->getDocument('documentTemplate.' . $format, $format); |
|
302 | + $document = $this->getDocument('documentTemplate.'.$format, $format); |
|
303 | 303 | static::assertNotNull($document, 'Document does not exist'); |
304 | 304 | |
305 | 305 | $sheet = $document->getSheet(0); |
@@ -60,11 +60,11 @@ discard block |
||
60 | 60 | $appVariable->setRequestStack($requestStack); |
61 | 61 | |
62 | 62 | // generate source from template |
63 | - $source = static::$environment->loadTemplate($templateName . '.twig')->render(['app' => $appVariable]); |
|
63 | + $source = static::$environment->loadTemplate($templateName.'.twig')->render(['app' => $appVariable]); |
|
64 | 64 | |
65 | 65 | // create paths |
66 | - $tempDirPath = __DIR__ . static::$TEMP_PATH; |
|
67 | - $tempFilePath = $tempDirPath . $templateName . '.' . $format; |
|
66 | + $tempDirPath = __DIR__.static::$TEMP_PATH; |
|
67 | + $tempFilePath = $tempDirPath.$templateName.'.'.$format; |
|
68 | 68 | |
69 | 69 | // save source |
70 | 70 | static::$fileSystem->dumpFile($tempFilePath, $source); |
@@ -107,12 +107,12 @@ discard block |
||
107 | 107 | { |
108 | 108 | static::$fileSystem = new Filesystem(); |
109 | 109 | |
110 | - $twigFileSystem = new Twig_Loader_Filesystem([__DIR__ . static::$RESOURCE_PATH]); |
|
111 | - $twigFileSystem->addPath( __DIR__ . static::$TEMPLATE_PATH, 'templates'); |
|
110 | + $twigFileSystem = new Twig_Loader_Filesystem([__DIR__.static::$RESOURCE_PATH]); |
|
111 | + $twigFileSystem->addPath(__DIR__.static::$TEMPLATE_PATH, 'templates'); |
|
112 | 112 | |
113 | 113 | static::$environment = new Twig_Environment($twigFileSystem, ['strict_variables' => true]); |
114 | 114 | static::$environment->addExtension(new TwigExcelExtension()); |
115 | - static::$environment->setCache(__DIR__ . static::$TEMP_PATH); |
|
115 | + static::$environment->setCache(__DIR__.static::$TEMP_PATH); |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | /** |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | public static function tearDownAfterClass() |
123 | 123 | { |
124 | 124 | if (in_array(getenv('DELETE_TEMP_FILES'), ['true', '1', 1, true], true)) { |
125 | - static::$fileSystem->remove(__DIR__ . static::$TEMP_PATH); |
|
125 | + static::$fileSystem->remove(__DIR__.static::$TEMP_PATH); |
|
126 | 126 | } |
127 | 127 | } |
128 | 128 | } |