Completed
Pull Request — master (#438)
by Michael
16:12 queued 09:26
created
www/src/AdminBundle/Command/ImportCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -155,13 +155,13 @@  discard block
 block discarded – undo
155 155
         $this->prepare($input);
156 156
 
157 157
         if (file_exists($this->twineArchivePath) !== true) {
158
-            $this->output->writeln("<error>Parameter 'twine-archive-file': File '".$this->twineArchivePath."' doesn't exist.</error>");
158
+            $this->output->writeln("<error>Parameter 'twine-archive-file': File '" . $this->twineArchivePath . "' doesn't exist.</error>");
159 159
 
160 160
             return -1;
161 161
         }
162 162
 
163 163
         if (is_readable($this->twineArchivePath) !== true) {
164
-            $this->output->writeln("<error>Parameter 'twine-archive-file': File '".$this->twineArchivePath."' isn't readable.</error>");
164
+            $this->output->writeln("<error>Parameter 'twine-archive-file': File '" . $this->twineArchivePath . "' isn't readable.</error>");
165 165
 
166 166
             return -1;
167 167
         }
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
 
181 181
             $this->importfileRepository->save($importfile);
182 182
         } catch (\Exception $ex) {
183
-            $output->writeln('<error>'.$ex->getMessage().'</error>');
183
+            $output->writeln('<error>' . $ex->getMessage() . '</error>');
184 184
 
185 185
             $this->importTwine->parserFree();
186 186
 
Please login to merge, or discard this patch.
www/src/AdminBundle/Tests/Service/TwineImport/FileCheckTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
     public function testCheckWithLeadingEmptySpaces(): void
63 63
     {
64 64
         $this->fileHandlerMock->method('read')
65
-            ->willReturn('  '."\n".'<tw-storydata hurz');
65
+            ->willReturn('  ' . "\n" . '<tw-storydata hurz');
66 66
 
67 67
         $fileCheck = new FileCheck();
68 68
         $returnValue = $fileCheck->check($this->fileHandlerMock, 'someFileName');
Please login to merge, or discard this patch.