Completed
Pull Request — master (#450)
by Michael
11:54 queued 06:04
created
www/src/DembeloMain/IntegrationTests/Controller/DefaultControllerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/AdminBundle/IntegrationTests/Controller/ImportfileControllerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,9 +48,9 @@
 block discarded – undo
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();
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.
www/src/AdminBundle/Controller/TopicController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
www/src/AdminBundle/Controller/TextnodeController.php 1 patch
Spacing   +3 added lines, -3 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();
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
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
 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.