@@ -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(); |
@@ -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; |
@@ -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) { |