@@ -48,7 +48,7 @@  | 
                                                    ||
| 48 | 48 | |
| 49 | 49 | $client = static::createClient();  | 
                                                        
| 50 | 50 | |
| 51 | -        $client->request('GET', '/themenfeld/'.$topic->getId()); | 
                                                        |
| 51 | +        $client->request('GET', '/themenfeld/' . $topic->getId()); | 
                                                        |
| 52 | 52 | |
| 53 | 53 | $response = $client->getResponse();  | 
                                                        
| 54 | 54 | |
@@ -48,9 +48,9 @@  | 
                                                    ||
| 48 | 48 | */  | 
                                                        
| 49 | 49 | public function testImportAction(): void  | 
                                                        
| 50 | 50 |      { | 
                                                        
| 51 | - $teststorySourcePath = __DIR__.'/../Fixtures/teststory.html';  | 
                                                        |
| 51 | + $teststorySourcePath = __DIR__ . '/../Fixtures/teststory.html';  | 
                                                        |
| 52 | 52 | @mkdir(self::TMP_PATH);  | 
                                                        
| 53 | - $teststoryPath = self::TMP_PATH.'teststory.html';  | 
                                                        |
| 53 | + $teststoryPath = self::TMP_PATH . 'teststory.html';  | 
                                                        |
| 54 | 54 | copy($teststorySourcePath, $teststoryPath);  | 
                                                        
| 55 | 55 | |
| 56 | 56 | $licensee = new Licensee();  | 
                                                        
@@ -152,7 +152,7 @@  | 
                                                    ||
| 152 | 152 | */  | 
                                                        
| 153 | 153 | public function decorateArbitraryId(Textnode $object): void  | 
                                                        
| 154 | 154 |      { | 
                                                        
| 155 | - $arbitraryId = substr(md5(time().$object->getTwineId().substr($object->getText(), 0, 100)), 0, 15);  | 
                                                        |
| 155 | + $arbitraryId = substr(md5(time() . $object->getTwineId() . substr($object->getText(), 0, 100)), 0, 15);  | 
                                                        |
| 156 | 156 |          $exists = count($this->findBy(array('arbitraryId' => $arbitraryId))) > 0; | 
                                                        
| 157 | 157 | |
| 158 | 158 |          if ($exists) { | 
                                                        
@@ -67,7 +67,7 @@ discard block  | 
                                                    ||
| 67 | 67 | return new Response(\json_encode([]));  | 
                                                        
| 68 | 68 | }  | 
                                                        
| 69 | 69 | |
| 70 | - $output = [] ;  | 
                                                        |
| 70 | + $output = [];  | 
                                                        |
| 71 | 71 | /* @var $topic \DembeloMain\Document\Topic */  | 
                                                        
| 72 | 72 |          foreach ($topics as $topic) { | 
                                                        
| 73 | 73 | $item = [];  | 
                                                        
@@ -98,7 +98,7 @@ discard block  | 
                                                    ||
| 98 | 98 | $searchString = $filter['value'];  | 
                                                        
| 99 | 99 | |
| 100 | 100 | /* @var $topics \DembeloMain\Document\Topic[] */  | 
                                                        
| 101 | -        $topics = $this->topicRepository->findBy(array('name' => new \MongoRegex('/'.$searchString.'/')), null, 10); | 
                                                        |
| 101 | +        $topics = $this->topicRepository->findBy(array('name' => new \MongoRegex('/' . $searchString . '/')), null, 10); | 
                                                        |
| 102 | 102 | |
| 103 | 103 | $output = [];  | 
                                                        
| 104 | 104 |          foreach ($topics as $topic) { | 
                                                        
@@ -130,8 +130,8 @@ discard block  | 
                                                    ||
| 130 | 130 | return new Response(\json_encode($output));  | 
                                                        
| 131 | 131 | }  | 
                                                        
| 132 | 132 |          $directory = $request->query->get('topic_image_directory'); | 
                                                        
| 133 | -        $filename = md5(uniqid('', true).$file['name']); | 
                                                        |
| 134 | - move_uploaded_file($file["tmp_name"], $directory.$filename);  | 
                                                        |
| 133 | +        $filename = md5(uniqid('', true) . $file['name']); | 
                                                        |
| 134 | + move_uploaded_file($file["tmp_name"], $directory . $filename);  | 
                                                        |
| 135 | 135 | $output['imageFileName'] = $filename;  | 
                                                        
| 136 | 136 | $output['originalImageName'] = $file['name'];  | 
                                                        
| 137 | 137 | |
@@ -85,7 +85,7 @@ discard block  | 
                                                    ||
| 85 | 85 | $obj->access = $textnode->getAccess() ? 'ja' : 'nein';  | 
                                                        
| 86 | 86 | $obj->licensee = $licenseeIndex[$textnode->getLicenseeId()];  | 
                                                        
| 87 | 87 | $obj->importfile = $importfileIndex[$textnode->getImportfileId()] ?? 'unbekannt';  | 
                                                        
| 88 | - $obj->beginning = substr(htmlentities(strip_tags($textnode->getText())), 0, 200).'...';  | 
                                                        |
| 88 | + $obj->beginning = substr(htmlentities(strip_tags($textnode->getText())), 0, 200) . '...';  | 
                                                        |
| 89 | 89 | $obj->financenode = $textnode->isFinanceNode() ? 'ja' : 'nein';  | 
                                                        
| 90 | 90 | $obj->arbitraryId = $textnode->getArbitraryId();  | 
                                                        
| 91 | 91 | $obj->twineId = $textnode->getTwineId();  | 
                                                        
@@ -117,7 +117,7 @@ discard block  | 
                                                    ||
| 117 | 117 | $arbitraryId = $hitch->getTargetTextnode()->getArbitraryId();  | 
                                                        
| 118 | 118 | }  | 
                                                        
| 119 | 119 | |
| 120 | - $string .= $counter.') '.$hitch->getDescription().' ['.$arbitraryId.']'."\n";  | 
                                                        |
| 120 | + $string .= $counter . ') ' . $hitch->getDescription() . ' [' . $arbitraryId . ']' . "\n";  | 
                                                        |
| 121 | 121 | }  | 
                                                        
| 122 | 122 | |
| 123 | 123 | return $string;  | 
                                                        
@@ -146,7 +146,7 @@ discard block  | 
                                                    ||
| 146 | 146 |      { | 
                                                        
| 147 | 147 | $string = '';  | 
                                                        
| 148 | 148 |          foreach ($metadata as $key => $value) { | 
                                                        
| 149 | - $string .= $key.': '.$value."\n";  | 
                                                        |
| 149 | + $string .= $key . ': ' . $value . "\n";  | 
                                                        |
| 150 | 150 | }  | 
                                                        
| 151 | 151 | |
| 152 | 152 | return $string;  |