Completed
Push — bug/414-up-button-leaves-readp... ( 65711c...0272f7 )
by Michael
10:12
created
www/src/AdminBundle/Controller/TextnodeController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
www/src/DembeloMain/Model/Repository/Doctrine/ODM/TextNodeRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.