Passed
Push — master ( 8a46f0...a5d170 )
by Mark
02:24
created
lib/sioc_dokuwiki.php 1 patch
Spacing   +54 added lines, -54 removed lines patch added patch discarded remove patch
@@ -108,9 +108,9 @@  discard block
 block discarded – undo
108 108
 
109 109
     public function getContent(&$exp): string
110 110
     {
111
-        $rdf = '<' . $this->type . " rdf:about=\"" . clean($this->url, true) . "\">\n";
111
+        $rdf = '<'.$this->type." rdf:about=\"".clean($this->url, true)."\">\n";
112 112
         if ($this->subject) {
113
-            $rdf .= "    <dc:title>" . clean($this->subject) . "</dc:title>\n";
113
+            $rdf .= "    <dc:title>".clean($this->subject)."</dc:title>\n";
114 114
             // if(strcmp($this->has_container, 'http://en.wikipedia.org')===0)
115 115
             //    $rdf .= "    <foaf:primaryTopic rdf:resource=\"".clean('http://dbpedia.org/resource/'
116 116
             //      .$this->subject)."\"/>\n";
@@ -121,14 +121,14 @@  discard block
 block discarded – undo
121 121
         if (count($this->contributors) > 0) {
122 122
             foreach ($this->contributors as $cont_id => $cont_name) {
123 123
                 if (!isset($this->creator['sioc:modifier']) || ($this->creator['sioc:modifier'] != $cont_id)) {
124
-                    $rdf .= "    <sioc:has_modifier rdf:resource=\"" . normalizeUri(
124
+                    $rdf .= "    <sioc:has_modifier rdf:resource=\"".normalizeUri(
125 125
                             $exp->siocURL('user', $cont_id)
126
-                        ) . "\" rdfs:label=\"" . clean($cont_name) . "\"/>\n";
126
+                        )."\" rdfs:label=\"".clean($cont_name)."\"/>\n";
127 127
                 }
128 128
             }
129 129
 
130 130
             if (isset($this->contributors[$this->creator['sioc:modifier']])) {
131
-                $creator_name = 'rdfs:label="' . clean($this->contributors[$this->creator['sioc:modifier']]) . '"';
131
+                $creator_name = 'rdfs:label="'.clean($this->contributors[$this->creator['sioc:modifier']]).'"';
132 132
             }
133 133
         }
134 134
 
@@ -137,44 +137,44 @@  discard block
 block discarded – undo
137 137
             //     $rdf .= "    <foaf:maker rdf:resource=\"".clean($this->creator['foaf:maker'])."\"/>\n";
138 138
             if ($this->creator['sioc:modifier']) {
139 139
                 if ($this->is_creator === false) {
140
-                    $rdf .= "    <sioc:has_modifier rdf:resource=\"" . normalizeUri(
140
+                    $rdf .= "    <sioc:has_modifier rdf:resource=\"".normalizeUri(
141 141
                             $exp->siocURL('user', $this->creator['sioc:modifier'])
142
-                        ) . "\" $creator_name/>\n";
142
+                        )."\" $creator_name/>\n";
143 143
                 }
144 144
                 if ($this->is_creator === true) {
145
-                    $rdf .= "    <sioc:has_creator rdf:resource=\"" . normalizeUri(
145
+                    $rdf .= "    <sioc:has_creator rdf:resource=\"".normalizeUri(
146 146
                             $exp->siocURL('user', $this->creator['sioc:modifier'])
147
-                        ) . "\" $creator_name/>\n";
147
+                        )."\" $creator_name/>\n";
148 148
                 }
149 149
             }
150 150
         }
151 151
 
152 152
         if ($this->created) {
153
-            $rdf .= "    <dcterms:created>" . $this->created . "</dcterms:created>\n";
153
+            $rdf .= "    <dcterms:created>".$this->created."</dcterms:created>\n";
154 154
         }
155 155
 
156 156
         if ($this->modified) {
157
-            $rdf .= "    <dcterms:modified>" . $this->modified . "</dcterms:modified>\n";
157
+            $rdf .= "    <dcterms:modified>".$this->modified."</dcterms:modified>\n";
158 158
         }
159 159
 
160 160
         if ($this->has_space) {
161
-            $rdf .= "    <sioc:has_space rdf:resource=\"" . clean($this->has_space, true) . "\" />\n";
161
+            $rdf .= "    <sioc:has_space rdf:resource=\"".clean($this->has_space, true)."\" />\n";
162 162
             // TODO: rdfs:label
163 163
         }
164 164
 
165 165
         if ($this->has_container) {
166
-            $rdf .= "    <sioc:has_container rdf:resource=\"" . normalizeUri(
166
+            $rdf .= "    <sioc:has_container rdf:resource=\"".normalizeUri(
167 167
                     $exp->siocURL('container', $this->has_container)
168
-                ) . "\" />\n";
168
+                )."\" />\n";
169 169
             // TODO: rdfs:label
170 170
         }
171 171
 
172 172
         if ($this->content) {
173
-            $rdf .= "    <sioc:content><![CDATA[" . pureContent($this->content) . "]]></sioc:content>\n";
173
+            $rdf .= "    <sioc:content><![CDATA[".pureContent($this->content)."]]></sioc:content>\n";
174 174
         }
175 175
 
176 176
         if ($this->content_encoded) {
177
-            $rdf .= "    <content:encoded><![CDATA[" . $this->content_encoded . "]]></content:encoded>\n";
177
+            $rdf .= "    <content:encoded><![CDATA[".$this->content_encoded."]]></content:encoded>\n";
178 178
         }
179 179
 
180 180
         /*
@@ -195,9 +195,9 @@  discard block
 block discarded – undo
195 195
         if (is_array($this->links) && count($this->links) > 0) {
196 196
             foreach ($this->links as $link_id => $link_exists) {
197 197
                 if ($link_exists && !isHiddenPage($link_id)) {
198
-                    $rdf .= "    <sioc:links_to rdf:resource=\"" . normalizeUri(
198
+                    $rdf .= "    <sioc:links_to rdf:resource=\"".normalizeUri(
199 199
                             $exp->siocURL('post', $link_id)
200
-                        ) . "\"/>\n";
200
+                        )."\"/>\n";
201 201
                     // TODO: rdfs:label
202 202
                 }
203 203
             }
@@ -206,9 +206,9 @@  discard block
 block discarded – undo
206 206
         if (count($this->backlinks) > 0) {
207 207
             foreach ($this->backlinks as $link_id) {
208 208
                 if (!isHiddenPage($link_id)) {
209
-                    $rdf .= "    <dcterms:isReferencedBy rdf:resource=\"" . normalizeUri(
209
+                    $rdf .= "    <dcterms:isReferencedBy rdf:resource=\"".normalizeUri(
210 210
                             $exp->siocURL('post', $link_id)
211
-                        ) . "\"/>\n";
211
+                        )."\"/>\n";
212 212
                     // TODO: rdfs:label
213 213
                 }
214 214
             }
@@ -223,48 +223,48 @@  discard block
 block discarded – undo
223 223
         */
224 224
 
225 225
         if ($this->previous_version) {
226
-            $rdf .= "    <sioc:previous_version rdf:resource=\"" . normalizeUri(
226
+            $rdf .= "    <sioc:previous_version rdf:resource=\"".normalizeUri(
227 227
                     $exp->siocURL(
228 228
                         'post',
229
-                        $this->id . $exp->_urlseparator . 'rev' . $exp->_urlequal . $this->previous_version
229
+                        $this->id.$exp->_urlseparator.'rev'.$exp->_urlequal.$this->previous_version
230 230
                     )
231
-                ) . "\"/>\n";
231
+                )."\"/>\n";
232 232
             // TODO: rdfs:label
233 233
 
234 234
             /* If there is support for inference and transitivity the following is not needed */
235
-            $rdf .= "    <sioc:earlier_version rdf:resource=\"" . normalizeUri(
235
+            $rdf .= "    <sioc:earlier_version rdf:resource=\"".normalizeUri(
236 236
                     $exp->siocURL(
237 237
                         'post',
238
-                        $this->id . $exp->_urlseparator . 'rev' . $exp->_urlequal . $this->previous_version
238
+                        $this->id.$exp->_urlseparator.'rev'.$exp->_urlequal.$this->previous_version
239 239
                     )
240
-                ) . "\"/>\n";
240
+                )."\"/>\n";
241 241
             // TODO: rdfs:label
242 242
 
243 243
         }
244 244
 
245 245
         if ($this->next_version) {
246
-            $rdf .= "    <sioc:next_version rdf:resource=\"" . normalizeUri(
246
+            $rdf .= "    <sioc:next_version rdf:resource=\"".normalizeUri(
247 247
                     $exp->siocURL(
248 248
                         'post',
249
-                        $this->id . $exp->_urlseparator . 'rev' . $exp->_urlequal . $this->next_version
249
+                        $this->id.$exp->_urlseparator.'rev'.$exp->_urlequal.$this->next_version
250 250
                     )
251
-                ) . "\"/>\n";
251
+                )."\"/>\n";
252 252
             // TODO: rdfs:label
253 253
 
254 254
             /* If there is support for inference and transitivity the following is not needed */
255
-            $rdf .= "    <sioc:later_version rdf:resource=\"" . normalizeUri(
255
+            $rdf .= "    <sioc:later_version rdf:resource=\"".normalizeUri(
256 256
                     $exp->siocURL(
257 257
                         'post',
258
-                        $this->id . $exp->_urlseparator . 'rev' . $exp->_urlequal . $this->next_version
258
+                        $this->id.$exp->_urlseparator.'rev'.$exp->_urlequal.$this->next_version
259 259
                     )
260
-                ) . "\"/>\n";
260
+                )."\"/>\n";
261 261
             // TODO: rdfs:label
262 262
         }
263 263
 
264 264
         if ($this->latest_version) {
265
-            $rdf .= "    <sioc:latest_version rdf:resource=\"" . normalizeUri(
265
+            $rdf .= "    <sioc:latest_version rdf:resource=\"".normalizeUri(
266 266
                     $exp->siocURL('post', $this->id)
267
-                ) . "\"/>\n";
267
+                )."\"/>\n";
268 268
             // TODO: rdfs:label
269 269
         }
270 270
 
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
         }
293 293
         */
294 294
 
295
-        $rdf .= "</" . $this->type . ">\n";
295
+        $rdf .= "</".$this->type.">\n";
296 296
         return $rdf;
297 297
     }
298 298
 }
@@ -332,41 +332,41 @@  discard block
 block discarded – undo
332 332
                 $this->email = $email;
333 333
                 $this->sha1  = sha1($email);
334 334
             } else {
335
-                $this->email = "mailto:" . $email;
336
-                $this->sha1  = sha1("mailto:" . $email);
335
+                $this->email = "mailto:".$email;
336
+                $this->sha1  = sha1("mailto:".$email);
337 337
             }
338 338
         }
339 339
     }
340 340
 
341 341
     public function getContent(&$exp): string
342 342
     {
343
-        $rdf = "<sioc:UserAccount rdf:about=\"" . clean($this->url, true) . "\">\n";
343
+        $rdf = "<sioc:UserAccount rdf:about=\"".clean($this->url, true)."\">\n";
344 344
         if ($this->nick) {
345
-            $rdf .= "    <sioc:name>" . clean($this->nick) . "</sioc:name>\n";
345
+            $rdf .= "    <sioc:name>".clean($this->nick)."</sioc:name>\n";
346 346
         }
347 347
         if ($this->email) {
348 348
             if ($exp->_export_email) {
349
-                $rdf .= "    <sioc:email rdf:resource=\"" . $this->email . "\"/>\n";
349
+                $rdf .= "    <sioc:email rdf:resource=\"".$this->email."\"/>\n";
350 350
             }
351
-            $rdf .= "    <sioc:email_sha1>" . $this->sha1 . "</sioc:email_sha1>\n";
351
+            $rdf .= "    <sioc:email_sha1>".$this->sha1."</sioc:email_sha1>\n";
352 352
         }
353 353
         if ($this->role) {
354 354
             $rdf .= "    <sioc:has_function>\n";
355 355
             $rdf .= "        <sioc:Role>\n";
356
-            $rdf .= "            <sioc:name>" . $this->role . "</sioc:name>\n";
356
+            $rdf .= "            <sioc:name>".$this->role."</sioc:name>\n";
357 357
             $rdf .= "        </sioc:Role>\n";
358 358
             $rdf .= "    </sioc:has_function>\n";
359 359
         }
360 360
         $rdf .= "    <sioc:account_of>\n";
361 361
         $rdf .= "        <foaf:Person>\n";
362 362
         if ($this->name) {
363
-            $rdf .= "            <foaf:name>" . clean($this->name) . "</foaf:name>\n";
363
+            $rdf .= "            <foaf:name>".clean($this->name)."</foaf:name>\n";
364 364
         }
365 365
         if ($this->email) {
366
-            $rdf .= "            <foaf:mbox_sha1sum>" . $this->sha1 . "</foaf:mbox_sha1sum>\n";
366
+            $rdf .= "            <foaf:mbox_sha1sum>".$this->sha1."</foaf:mbox_sha1sum>\n";
367 367
         }
368 368
         if ($this->foaf_url) {
369
-            $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $this->foaf_url . "\"/>\n";
369
+            $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$this->foaf_url."\"/>\n";
370 370
         }
371 371
         $rdf .= "        </foaf:Person>\n";
372 372
         $rdf .= "    </sioc:account_of>\n";
@@ -427,35 +427,35 @@  discard block
 block discarded – undo
427 427
 
428 428
     public function getContent(&$exp): string
429 429
     {
430
-        $rdf = '<' . $this->type . " rdf:about=\"" . normalizeUri(clean($this->url, true)) . "\" >\n";
430
+        $rdf = '<'.$this->type." rdf:about=\"".normalizeUri(clean($this->url, true))."\" >\n";
431 431
 
432 432
         if ($this->title) {
433
-            $rdf .= "    <sioc:name>" . clean($this->title) . "</sioc:name>\n";
433
+            $rdf .= "    <sioc:name>".clean($this->title)."</sioc:name>\n";
434 434
         }
435 435
 
436 436
         if ($this->_has_parent) {
437
-            $rdf .= "    <sioc:has_parent rdf:resource=\"" . normalizeUri(
437
+            $rdf .= "    <sioc:has_parent rdf:resource=\"".normalizeUri(
438 438
                     $exp->siocURL('container', $this->_has_parent)
439
-                ) . "\" />\n";
439
+                )."\" />\n";
440 440
             // TODO: rdfs:label
441 441
         }
442 442
 
443 443
         foreach ($this->posts as $article) {
444 444
             // TODO: test permission before?
445
-            $rdf .= "    <sioc:container_of rdf:resource=\"" . normalizeUri(
445
+            $rdf .= "    <sioc:container_of rdf:resource=\"".normalizeUri(
446 446
                     $exp->siocURL('post', $article['id'])
447
-                ) . "\"/>\n";
447
+                )."\"/>\n";
448 448
             // TODO: inluding title/name
449 449
         }
450 450
 
451 451
         foreach ($this->subcontainers as $container) {
452
-            $rdf .= "    <sioc:parent_of rdf:resource=\"" . normalizeUri(
452
+            $rdf .= "    <sioc:parent_of rdf:resource=\"".normalizeUri(
453 453
                     $exp->siocURL('container', $container['id'])
454
-                ) . "\"/>\n";
454
+                )."\"/>\n";
455 455
             // TODO: inluding title/name
456 456
         }
457 457
 
458
-        $rdf .= "</" . $this->type . ">\n";
458
+        $rdf .= "</".$this->type.">\n";
459 459
         return $rdf;
460 460
     }
461 461
 
Please login to merge, or discard this patch.
_test/general.test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      */
32 32
     public function test_plugininfo(): void
33 33
     {
34
-        $file = __DIR__ . '/../plugin.info.txt';
34
+        $file = __DIR__.'/../plugin.info.txt';
35 35
         $this->assertFileExists($file);
36 36
 
37 37
         $info = confToHash($file);
Please login to merge, or discard this patch.
lib/sioc_inc.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
     public function export($rdf_content = '')
139 139
     {
140 140
         header('Content-Type: application/rdf+xml; charset=' . $this->encoding,
141
-               true, 200);
141
+                true, 200);
142 142
         echo $this->makeRDF($rdf_content);
143 143
     }
144 144
 
Please login to merge, or discard this patch.
Spacing   +159 added lines, -159 removed lines patch added patch discarded remove patch
@@ -112,39 +112,39 @@  discard block
 block discarded – undo
112 112
 
113 113
     public function siocURL($type, $id, $page = "")
114 114
     {
115
-        $type_part = $this->url4type . $this->urlequal . $type;
115
+        $type_part = $this->url4type.$this->urlequal.$type;
116 116
 
117 117
         if ($id) {
118 118
             if (isset($this->type_table[$type])) {
119 119
                 $myID = $this->type_table[$type];
120 120
             } else {
121
-                $myID = (($this->url_usetype) ? $type . '_' : '') . $this->url4id;
121
+                $myID = (($this->url_usetype) ? $type.'_' : '').$this->url4id;
122 122
             }
123 123
 
124
-            $id_part = $this->urlseparator . $myID . $this->urlequal . $id;
124
+            $id_part = $this->urlseparator.$myID.$this->urlequal.$id;
125 125
         } else {
126 126
             $id_part = '';
127 127
         }
128 128
 
129
-        ($page) ? $page_part = $this->urlseparator . $this->url4page . $this->urlequal . $page : $page_part = '';
129
+        ($page) ? $page_part = $this->urlseparator.$this->url4page.$this->urlequal.$page : $page_part = '';
130 130
 
131 131
         ($this->url_suffix && !isset($this->ignore_suffix[$type])) ?
132
-            $suffix = $this->urlseparator . $this->url_suffix : $suffix = '';
132
+            $suffix = $this->urlseparator.$this->url_suffix : $suffix = '';
133 133
 
134
-        $siocURL = $this->sioc_url . $type_part . $id_part . $page_part . $suffix;
134
+        $siocURL = $this->sioc_url.$type_part.$id_part.$page_part.$suffix;
135 135
         return clean($siocURL, true);
136 136
     }
137 137
 
138 138
     public function export($rdf_content = '')
139 139
     {
140
-        header('Content-Type: application/rdf+xml; charset=' . $this->encoding,
140
+        header('Content-Type: application/rdf+xml; charset='.$this->encoding,
141 141
                true, 200);
142 142
         echo $this->makeRDF($rdf_content);
143 143
     }
144 144
 
145 145
     public function makeRDF($rdf_content = '')
146 146
     {
147
-        $rdf = '<?xml version="1.0" encoding="' . $this->encoding . '" ?>' . "\n";
147
+        $rdf = '<?xml version="1.0" encoding="'.$this->encoding.'" ?>'."\n";
148 148
         $rdf .= ' 
149 149
 <rdf:RDF
150 150
     xmlns="http://xmlns.com/foaf/0.1/"
@@ -159,11 +159,11 @@  discard block
 block discarded – undo
159 159
     xmlns:sioc="http://rdfs.org/sioc/ns#"
160 160
     xmlns:sioct="http://rdfs.org/sioc/types#"
161 161
     xmlns:owl="http://www.w3.org/2002/07/owl">
162
-<foaf:Document rdf:about="' . clean($this->profile_url, true) . '">
163
-	<dc:title>"' . clean($this->title) . '" (SIOC profile)</dc:title>
164
-	<foaf:primaryTopic rdf:resource="' . clean($this->objects[0]->_url, true) . '"/>
165
-	<admin:generatorAgent rdf:resource="' . clean($this->generator, true) . '"/>
166
-	<admin:generatorAgent rdf:resource="' . clean(EXPORTER_URL, true) . '?version=' . EXPORTER_VERSION . '"/>
162
+<foaf:Document rdf:about="' . clean($this->profile_url, true).'">
163
+	<dc:title>"' . clean($this->title).'" (SIOC profile)</dc:title>
164
+	<foaf:primaryTopic rdf:resource="' . clean($this->objects[0]->_url, true).'"/>
165
+	<admin:generatorAgent rdf:resource="' . clean($this->generator, true).'"/>
166
+	<admin:generatorAgent rdf:resource="' . clean(EXPORTER_URL, true).'?version='.EXPORTER_VERSION.'"/>
167 167
 </foaf:Document>' . "\n";
168 168
         if ($rdf_content) {
169 169
             $rdf .= $rdf_content;
@@ -261,31 +261,31 @@  discard block
 block discarded – undo
261 261
 
262 262
     public function getContent(&$exp): string
263 263
     {
264
-        $rdf = "<sioc:Site rdf:about=\"" . clean($this->url) . "\">\n";
265
-        $rdf .= "    <dc:title>" . clean($this->name) . "</dc:title>\n";
266
-        $rdf .= "    <dc:description>" . clean($this->description) . "</dc:description>\n";
267
-        $rdf .= "    <sioc:link rdf:resource=\"" . clean($this->url) . "\"/>\n";
264
+        $rdf = "<sioc:Site rdf:about=\"".clean($this->url)."\">\n";
265
+        $rdf .= "    <dc:title>".clean($this->name)."</dc:title>\n";
266
+        $rdf .= "    <dc:description>".clean($this->description)."</dc:description>\n";
267
+        $rdf .= "    <sioc:link rdf:resource=\"".clean($this->url)."\"/>\n";
268 268
         if ($this->forums) {
269 269
             foreach ($this->forums as $id => $url) {
270
-                $rdf .= "    <sioc:host_of rdf:resource=\"" . clean($url) . "\"/>\n";
270
+                $rdf .= "    <sioc:host_of rdf:resource=\"".clean($url)."\"/>\n";
271 271
             }
272 272
         }
273 273
         if ($this->next_forums) {
274
-            $rdf .= "    <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL('site', "", $this->page + 1) . "\"/>\n";
274
+            $rdf .= "    <rdfs:seeAlso rdf:resource=\"".$exp->siocURL('site', "", $this->page + 1)."\"/>\n";
275 275
         }
276 276
         if ($this->usergroup_uri) {
277
-            $rdf .= "    <sioc:has_Usergroup rdf:resource=\"" . $this->usergroup_uri . "\"/>\n";
277
+            $rdf .= "    <sioc:has_Usergroup rdf:resource=\"".$this->usergroup_uri."\"/>\n";
278 278
         } else {
279
-            $rdf .= "    <sioc:has_Usergroup rdf:nodeID=\"" . AUTHORS_NODE . "\"/>\n";
279
+            $rdf .= "    <sioc:has_Usergroup rdf:nodeID=\"".AUTHORS_NODE."\"/>\n";
280 280
         }
281 281
         $rdf .= "</sioc:Site>\n";
282 282
         // Forums
283 283
         if ($this->forums) {
284 284
             $rdf .= "\n";
285 285
             foreach ($this->forums as $id => $url) {
286
-                $rdf .= '<sioc:Forum rdf:about="' . clean($url) . "\">\n";
287
-                $rdf .= "    <sioc:link rdf:resource=\"" . clean($url) . "\"/>\n";
288
-                $rdf .= "    <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL('forum', $id) . "\"/>\n";
286
+                $rdf .= '<sioc:Forum rdf:about="'.clean($url)."\">\n";
287
+                $rdf .= "    <sioc:link rdf:resource=\"".clean($url)."\"/>\n";
288
+                $rdf .= "    <rdfs:seeAlso rdf:resource=\"".$exp->siocURL('forum', $id)."\"/>\n";
289 289
                 $rdf .= "</sioc:Forum>\n";
290 290
             }
291 291
         }
@@ -293,20 +293,20 @@  discard block
 block discarded – undo
293 293
         if ($this->users) {
294 294
             $rdf .= "\n";
295 295
             if ($this->usergroup_uri) {
296
-                $rdf .= '<sioc:UserAccountgroup rdf:about="' . $this->usergroup_uri . "\">\n";
296
+                $rdf .= '<sioc:UserAccountgroup rdf:about="'.$this->usergroup_uri."\">\n";
297 297
             } else {
298
-                $rdf .= '<sioc:UserAccountgroup rdf:nodeID="' . AUTHORS_NODE . "\">\n";
298
+                $rdf .= '<sioc:UserAccountgroup rdf:nodeID="'.AUTHORS_NODE."\">\n";
299 299
             }
300
-            $rdf .= "    <sioc:name>Authors for \"" . clean($this->name) . "\"</sioc:name>\n";
300
+            $rdf .= "    <sioc:name>Authors for \"".clean($this->name)."\"</sioc:name>\n";
301 301
             foreach ($this->users as $id => $url) {
302 302
                 $rdf .= "    <sioc:has_member>\n";
303
-                $rdf .= "        <sioc:UserAccount rdf:about=\"" . clean($url) . "\">\n";
304
-                $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL('user', $id) . "\"/>\n";
303
+                $rdf .= "        <sioc:UserAccount rdf:about=\"".clean($url)."\">\n";
304
+                $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$exp->siocURL('user', $id)."\"/>\n";
305 305
                 $rdf .= "        </sioc:UserAccount>\n";
306 306
                 $rdf .= "    </sioc:has_member>\n";
307 307
             }
308 308
             if ($this->next_users) {
309
-                $rdf .= "    <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL('site', "", $this->page + 1) . "\"/>\n";
309
+                $rdf .= "    <rdfs:seeAlso rdf:resource=\"".$exp->siocURL('site', "", $this->page + 1)."\"/>\n";
310 310
             }
311 311
             $rdf .= "</sioc:UserAccountgroup>\n";
312 312
         }
@@ -360,8 +360,8 @@  discard block
 block discarded – undo
360 360
                 $this->email = $email;
361 361
                 $this->sha1  = sha1($email);
362 362
             } else {
363
-                $this->email = "mailto:" . $email;
364
-                $this->sha1  = sha1("mailto:" . $email);
363
+                $this->email = "mailto:".$email;
364
+                $this->sha1  = sha1("mailto:".$email);
365 365
             }
366 366
         }
367 367
         $this->homepage = $homepage;
@@ -375,36 +375,36 @@  discard block
 block discarded – undo
375 375
 
376 376
     public function getContent(&$exp): string
377 377
     {
378
-        $rdf = "<foaf:Person rdf:about=\"" . clean($this->foaf_uri) . "\">\n";
378
+        $rdf = "<foaf:Person rdf:about=\"".clean($this->foaf_uri)."\">\n";
379 379
         if ($this->name) {
380
-            $rdf .= "    <foaf:name>" . $this->name . "</foaf:name>\n";
380
+            $rdf .= "    <foaf:name>".$this->name."</foaf:name>\n";
381 381
         }
382 382
         if ($this->email) {
383
-            $rdf .= "    <foaf:mbox_sha1sum>" . $this->sha1 . "</foaf:mbox_sha1sum>\n";
383
+            $rdf .= "    <foaf:mbox_sha1sum>".$this->sha1."</foaf:mbox_sha1sum>\n";
384 384
         }
385 385
         if ($this->foaf_url) {
386
-            $rdf .= "    <rdfs:seeAlso rdf:resource=\"" . $this->foaf_url . "\"/>\n";
386
+            $rdf .= "    <rdfs:seeAlso rdf:resource=\"".$this->foaf_url."\"/>\n";
387 387
         }
388 388
         $rdf .= "    <foaf:holdsAccount>\n";
389
-        $rdf .= "        <sioc:UserAccount rdf:about=\"" . clean($this->uri) . "\">\n";
389
+        $rdf .= "        <sioc:UserAccount rdf:about=\"".clean($this->uri)."\">\n";
390 390
         if ($this->nick) {
391
-            $rdf .= "            <sioc:name>" . $this->nick . "</sioc:name>\n";
391
+            $rdf .= "            <sioc:name>".$this->nick."</sioc:name>\n";
392 392
         }
393 393
         if ($this->email) {
394 394
             if ($exp->_export_email) {
395
-                $rdf .= "            <sioc:email rdf:resource=\"" . $this->email . "\"/>\n";
395
+                $rdf .= "            <sioc:email rdf:resource=\"".$this->email."\"/>\n";
396 396
             }
397
-            $rdf .= "            <sioc:email_sha1>" . $this->sha1 . "</sioc:email_sha1>\n";
397
+            $rdf .= "            <sioc:email_sha1>".$this->sha1."</sioc:email_sha1>\n";
398 398
         }
399 399
         if ($this->role) {
400 400
             $rdf .= "            <sioc:has_function>\n";
401 401
             $rdf .= "                <sioc:Role>\n";
402
-            $rdf .= "                    <sioc:name>" . $this->role . "</sioc:name>\n";
402
+            $rdf .= "                    <sioc:name>".$this->role."</sioc:name>\n";
403 403
             $rdf .= "                </sioc:Role>\n";
404 404
             $rdf .= "            </sioc:has_function>\n";
405 405
         }
406 406
         if ($this->sioc_url) {
407
-            $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $this->sioc_url . "\"/>\n";
407
+            $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$this->sioc_url."\"/>\n";
408 408
         }
409 409
         $rdf .= "        </sioc:UserAccount>\n";
410 410
         $rdf .= "    </foaf:holdsAccount>\n";
@@ -478,25 +478,25 @@  discard block
 block discarded – undo
478 478
 
479 479
     public function getContent(&$exp): string
480 480
     {
481
-        $rdf = '<sioc:Thread rdf:about="' . clean($this->url) . "\">\n";
482
-        $rdf .= "    <sioc:link rdf:resource=\"" . clean($this->url) . "\"/>\n";
481
+        $rdf = '<sioc:Thread rdf:about="'.clean($this->url)."\">\n";
482
+        $rdf .= "    <sioc:link rdf:resource=\"".clean($this->url)."\"/>\n";
483 483
         if ($this->views) {
484
-            $rdf .= "    <sioc:num_views>" . $this->views . "</sioc:num_views>\n";
484
+            $rdf .= "    <sioc:num_views>".$this->views."</sioc:num_views>\n";
485 485
         }
486 486
         if ($this->note) {
487
-            $rdf .= "    <rdfs:comment>" . $this->note . "</rdfs:comment>\n";
487
+            $rdf .= "    <rdfs:comment>".$this->note."</rdfs:comment>\n";
488 488
         }
489 489
         if ($this->subject) {
490
-            $rdf .= "    <dc:title>" . $this->subject . "</dc:title>\n";
490
+            $rdf .= "    <dc:title>".$this->subject."</dc:title>\n";
491 491
         }
492 492
         if ($this->created) {
493
-            $rdf .= "    <dcterms:created>" . $this->created . "</dcterms:created>\n";
493
+            $rdf .= "    <dcterms:created>".$this->created."</dcterms:created>\n";
494 494
         }
495 495
         if ($this->parents) {
496 496
             foreach ($this->parents as $id => $uri) {
497 497
                 $rdf .= "    <sioc:has_parent>\n";
498
-                $rdf .= "        <sioc:Forum rdf:about=\"" . clean($uri) . "\">\n";
499
-                $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL('forum', $id) . "\"/>\n";
498
+                $rdf .= "        <sioc:Forum rdf:about=\"".clean($uri)."\">\n";
499
+                $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$exp->siocURL('forum', $id)."\"/>\n";
500 500
                 $rdf .= "        </sioc:Forum>\n";
501 501
                 $rdf .= "    </sioc:has_parent>\n";
502 502
             }
@@ -504,7 +504,7 @@  discard block
 block discarded – undo
504 504
         // here the tags are just used as keywords for dc:subject
505 505
         if ($this->tags) {
506 506
             foreach ($this->tags as $id => $tag) {
507
-                $rdf .= "    <dc:subject>" . $tag . "</dc:subject>\n";
507
+                $rdf .= "    <dc:subject>".$tag."</dc:subject>\n";
508 508
             }
509 509
         }
510 510
         // here the tags are used by creating a tag object with a blank node, with the keyword as moat:name - if you
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
         if ($this->related) {
534 534
             foreach ($this->related as $id => $url) {
535 535
                 $rdf .= "    <sioc:related_to>\n";
536
-                $rdf .= "        <sioc:Thread rdf:about=\"" . clean($url) . "\"/>\n";
536
+                $rdf .= "        <sioc:Thread rdf:about=\"".clean($url)."\"/>\n";
537 537
                 $rdf .= "    </sioc:related_to>\n"; // todo - each topic needs to have a URI
538 538
             }
539 539
         }
@@ -541,20 +541,20 @@  discard block
 block discarded – undo
541 541
         if ($this->posts) {
542 542
             foreach ($this->posts as $id => $data) {
543 543
                 $rdf .= "    <sioc:container_of>\n";
544
-                $rdf .= "        <sioc:Post rdf:about=\"" . clean($data[url]) . "\">\n";
545
-                $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL('post', $id) . "\"/>\n";
544
+                $rdf .= "        <sioc:Post rdf:about=\"".clean($data[url])."\">\n";
545
+                $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$exp->siocURL('post', $id)."\"/>\n";
546 546
                 if ($data[prev]) {
547
-                    $rdf .= "            <sioc:previous_by_date rdf:resource=\"" . clean($data[prev]) . "\"/>\n";
547
+                    $rdf .= "            <sioc:previous_by_date rdf:resource=\"".clean($data[prev])."\"/>\n";
548 548
                 }
549 549
                 if ($data[next]) {
550
-                    $rdf .= "            <sioc:next_by_date rdf:resource=\"" . clean($data[next]) . "\"/>\n";
550
+                    $rdf .= "            <sioc:next_by_date rdf:resource=\"".clean($data[next])."\"/>\n";
551 551
                 }
552 552
                 $rdf .= "        </sioc:Post>\n";
553 553
                 $rdf .= "    </sioc:container_of>\n";
554 554
             }
555 555
         }
556 556
         if ($this->next) {
557
-            $rdf .= "\r<rdfs:seeAlso rdf:resource=\"" . $exp->siocURL('thread', $this->id, $this->page + 1) . "\"/>\n";
557
+            $rdf .= "\r<rdfs:seeAlso rdf:resource=\"".$exp->siocURL('thread', $this->id, $this->page + 1)."\"/>\n";
558 558
         }
559 559
         $rdf .= "</sioc:Thread>\n";
560 560
         return $rdf;
@@ -639,26 +639,26 @@  discard block
 block discarded – undo
639 639
 
640 640
     public function getContent(&$exp): string
641 641
     {
642
-        $rdf = '<' . $this->_type . ' rdf:about="' . clean($this->url) . "\">\n";
642
+        $rdf = '<'.$this->_type.' rdf:about="'.clean($this->url)."\">\n";
643 643
         if ($this->_type != 'sioc:Forum') {
644 644
             $rdf .= "    <rdf:type rdf:resource=\"http://rdfs.org/sioc/ns#Forum\" />\n";
645 645
         }
646
-        $rdf .= "    <sioc:link rdf:resource=\"" . clean($this->url) . "\"/>\n";
646
+        $rdf .= "    <sioc:link rdf:resource=\"".clean($this->url)."\"/>\n";
647 647
         if ($this->blog_title) {
648
-            $rdf .= "    <dc:title>" . $this->blog_title . "</dc:title>\n";
648
+            $rdf .= "    <dc:title>".$this->blog_title."</dc:title>\n";
649 649
         }
650 650
         if ($this->description) {
651
-            $rdf .= "    <dc:description>" . $this->description . "</dc:description>\n";
651
+            $rdf .= "    <dc:description>".$this->description."</dc:description>\n";
652 652
         }
653 653
         if ($this->note) {
654
-            $rdf .= "    <rdfs:comment>" . $this->note . "</rdfs:comment>\n";
654
+            $rdf .= "    <rdfs:comment>".$this->note."</rdfs:comment>\n";
655 655
         }
656 656
 
657 657
         if ($this->parents) {
658 658
             foreach ($this->parents as $id => $uri) {
659 659
                 $rdf .= "    <sioc:has_parent>\n";
660
-                $rdf .= "        <sioc:Forum rdf:about=\"" . clean($uri) . "\">\n";
661
-                $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL('forum', $id) . "\"/>\n";
660
+                $rdf .= "        <sioc:Forum rdf:about=\"".clean($uri)."\">\n";
661
+                $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$exp->siocURL('forum', $id)."\"/>\n";
662 662
                 $rdf .= "        </sioc:Forum>\n";
663 663
                 $rdf .= "    </sioc:has_parent>\n";
664 664
             }
@@ -667,8 +667,8 @@  discard block
 block discarded – undo
667 667
         if ($this->threads) {
668 668
             foreach ($this->threads as $id => $uri) {
669 669
                 $rdf .= "    <sioc:parent_of>\n";
670
-                $rdf .= "        <sioc:Thread rdf:about=\"" . clean($uri) . "\">\n";
671
-                $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL('thread', $id) . "\"/>\n";
670
+                $rdf .= "        <sioc:Thread rdf:about=\"".clean($uri)."\">\n";
671
+                $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$exp->siocURL('thread', $id)."\"/>\n";
672 672
                 $rdf .= "        </sioc:Thread>\n";
673 673
                 $rdf .= "    </sioc:parent_of>\n";
674 674
             }
@@ -677,8 +677,8 @@  discard block
 block discarded – undo
677 677
         if ($this->posts) {
678 678
             foreach ($this->posts as $id => $url) {
679 679
                 $rdf .= "    <sioc:container_of>\n";
680
-                $rdf .= "        <sioc:Post rdf:about=\"" . clean($url) . "\">\n";
681
-                $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL('post', $id) . "\"/>\n";
680
+                $rdf .= "        <sioc:Post rdf:about=\"".clean($url)."\">\n";
681
+                $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$exp->siocURL('post', $id)."\"/>\n";
682 682
                 $rdf .= "        </sioc:Post>\n";
683 683
                 $rdf .= "    </sioc:container_of>\n";
684 684
             }
@@ -687,26 +687,26 @@  discard block
 block discarded – undo
687 687
         if ($this->creator) {
688 688
             if ($this->creator->_id) {
689 689
                 $rdf .= "    <sioc:has_creator>\n";
690
-                $rdf .= "        <sioc:UserAccount rdf:about=\"" . clean($this->creator->_uri) . "\">\n";
690
+                $rdf .= "        <sioc:UserAccount rdf:about=\"".clean($this->creator->_uri)."\">\n";
691 691
                 if ($this->creator->_sioc_url) {
692
-                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $this->creator->_sioc_url . "\"/>\n";
692
+                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$this->creator->_sioc_url."\"/>\n";
693 693
                 } else {
694
-                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL(
694
+                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$exp->siocURL(
695 695
                             'user',
696 696
                             $this->creator->_id
697
-                        ) . "\"/>\n";
697
+                        )."\"/>\n";
698 698
                 }
699 699
                 $rdf .= "        </sioc:UserAccount>\n";
700 700
                 $rdf .= "    </sioc:has_creator>\n";
701 701
                 $rdf .= "    <foaf:maker>\n";
702
-                $rdf .= "        <foaf:Person rdf:about=\"" . clean($this->creator->_foaf_uri) . "\">\n";
702
+                $rdf .= "        <foaf:Person rdf:about=\"".clean($this->creator->_foaf_uri)."\">\n";
703 703
                 if ($this->creator->_foaf_url) {
704
-                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $this->creator->_foaf_url . "\"/>\n";
704
+                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$this->creator->_foaf_url."\"/>\n";
705 705
                 } else {
706
-                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL(
706
+                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$exp->siocURL(
707 707
                             'user',
708 708
                             $this->creator->_id
709
-                        ) . "\"/>\n";
709
+                        )."\"/>\n";
710 710
                 }
711 711
                 $rdf .= "        </foaf:Person>\n";
712 712
                 $rdf .= "    </foaf:maker>\n";
@@ -714,13 +714,13 @@  discard block
 block discarded – undo
714 714
                 $rdf .= "    <foaf:maker>\n";
715 715
                 $rdf .= "        <foaf:Person";
716 716
                 if ($this->creator->_name) {
717
-                    $rdf .= " foaf:name=\"" . $this->creator->_name . "\"";
717
+                    $rdf .= " foaf:name=\"".$this->creator->_name."\"";
718 718
                 }
719 719
                 if ($this->creator->_sha1) {
720
-                    $rdf .= " foaf:mbox_sha1sum=\"" . $this->creator->_sha1 . "\"";
720
+                    $rdf .= " foaf:mbox_sha1sum=\"".$this->creator->_sha1."\"";
721 721
                 }
722 722
                 if ($this->creator->_name) {
723
-                    $rdf .= ">\n<foaf:homepage rdf:resource=\"" . $this->creator->_homepage . "\"/>\n</foaf:Person>\n";
723
+                    $rdf .= ">\n<foaf:homepage rdf:resource=\"".$this->creator->_homepage."\"/>\n</foaf:Person>\n";
724 724
                 } else {
725 725
                     $rdf .= "/>\n";
726 726
                 }
@@ -731,14 +731,14 @@  discard block
 block discarded – undo
731 731
         if ($this->administrator) {
732 732
             if ($this->administrator->_id) {
733 733
                 $rdf .= "    <sioc:has_administrator>\n";
734
-                $rdf .= "        <sioc:UserAccount rdf:about=\"" . clean($this->administrator->_uri) . "\">\n";
734
+                $rdf .= "        <sioc:UserAccount rdf:about=\"".clean($this->administrator->_uri)."\">\n";
735 735
                 if ($this->administrator->_sioc_url) {
736
-                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $this->administrator->_sioc_url . "\"/>\n";
736
+                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$this->administrator->_sioc_url."\"/>\n";
737 737
                 } else {
738
-                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL(
738
+                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$exp->siocURL(
739 739
                             'user',
740 740
                             $this->administrator->_id
741
-                        ) . "\"/>\n";
741
+                        )."\"/>\n";
742 742
                 }
743 743
                 $rdf .= "        </sioc:UserAccount>\n";
744 744
                 $rdf .= "    </sioc:has_administrator>\n";
@@ -746,14 +746,14 @@  discard block
 block discarded – undo
746 746
         }
747 747
         if ($this->links) {
748 748
             foreach ($this->links as $url => $link) {
749
-                $rdf .= "    <sioc:links_to rdfs:label=\"$link\" rdf:resource=\"" . clean($url) . "\"/>\n";
749
+                $rdf .= "    <sioc:links_to rdfs:label=\"$link\" rdf:resource=\"".clean($url)."\"/>\n";
750 750
             }
751 751
         }
752 752
 
753 753
         if ($this->next) {
754
-            $rdf .= "\r<rdfs:seeAlso rdf:resource=\"" . $exp->siocURL('forum', $this->id, $this->page + 1) . "\"/>\n";
754
+            $rdf .= "\r<rdfs:seeAlso rdf:resource=\"".$exp->siocURL('forum', $this->id, $this->page + 1)."\"/>\n";
755 755
         }
756
-        $rdf .= "</" . $this->_type . ">";
756
+        $rdf .= "</".$this->_type.">";
757 757
 
758 758
         return $rdf;
759 759
     }
@@ -822,36 +822,36 @@  discard block
 block discarded – undo
822 822
 
823 823
     public function getContent(&$exp): string
824 824
     {
825
-        $rdf = '<' . $this->_type . " rdf:about=\"" . clean($this->url) . "\">\n";
825
+        $rdf = '<'.$this->_type." rdf:about=\"".clean($this->url)."\">\n";
826 826
         if ($this->_type != 'sioc:Post') {
827 827
             $rdf .= "    <rdf:type rdf:resource=\"http://rdfs.org/sioc/ns#Post\" />\n";
828 828
         }
829 829
         if ($this->subject) {
830
-            $rdf .= "    <dc:title>" . $this->subject . "</dc:title>\n";
830
+            $rdf .= "    <dc:title>".$this->subject."</dc:title>\n";
831 831
         }
832 832
         if ($this->creator) {
833 833
             if ($this->creator->_id) {
834 834
                 $rdf .= "    <sioc:has_creator>\n";
835
-                $rdf .= "        <sioc:UserAccount rdf:about=\"" . clean($this->creator->_uri) . "\">\n";
835
+                $rdf .= "        <sioc:UserAccount rdf:about=\"".clean($this->creator->_uri)."\">\n";
836 836
                 if ($this->creator->_sioc_url) {
837
-                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $this->creator->_sioc_url . "\"/>\n";
837
+                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$this->creator->_sioc_url."\"/>\n";
838 838
                 } else {
839
-                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL(
839
+                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$exp->siocURL(
840 840
                             'user',
841 841
                             $this->creator->_id
842
-                        ) . "\"/>\n";
842
+                        )."\"/>\n";
843 843
                 }
844 844
                 $rdf .= "        </sioc:UserAccount>\n";
845 845
                 $rdf .= "    </sioc:has_creator>\n";
846 846
                 $rdf .= "    <foaf:maker>\n";
847
-                $rdf .= "        <foaf:Person rdf:about=\"" . clean($this->creator->_foaf_uri) . "\">\n";
847
+                $rdf .= "        <foaf:Person rdf:about=\"".clean($this->creator->_foaf_uri)."\">\n";
848 848
                 if ($this->creator->_foaf_url) {
849
-                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $this->creator->_foaf_url . "\"/>\n";
849
+                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$this->creator->_foaf_url."\"/>\n";
850 850
                 } else {
851
-                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL(
851
+                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$exp->siocURL(
852 852
                             'user',
853 853
                             $this->creator->_id
854
-                        ) . "\"/>\n";
854
+                        )."\"/>\n";
855 855
                 }
856 856
                 $rdf .= "        </foaf:Person>\n";
857 857
                 $rdf .= "    </foaf:maker>\n";
@@ -859,48 +859,48 @@  discard block
 block discarded – undo
859 859
                 $rdf .= "    <foaf:maker>\n";
860 860
                 $rdf .= "        <foaf:Person";
861 861
                 if ($this->creator->_name) {
862
-                    $rdf .= " foaf:name=\"" . $this->creator->_name . "\"";
862
+                    $rdf .= " foaf:name=\"".$this->creator->_name."\"";
863 863
                 }
864 864
                 if ($this->creator->_sha1) {
865
-                    $rdf .= " foaf:mbox_sha1sum=\"" . $this->creator->_sha1 . "\"";
865
+                    $rdf .= " foaf:mbox_sha1sum=\"".$this->creator->_sha1."\"";
866 866
                 }
867 867
                 if ($this->creator->_name) {
868
-                    $rdf .= ">\n<foaf:homepage rdf:resource=\"" . $this->creator->_homepage . "\"/>\n</foaf:Person>\n";
868
+                    $rdf .= ">\n<foaf:homepage rdf:resource=\"".$this->creator->_homepage."\"/>\n</foaf:Person>\n";
869 869
                 } else {
870 870
                     $rdf .= "/>\n";
871 871
                 }
872 872
                 $rdf .= "    </foaf:maker>\n";
873 873
             }
874 874
         }
875
-        $rdf .= "    <dcterms:created>" . $this->created . "</dcterms:created>\n";
875
+        $rdf .= "    <dcterms:created>".$this->created."</dcterms:created>\n";
876 876
         if ($this->updated and ($this->created != $this->updated)) {
877
-            $rdf .= "    <dcterms:modified>" . $this->updated . "</dcterms:modified>\n";
877
+            $rdf .= "    <dcterms:modified>".$this->updated."</dcterms:modified>\n";
878 878
         }
879
-        $rdf .= "    <sioc:content>" . pureContent($this->content) . "</sioc:content>\n";
879
+        $rdf .= "    <sioc:content>".pureContent($this->content)."</sioc:content>\n";
880 880
 
881
-        $rdf .= "    <content:encoded><![CDATA[" . $this->encoded . "]]></content:encoded>\n";
881
+        $rdf .= "    <content:encoded><![CDATA[".$this->encoded."]]></content:encoded>\n";
882 882
         if ($this->topics) {
883 883
             foreach ($this->topics as $url => $topic) {
884
-                $rdf .= "    <sioc:topic rdfs:label=\"$topic\" rdf:resource=\"" . clean($url) . "\"/>\n";
884
+                $rdf .= "    <sioc:topic rdfs:label=\"$topic\" rdf:resource=\"".clean($url)."\"/>\n";
885 885
             }
886 886
         }
887 887
         if ($this->links) {
888 888
             foreach ($this->links as $url => $link) {
889
-                $rdf .= "    <sioc:links_to rdfs:label=\"$link\" rdf:resource=\"" . clean($url) . "\"/>\n";
889
+                $rdf .= "    <sioc:links_to rdfs:label=\"$link\" rdf:resource=\"".clean($url)."\"/>\n";
890 890
             }
891 891
         }
892 892
         if ($this->has_part) {
893 893
             foreach ($this->has_part as $id => $url) {
894 894
                 $rdf .= "    <dcterms:hasPart>\n";
895
-                $rdf .= "        <dcmitype:Image rdf:about=\"" . clean($url) . "\"/>\n";
895
+                $rdf .= "        <dcmitype:Image rdf:about=\"".clean($url)."\"/>\n";
896 896
                 $rdf .= "    </dcterms:hasPart>\n";
897 897
             }
898 898
         }
899 899
         if ($this->reply_of) {
900 900
             foreach ($this->reply_of as $id => $url) {
901 901
                 $rdf .= "    <sioc:reply_of>\n";
902
-                $rdf .= "        <sioc:Post rdf:about=\"" . clean($url) . "\">\n";
903
-                $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL('post', $id) . "\"/>\n";
902
+                $rdf .= "        <sioc:Post rdf:about=\"".clean($url)."\">\n";
903
+                $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$exp->siocURL('post', $id)."\"/>\n";
904 904
                 $rdf .= "        </sioc:Post>\n";
905 905
                 $rdf .= "    </sioc:reply_of>\n";
906 906
             }
@@ -908,16 +908,16 @@  discard block
 block discarded – undo
908 908
         if ($this->comments) {
909 909
             foreach ($this->comments as $id => $url) {
910 910
                 $rdf .= "    <sioc:has_reply>\n";
911
-                $rdf .= "        <sioc:Post rdf:about=\"" . clean($url) . "\">\n";
911
+                $rdf .= "        <sioc:Post rdf:about=\"".clean($url)."\">\n";
912 912
                 //        if($comments->f('comment_trackback')) $rdf .= "            <sioc:type>"
913 913
                 // . POST_TRACKBACK . "</sioc:type>\n";
914 914
                 //        else $rdf .= "            <sioc:type>" . POST_COMMENT  . "</sioc:type>\n";
915
-                $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL('comment', $id) . "\"/>\n";
915
+                $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$exp->siocURL('comment', $id)."\"/>\n";
916 916
                 $rdf .= "        </sioc:Post>\n";
917 917
                 $rdf .= "    </sioc:has_reply>\n";
918 918
             }
919 919
         }
920
-        $rdf .= "</" . $this->_type . ">\n";
920
+        $rdf .= "</".$this->_type.">\n";
921 921
         return $rdf;
922 922
     }
923 923
 }
@@ -983,13 +983,13 @@  discard block
 block discarded – undo
983 983
 
984 984
     public function getContent(&$exp): string
985 985
     {
986
-        $rdf = '<' . $this->_type . " rdf:about=\"" . clean($this->url) . "\">\n";
986
+        $rdf = '<'.$this->_type." rdf:about=\"".clean($this->url)."\">\n";
987 987
         if ($this->subject) {
988
-            $rdf .= "    <dc:title>" . clean($this->subject) . "</dc:title>\n";
988
+            $rdf .= "    <dc:title>".clean($this->subject)."</dc:title>\n";
989 989
             if (strcmp($this->has_container, 'http://en.wikipedia.org') === 0) {
990
-                $rdf .= "    <foaf:primaryTopic rdf:resource=\"" . clean(
991
-                        'http://dbpedia.org/resource/' . $this->subject
992
-                    ) . "\"/>\n";
990
+                $rdf .= "    <foaf:primaryTopic rdf:resource=\"".clean(
991
+                        'http://dbpedia.org/resource/'.$this->subject
992
+                    )."\"/>\n";
993 993
             }
994 994
         }
995 995
         if ($this->creator->_nick) {
@@ -1012,17 +1012,17 @@  discard block
 block discarded – undo
1012 1012
                 $rdf .= "    </foaf:maker>\n";
1013 1013
             } else {*/
1014 1014
             $rdf .= "    <sioc:has_creator>\n";
1015
-            $rdf .= "        <sioc:UserAccount rdf:about=\"" . clean($this->creator->_uri) . "\">\n";
1016
-            $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . clean(
1017
-                    'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki=' . $this->creator->_uri
1015
+            $rdf .= "        <sioc:UserAccount rdf:about=\"".clean($this->creator->_uri)."\">\n";
1016
+            $rdf .= "            <rdfs:seeAlso rdf:resource=\"".clean(
1017
+                    'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki='.$this->creator->_uri
1018 1018
                 );
1019 1019
             if ($this->api) {
1020
-                $rdf .= clean("&api=" . $this->api);
1020
+                $rdf .= clean("&api=".$this->api);
1021 1021
             }
1022 1022
             $rdf .= "\"/>\n";
1023 1023
             $rdf .= "        </sioc:UserAccount>\n";
1024 1024
             $rdf .= "    </sioc:has_creator>\n";
1025
-            $rdf .= "    <dc:contributor>" . clean($this->creator->_nick) . "</dc:contributor>\n";
1025
+            $rdf .= "    <dc:contributor>".clean($this->creator->_nick)."</dc:contributor>\n";
1026 1026
             /*$rdf .= "    <foaf:maker>\n";
1027 1027
             $rdf .= "        <foaf:Person";
1028 1028
             if($this->creator->name) $rdf .= " foaf:name=\"" . $this->creator->name ."\"";
@@ -1041,17 +1041,17 @@  discard block
 block discarded – undo
1041 1041
             }
1042 1042
         }
1043 1043
         if ($this->created) {
1044
-            $rdf .= "    <dcterms:created>" . $this->created . "</dcterms:created>\n";
1044
+            $rdf .= "    <dcterms:created>".$this->created."</dcterms:created>\n";
1045 1045
         }
1046 1046
         if (is_array($this->topics)) {
1047 1047
             foreach ($this->topics as $topic => $url) {
1048 1048
                 $rdf .= "    <sioc:topic>\n";
1049
-                $rdf .= "        <sioct:Category rdf:about=\"" . clean($url) . "\">\n";
1050
-                $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . clean(
1051
-                        'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki=' . $url
1049
+                $rdf .= "        <sioct:Category rdf:about=\"".clean($url)."\">\n";
1050
+                $rdf .= "            <rdfs:seeAlso rdf:resource=\"".clean(
1051
+                        'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki='.$url
1052 1052
                     );
1053 1053
                 if ($this->api) {
1054
-                    $rdf .= clean("&api=" . $this->api);
1054
+                    $rdf .= clean("&api=".$this->api);
1055 1055
                 }
1056 1056
                 $rdf .= "\"/>\n";
1057 1057
                 $rdf .= "        </sioct:Category>\n";
@@ -1061,12 +1061,12 @@  discard block
 block discarded – undo
1061 1061
         if (is_array($this->links)) {
1062 1062
             foreach ($this->links as $label => $url) {
1063 1063
                 $rdf .= "    <sioc:links_to>\n";
1064
-                $rdf .= "        <sioct:WikiArticle rdf:about=\"" . clean($url) . "\">\n";
1065
-                $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . clean(
1066
-                        'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki=' . $url
1064
+                $rdf .= "        <sioct:WikiArticle rdf:about=\"".clean($url)."\">\n";
1065
+                $rdf .= "            <rdfs:seeAlso rdf:resource=\"".clean(
1066
+                        'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki='.$url
1067 1067
                     );
1068 1068
                 if ($this->api) {
1069
-                    $rdf .= clean("&api=" . $this->api);
1069
+                    $rdf .= clean("&api=".$this->api);
1070 1070
                 }
1071 1071
                 $rdf .= "\"/>\n";
1072 1072
                 $rdf .= "        </sioct:WikiArticle>\n";
@@ -1075,12 +1075,12 @@  discard block
 block discarded – undo
1075 1075
         } else {
1076 1076
             if ($this->links) {
1077 1077
                 $rdf .= "    <sioc:links_to>\n";
1078
-                $rdf .= "        <sioct:WikiArticle rdf:about=\"" . clean($this->links) . "\">\n";
1079
-                $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . clean(
1080
-                        'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki=' . $this->links
1078
+                $rdf .= "        <sioct:WikiArticle rdf:about=\"".clean($this->links)."\">\n";
1079
+                $rdf .= "            <rdfs:seeAlso rdf:resource=\"".clean(
1080
+                        'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki='.$this->links
1081 1081
                     );
1082 1082
                 if ($this->api) {
1083
-                    $rdf .= clean("&api=" . $this->api);
1083
+                    $rdf .= clean("&api=".$this->api);
1084 1084
                 }
1085 1085
                 $rdf .= "\"/>\n";
1086 1086
                 $rdf .= "        </sioct:WikiArticle>\n";
@@ -1089,17 +1089,17 @@  discard block
 block discarded – undo
1089 1089
         }
1090 1090
         if (is_array($this->ext_links)) {
1091 1091
             foreach ($this->ext_links as $label => $url) {
1092
-                $rdf .= "    <sioc:links_to rdf:resource=\"" . clean($url) . "\"/>\n";
1092
+                $rdf .= "    <sioc:links_to rdf:resource=\"".clean($url)."\"/>\n";
1093 1093
             }
1094 1094
         }
1095 1095
         if ($this->previous_version) {
1096 1096
             $rdf .= "    <sioc:previous_version>\n";
1097
-            $rdf .= "        <sioct:WikiArticle rdf:about=\"" . clean($this->previous_version) . "\">\n";
1098
-            $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . clean(
1099
-                    'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki=' . $this->previous_version
1097
+            $rdf .= "        <sioct:WikiArticle rdf:about=\"".clean($this->previous_version)."\">\n";
1098
+            $rdf .= "            <rdfs:seeAlso rdf:resource=\"".clean(
1099
+                    'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki='.$this->previous_version
1100 1100
                 );
1101 1101
             if ($this->api) {
1102
-                $rdf .= clean("&api=" . $this->api);
1102
+                $rdf .= clean("&api=".$this->api);
1103 1103
             }
1104 1104
             $rdf .= "\"/>\n";
1105 1105
             $rdf .= "        </sioct:WikiArticle>\n";
@@ -1119,12 +1119,12 @@  discard block
 block discarded – undo
1119 1119
         }
1120 1120
         if ($this->next_version) {
1121 1121
             $rdf .= "    <sioc:next_version>\n";
1122
-            $rdf .= "        <sioct:WikiArticle rdf:about=\"" . clean($this->next_version) . "\">\n";
1123
-            $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . clean(
1124
-                    'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki=' . $this->next_version
1122
+            $rdf .= "        <sioct:WikiArticle rdf:about=\"".clean($this->next_version)."\">\n";
1123
+            $rdf .= "            <rdfs:seeAlso rdf:resource=\"".clean(
1124
+                    'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki='.$this->next_version
1125 1125
                 );
1126 1126
             if ($this->api) {
1127
-                $rdf .= clean("&api=" . $this->api);
1127
+                $rdf .= clean("&api=".$this->api);
1128 1128
             }
1129 1129
             $rdf .= "\"/>\n";
1130 1130
             $rdf .= "        </sioct:WikiArticle>\n";
@@ -1144,12 +1144,12 @@  discard block
 block discarded – undo
1144 1144
         }
1145 1145
         if ($this->latest_version) {
1146 1146
             $rdf .= "    <sioc:latest_version>\n";
1147
-            $rdf .= "        <sioct:WikiArticle rdf:about=\"" . clean($this->latest_version) . "\">\n";
1148
-            $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . clean(
1149
-                    'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki=' . $this->latest_version
1147
+            $rdf .= "        <sioct:WikiArticle rdf:about=\"".clean($this->latest_version)."\">\n";
1148
+            $rdf .= "            <rdfs:seeAlso rdf:resource=\"".clean(
1149
+                    'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki='.$this->latest_version
1150 1150
                 );
1151 1151
             if ($this->api) {
1152
-                $rdf .= clean("&api=" . $this->api);
1152
+                $rdf .= clean("&api=".$this->api);
1153 1153
             }
1154 1154
             $rdf .= "\"/>\n";
1155 1155
             $rdf .= "        </sioct:WikiArticle>\n";
@@ -1157,12 +1157,12 @@  discard block
 block discarded – undo
1157 1157
         }
1158 1158
         if ($this->has_discussion && (strpos($this->has_discussion, 'Talk:Talk:') == false)) {
1159 1159
             $rdf .= "    <sioc:has_discussion>\n";
1160
-            $rdf .= "        <sioct:WikiArticle rdf:about=\"" . clean($this->has_discussion) . "\">\n";
1161
-            $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . clean(
1162
-                    'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki=' . $this->has_discussion
1160
+            $rdf .= "        <sioct:WikiArticle rdf:about=\"".clean($this->has_discussion)."\">\n";
1161
+            $rdf .= "            <rdfs:seeAlso rdf:resource=\"".clean(
1162
+                    'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki='.$this->has_discussion
1163 1163
                 );
1164 1164
             if ($this->api) {
1165
-                $rdf .= clean("&api=" . $this->api);
1165
+                $rdf .= clean("&api=".$this->api);
1166 1166
             }
1167 1167
             $rdf .= "\"/>\n";
1168 1168
             $rdf .= "        </sioct:WikiArticle>\n";
@@ -1170,21 +1170,21 @@  discard block
 block discarded – undo
1170 1170
         }
1171 1171
         if ($this->has_container) {
1172 1172
             $rdf .= "    <sioc:has_container>\n";
1173
-            $rdf .= "        <sioct:Wiki rdf:about=\"" . clean($this->has_container) . "\"/>\n";
1173
+            $rdf .= "        <sioct:Wiki rdf:about=\"".clean($this->has_container)."\"/>\n";
1174 1174
             $rdf .= "    </sioc:has_container>\n";
1175 1175
         }
1176 1176
         if ($this->redirpage) {
1177
-            $rdf .= "    <owl:sameAs rdf:resource=\"" . clean($this->redirpage) . "\"/>\n";
1178
-            $rdf .= "    <rdfs:seeAlso rdf:resource=\"" . clean(
1179
-                    'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki=' . $this->redirpage
1177
+            $rdf .= "    <owl:sameAs rdf:resource=\"".clean($this->redirpage)."\"/>\n";
1178
+            $rdf .= "    <rdfs:seeAlso rdf:resource=\"".clean(
1179
+                    'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki='.$this->redirpage
1180 1180
                 );
1181 1181
             if ($this->api) {
1182
-                $rdf .= clean("&api=" . $this->api);
1182
+                $rdf .= clean("&api=".$this->api);
1183 1183
             }
1184 1184
             $rdf .= "\"/>\n";
1185 1185
         }
1186 1186
 
1187
-        $rdf .= "</" . $this->_type . ">\n";
1187
+        $rdf .= "</".$this->_type.">\n";
1188 1188
         return $rdf;
1189 1189
     }
1190 1190
 }
@@ -1208,7 +1208,7 @@  discard block
 block discarded – undo
1208 1208
 
1209 1209
     public function getContent(&$exp): string
1210 1210
     {
1211
-        $rdf = '<' . $this->type . " rdf:about=\"" . clean($this->url) . "\"/>\n";
1211
+        $rdf = '<'.$this->type." rdf:about=\"".clean($this->url)."\"/>\n";
1212 1212
         return $rdf;
1213 1213
     }
1214 1214
 }
@@ -1232,7 +1232,7 @@  discard block
 block discarded – undo
1232 1232
 
1233 1233
     public function getContent(&$exp): string
1234 1234
     {
1235
-        $rdf = '<' . $this->type . " rdf:about=\"" . clean($this->url) . "\"/>\n";
1235
+        $rdf = '<'.$this->type." rdf:about=\"".clean($this->url)."\"/>\n";
1236 1236
         return $rdf;
1237 1237
     }
1238 1238
 }
Please login to merge, or discard this patch.
action.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
                 if (function_exists('header_remove')) {
62 62
                     header_remove();
63 63
                 }
64
-                header('Location: ' . $location['href'], true, 303);
64
+                header('Location: '.$location['href'], true, 303);
65 65
                 exit();
66 66
             } else {
67 67
                 // add meta link to html head
@@ -101,12 +101,12 @@  discard block
 block discarded – undo
101 101
 
102 102
         // Forward to URI with explicit type attribut
103 103
         if (!isset($_GET['type'])) {
104
-            header('Location:' . $_SERVER['REQUEST_URI'] . '&type=' . $sioc_type, true, 302);
104
+            header('Location:'.$_SERVER['REQUEST_URI'].'&type='.$sioc_type, true, 302);
105 105
         }
106 106
 
107 107
         // Include SIOC libs
108
-        require_once(__DIR__ . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . 'sioc_inc.php');
109
-        require_once(__DIR__ . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . 'sioc_dokuwiki.php');
108
+        require_once(__DIR__.DIRECTORY_SEPARATOR.'lib'.DIRECTORY_SEPARATOR.'sioc_inc.php');
109
+        require_once(__DIR__.DIRECTORY_SEPARATOR.'lib'.DIRECTORY_SEPARATOR.'sioc_dokuwiki.php');
110 110
 
111 111
         // Create exporter
112 112
 
@@ -194,9 +194,9 @@  discard block
 block discarded – undo
194 194
         }
195 195
 
196 196
         $exporter->setParameters(
197
-            'Container: ' . $title,
197
+            'Container: '.$title,
198 198
             getAbsUrl(),
199
-            getAbsUrl() . 'doku.php?',
199
+            getAbsUrl().'doku.php?',
200 200
             'utf-8',
201 201
             $this->agentlink
202 202
         );
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
         }
221 221
 
222 222
         // search next level entries (posts, sub containers) in container
223
-        require_once(DOKU_INC . 'inc/search.php');
223
+        require_once(DOKU_INC.'inc/search.php');
224 224
         $dir        = utf8_encodeFN(str_replace(':', '/', $ID));
225 225
         $entries    = array();
226 226
         $posts      = array();
@@ -271,9 +271,9 @@  discard block
 block discarded – undo
271 271
         }
272 272
 
273 273
         $exporter->setParameters(
274
-            'Account: ' . $userinfo['name'],
274
+            'Account: '.$userinfo['name'],
275 275
             getAbsUrl(),
276
-            getAbsUrl() . 'doku.php?',
276
+            getAbsUrl().'doku.php?',
277 277
             'utf-8',
278 278
             $this->agentlink
279 279
         );
@@ -296,25 +296,25 @@  discard block
 block discarded – undo
296 296
         global $ID, $INFO, $REV, $conf;
297 297
 
298 298
         $exporter->setParameters(
299
-            $INFO['meta']['title'] . ($REV ? ' (rev ' . $REV . ')' : ''),
299
+            $INFO['meta']['title'].($REV ? ' (rev '.$REV.')' : ''),
300 300
             $this->getDokuUrl(),
301
-            $this->getDokuUrl() . 'doku.php?',
301
+            $this->getDokuUrl().'doku.php?',
302 302
             'utf-8',
303 303
             $this->agentlink
304 304
         );
305 305
 
306 306
         // create user object
307
-        $dwuserpage_id = cleanID($this->getConf('userns')) . ($conf['useslash'] ? '/' : ':') . $INFO['editor'];
307
+        $dwuserpage_id = cleanID($this->getConf('userns')).($conf['useslash'] ? '/' : ':').$INFO['editor'];
308 308
         // create wiki page object
309 309
         $wikipage = new SIOCDokuWikiArticle(
310 310
             $ID, // id
311 311
             normalizeUri(
312 312
                 $exporter->siocURL(
313 313
                     'post',
314
-                    $ID . ($REV ? $exporter->_urlseparator . 'rev' . $exporter->_urlequal . $REV : '')
314
+                    $ID.($REV ? $exporter->_urlseparator.'rev'.$exporter->_urlequal.$REV : '')
315 315
                 )
316 316
             ), // url
317
-            $INFO['meta']['title'] . ($REV ? ' (rev ' . $REV . ')' : ''), // subject
317
+            $INFO['meta']['title'].($REV ? ' (rev '.$REV.')' : ''), // subject
318 318
             rawWiki($ID, $REV) // body (content)
319 319
         );
320 320
         /* encoded content   */
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
         }
330 330
         /* creator/modifier  */
331 331
         if ($INFO['editor'] && $this->getConf('userns')) {
332
-            $wikipage->addCreator(array('foaf:maker' => '#' . $INFO['editor'], 'sioc:modifier' => $dwuserpage_id));
332
+            $wikipage->addCreator(array('foaf:maker' => '#'.$INFO['editor'], 'sioc:modifier' => $dwuserpage_id));
333 333
         }
334 334
         /* is creator        */
335 335
         if (isset($INFO['meta']['date']['created'])) {
@@ -341,16 +341,16 @@  discard block
 block discarded – undo
341 341
         // contributors - only for last revision b/c of wrong meta data for older revisions
342 342
         if (!$REV && $this->getConf('userns') && isset($INFO['meta']['contributor'])) {
343 343
             $cont_temp = array();
344
-            $cont_ns   = $this->getConf('userns') . ($conf['useslash'] ? '/' : ':');
344
+            $cont_ns   = $this->getConf('userns').($conf['useslash'] ? '/' : ':');
345 345
             foreach ($INFO['meta']['contributor'] as $cont_id => $cont_name) {
346
-                $cont_temp[$cont_ns . $cont_id] = $cont_name;
346
+                $cont_temp[$cont_ns.$cont_id] = $cont_name;
347 347
             }
348 348
             $wikipage->addContributors($cont_temp);
349 349
         }
350 350
 
351 351
         // backlinks - only for last revision
352 352
         if (!$REV) {
353
-            require_once(DOKU_INC . 'inc/fulltext.php');
353
+            require_once(DOKU_INC.'inc/fulltext.php');
354 354
             $backlinks = ft_backlinks($ID);
355 355
             if (count($backlinks) > 0) {
356 356
                 $wikipage->addBacklinks($backlinks);
@@ -495,7 +495,7 @@  discard block
 block discarded – undo
495 495
         switch ($sioc_type) {
496 496
             case 'container':
497 497
                 $title     = htmlentities(
498
-                    "Container '" . ($INFO['meta']['title'] ?? $ID) . "' (SIOC document as RDF/XML)"
498
+                    "Container '".($INFO['meta']['title'] ?? $ID)."' (SIOC document as RDF/XML)"
499 499
                 );
500 500
                 $queryAttr = array('type' => 'container');
501 501
                 break;
@@ -509,7 +509,7 @@  discard block
 block discarded – undo
509 509
             default:
510 510
                 $title     = htmlentities($INFO['meta']['title'] ?? $ID);
511 511
                 $queryAttr = array('type' => 'post');
512
-                if (isset($_GET['rev']) && $_GET['rev'] === (int)$_GET['rev']) {
512
+                if (isset($_GET['rev']) && $_GET['rev'] === (int) $_GET['rev']) {
513 513
                     $queryAttr['rev'] = $_GET['rev'];
514 514
                 }
515 515
                 break;
@@ -581,7 +581,7 @@  discard block
 block discarded – undo
581 581
         }
582 582
 
583 583
         // get user id
584
-        $userid = str_replace(cleanID($pobj->getConf('userns')) . ($conf['useslash'] ? '/' : ':'), '', $id);
584
+        $userid = str_replace(cleanID($pobj->getConf('userns')).($conf['useslash'] ? '/' : ':'), '', $id);
585 585
 
586 586
         if ($info = $auth->getUserData($userid)) {
587 587
             if ($key) {
Please login to merge, or discard this patch.