Passed
Pull Request — master (#10)
by Mark
02:17 queued 26s
created
lib/sioc_inc.php 1 patch
Spacing   +159 added lines, -159 removed lines patch added patch discarded remove patch
@@ -112,37 +112,37 @@  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
-        ($this->url_suffix && !isset($this->ignore_suffix[$type])) ? $suffix = $this->urlseparator . $this->url_suffix : $suffix = '';
131
+        ($this->url_suffix && !isset($this->ignore_suffix[$type])) ? $suffix = $this->urlseparator.$this->url_suffix : $suffix = '';
132 132
 
133
-        $siocURL = $this->sioc_url . $type_part . $id_part . $page_part . $suffix;
133
+        $siocURL = $this->sioc_url.$type_part.$id_part.$page_part.$suffix;
134 134
         return clean($siocURL, true);
135 135
     }
136 136
 
137 137
     public function export($rdf_content = '')
138 138
     {
139
-        header('Content-Type: application/rdf+xml; charset=' . $this->encoding, true, 200);
139
+        header('Content-Type: application/rdf+xml; charset='.$this->encoding, true, 200);
140 140
         echo $this->makeRDF($rdf_content);
141 141
     }
142 142
 
143 143
     public function makeRDF($rdf_content = '')
144 144
     {
145
-        $rdf = '<?xml version="1.0" encoding="' . $this->encoding . '" ?>' . "\n";
145
+        $rdf = '<?xml version="1.0" encoding="'.$this->encoding.'" ?>'."\n";
146 146
         $rdf .= ' 
147 147
 <rdf:RDF
148 148
     xmlns="http://xmlns.com/foaf/0.1/"
@@ -157,11 +157,11 @@  discard block
 block discarded – undo
157 157
     xmlns:sioc="http://rdfs.org/sioc/ns#"
158 158
     xmlns:sioct="http://rdfs.org/sioc/types#"
159 159
     xmlns:owl="http://www.w3.org/2002/07/owl">
160
-<foaf:Document rdf:about="' . clean($this->profile_url, true) . '">
161
-	<dc:title>"' . clean($this->title) . '" (SIOC profile)</dc:title>
162
-	<foaf:primaryTopic rdf:resource="' . clean($this->objects[0]->_url, true) . '"/>
163
-	<admin:generatorAgent rdf:resource="' . clean($this->generator, true) . '"/>
164
-	<admin:generatorAgent rdf:resource="' . clean(EXPORTER_URL, true) . '?version=' . EXPORTER_VERSION . '"/>
160
+<foaf:Document rdf:about="' . clean($this->profile_url, true).'">
161
+	<dc:title>"' . clean($this->title).'" (SIOC profile)</dc:title>
162
+	<foaf:primaryTopic rdf:resource="' . clean($this->objects[0]->_url, true).'"/>
163
+	<admin:generatorAgent rdf:resource="' . clean($this->generator, true).'"/>
164
+	<admin:generatorAgent rdf:resource="' . clean(EXPORTER_URL, true).'?version='.EXPORTER_VERSION.'"/>
165 165
 </foaf:Document>' . "\n";
166 166
         if ($rdf_content) {
167 167
             $rdf .= $rdf_content;
@@ -259,31 +259,31 @@  discard block
 block discarded – undo
259 259
 
260 260
     public function getContent(&$exp): string
261 261
     {
262
-        $rdf = "<sioc:Site rdf:about=\"" . clean($this->url) . "\">\n";
263
-        $rdf .= "    <dc:title>" . clean($this->name) . "</dc:title>\n";
264
-        $rdf .= "    <dc:description>" . clean($this->description) . "</dc:description>\n";
265
-        $rdf .= "    <sioc:link rdf:resource=\"" . clean($this->url) . "\"/>\n";
262
+        $rdf = "<sioc:Site rdf:about=\"".clean($this->url)."\">\n";
263
+        $rdf .= "    <dc:title>".clean($this->name)."</dc:title>\n";
264
+        $rdf .= "    <dc:description>".clean($this->description)."</dc:description>\n";
265
+        $rdf .= "    <sioc:link rdf:resource=\"".clean($this->url)."\"/>\n";
266 266
         if ($this->forums) {
267 267
             foreach ($this->forums as $id => $url) {
268
-                $rdf .= "    <sioc:host_of rdf:resource=\"" . clean($url) . "\"/>\n";
268
+                $rdf .= "    <sioc:host_of rdf:resource=\"".clean($url)."\"/>\n";
269 269
             }
270 270
         }
271 271
         if ($this->next_forums) {
272
-            $rdf .= "    <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL('site', "", $this->page + 1) . "\"/>\n";
272
+            $rdf .= "    <rdfs:seeAlso rdf:resource=\"".$exp->siocURL('site', "", $this->page + 1)."\"/>\n";
273 273
         }
274 274
         if ($this->usergroup_uri) {
275
-            $rdf .= "    <sioc:has_Usergroup rdf:resource=\"" . $this->usergroup_uri . "\"/>\n";
275
+            $rdf .= "    <sioc:has_Usergroup rdf:resource=\"".$this->usergroup_uri."\"/>\n";
276 276
         } else {
277
-            $rdf .= "    <sioc:has_Usergroup rdf:nodeID=\"" . AUTHORS_NODE . "\"/>\n";
277
+            $rdf .= "    <sioc:has_Usergroup rdf:nodeID=\"".AUTHORS_NODE."\"/>\n";
278 278
         }
279 279
         $rdf .= "</sioc:Site>\n";
280 280
         // Forums
281 281
         if ($this->forums) {
282 282
             $rdf .= "\n";
283 283
             foreach ($this->forums as $id => $url) {
284
-                $rdf .= '<sioc:Forum rdf:about="' . clean($url) . "\">\n";
285
-                $rdf .= "    <sioc:link rdf:resource=\"" . clean($url) . "\"/>\n";
286
-                $rdf .= "    <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL('forum', $id) . "\"/>\n";
284
+                $rdf .= '<sioc:Forum rdf:about="'.clean($url)."\">\n";
285
+                $rdf .= "    <sioc:link rdf:resource=\"".clean($url)."\"/>\n";
286
+                $rdf .= "    <rdfs:seeAlso rdf:resource=\"".$exp->siocURL('forum', $id)."\"/>\n";
287 287
                 $rdf .= "</sioc:Forum>\n";
288 288
             }
289 289
         }
@@ -291,20 +291,20 @@  discard block
 block discarded – undo
291 291
         if ($this->users) {
292 292
             $rdf .= "\n";
293 293
             if ($this->usergroup_uri) {
294
-                $rdf .= '<sioc:UserAccountgroup rdf:about="' . $this->usergroup_uri . "\">\n";
294
+                $rdf .= '<sioc:UserAccountgroup rdf:about="'.$this->usergroup_uri."\">\n";
295 295
             } else {
296
-                $rdf .= '<sioc:UserAccountgroup rdf:nodeID="' . AUTHORS_NODE . "\">\n";
296
+                $rdf .= '<sioc:UserAccountgroup rdf:nodeID="'.AUTHORS_NODE."\">\n";
297 297
             }
298
-            $rdf .= "    <sioc:name>Authors for \"" . clean($this->name) . "\"</sioc:name>\n";
298
+            $rdf .= "    <sioc:name>Authors for \"".clean($this->name)."\"</sioc:name>\n";
299 299
             foreach ($this->users as $id => $url) {
300 300
                 $rdf .= "    <sioc:has_member>\n";
301
-                $rdf .= "        <sioc:UserAccount rdf:about=\"" . clean($url) . "\">\n";
302
-                $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL('user', $id) . "\"/>\n";
301
+                $rdf .= "        <sioc:UserAccount rdf:about=\"".clean($url)."\">\n";
302
+                $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$exp->siocURL('user', $id)."\"/>\n";
303 303
                 $rdf .= "        </sioc:UserAccount>\n";
304 304
                 $rdf .= "    </sioc:has_member>\n";
305 305
             }
306 306
             if ($this->next_users) {
307
-                $rdf .= "    <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL('site', "", $this->page + 1) . "\"/>\n";
307
+                $rdf .= "    <rdfs:seeAlso rdf:resource=\"".$exp->siocURL('site', "", $this->page + 1)."\"/>\n";
308 308
             }
309 309
             $rdf .= "</sioc:UserAccountgroup>\n";
310 310
         }
@@ -358,8 +358,8 @@  discard block
 block discarded – undo
358 358
                 $this->email = $email;
359 359
                 $this->sha1  = sha1($email);
360 360
             } else {
361
-                $this->email = "mailto:" . $email;
362
-                $this->sha1  = sha1("mailto:" . $email);
361
+                $this->email = "mailto:".$email;
362
+                $this->sha1  = sha1("mailto:".$email);
363 363
             }
364 364
         }
365 365
         $this->homepage = $homepage;
@@ -373,36 +373,36 @@  discard block
 block discarded – undo
373 373
 
374 374
     public function getContent(&$exp): string
375 375
     {
376
-        $rdf = "<foaf:Person rdf:about=\"" . clean($this->foaf_uri) . "\">\n";
376
+        $rdf = "<foaf:Person rdf:about=\"".clean($this->foaf_uri)."\">\n";
377 377
         if ($this->name) {
378
-            $rdf .= "    <foaf:name>" . $this->name . "</foaf:name>\n";
378
+            $rdf .= "    <foaf:name>".$this->name."</foaf:name>\n";
379 379
         }
380 380
         if ($this->email) {
381
-            $rdf .= "    <foaf:mbox_sha1sum>" . $this->sha1 . "</foaf:mbox_sha1sum>\n";
381
+            $rdf .= "    <foaf:mbox_sha1sum>".$this->sha1."</foaf:mbox_sha1sum>\n";
382 382
         }
383 383
         if ($this->foaf_url) {
384
-            $rdf .= "    <rdfs:seeAlso rdf:resource=\"" . $this->foaf_url . "\"/>\n";
384
+            $rdf .= "    <rdfs:seeAlso rdf:resource=\"".$this->foaf_url."\"/>\n";
385 385
         }
386 386
         $rdf .= "    <foaf:holdsAccount>\n";
387
-        $rdf .= "        <sioc:UserAccount rdf:about=\"" . clean($this->uri) . "\">\n";
387
+        $rdf .= "        <sioc:UserAccount rdf:about=\"".clean($this->uri)."\">\n";
388 388
         if ($this->nick) {
389
-            $rdf .= "            <sioc:name>" . $this->nick . "</sioc:name>\n";
389
+            $rdf .= "            <sioc:name>".$this->nick."</sioc:name>\n";
390 390
         }
391 391
         if ($this->email) {
392 392
             if ($exp->_export_email) {
393
-                $rdf .= "            <sioc:email rdf:resource=\"" . $this->email . "\"/>\n";
393
+                $rdf .= "            <sioc:email rdf:resource=\"".$this->email."\"/>\n";
394 394
             }
395
-            $rdf .= "            <sioc:email_sha1>" . $this->sha1 . "</sioc:email_sha1>\n";
395
+            $rdf .= "            <sioc:email_sha1>".$this->sha1."</sioc:email_sha1>\n";
396 396
         }
397 397
         if ($this->role) {
398 398
             $rdf .= "            <sioc:has_function>\n";
399 399
             $rdf .= "                <sioc:Role>\n";
400
-            $rdf .= "                    <sioc:name>" . $this->role . "</sioc:name>\n";
400
+            $rdf .= "                    <sioc:name>".$this->role."</sioc:name>\n";
401 401
             $rdf .= "                </sioc:Role>\n";
402 402
             $rdf .= "            </sioc:has_function>\n";
403 403
         }
404 404
         if ($this->sioc_url) {
405
-            $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $this->sioc_url . "\"/>\n";
405
+            $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$this->sioc_url."\"/>\n";
406 406
         }
407 407
         $rdf .= "        </sioc:UserAccount>\n";
408 408
         $rdf .= "    </foaf:holdsAccount>\n";
@@ -476,25 +476,25 @@  discard block
 block discarded – undo
476 476
 
477 477
     public function getContent(&$exp): string
478 478
     {
479
-        $rdf = '<sioc:Thread rdf:about="' . clean($this->url) . "\">\n";
480
-        $rdf .= "    <sioc:link rdf:resource=\"" . clean($this->url) . "\"/>\n";
479
+        $rdf = '<sioc:Thread rdf:about="'.clean($this->url)."\">\n";
480
+        $rdf .= "    <sioc:link rdf:resource=\"".clean($this->url)."\"/>\n";
481 481
         if ($this->views) {
482
-            $rdf .= "    <sioc:num_views>" . $this->views . "</sioc:num_views>\n";
482
+            $rdf .= "    <sioc:num_views>".$this->views."</sioc:num_views>\n";
483 483
         }
484 484
         if ($this->note) {
485
-            $rdf .= "    <rdfs:comment>" . $this->note . "</rdfs:comment>\n";
485
+            $rdf .= "    <rdfs:comment>".$this->note."</rdfs:comment>\n";
486 486
         }
487 487
         if ($this->subject) {
488
-            $rdf .= "    <dc:title>" . $this->subject . "</dc:title>\n";
488
+            $rdf .= "    <dc:title>".$this->subject."</dc:title>\n";
489 489
         }
490 490
         if ($this->created) {
491
-            $rdf .= "    <dcterms:created>" . $this->created . "</dcterms:created>\n";
491
+            $rdf .= "    <dcterms:created>".$this->created."</dcterms:created>\n";
492 492
         }
493 493
         if ($this->parents) {
494 494
             foreach ($this->parents as $id => $uri) {
495 495
                 $rdf .= "    <sioc:has_parent>\n";
496
-                $rdf .= "        <sioc:Forum rdf:about=\"" . clean($uri) . "\">\n";
497
-                $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL('forum', $id) . "\"/>\n";
496
+                $rdf .= "        <sioc:Forum rdf:about=\"".clean($uri)."\">\n";
497
+                $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$exp->siocURL('forum', $id)."\"/>\n";
498 498
                 $rdf .= "        </sioc:Forum>\n";
499 499
                 $rdf .= "    </sioc:has_parent>\n";
500 500
             }
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
502 502
         // here the tags are just used as keywords for dc:subject
503 503
         if ($this->tags) {
504 504
             foreach ($this->tags as $id => $tag) {
505
-                $rdf .= "    <dc:subject>" . $tag . "</dc:subject>\n";
505
+                $rdf .= "    <dc:subject>".$tag."</dc:subject>\n";
506 506
             }
507 507
         }
508 508
         // here the tags are used by creating a tag object with a blank node, with the keyword as moat:name - if you
@@ -531,7 +531,7 @@  discard block
 block discarded – undo
531 531
         if ($this->related) {
532 532
             foreach ($this->related as $id => $url) {
533 533
                 $rdf .= "    <sioc:related_to>\n";
534
-                $rdf .= "        <sioc:Thread rdf:about=\"" . clean($url) . "\"/>\n";
534
+                $rdf .= "        <sioc:Thread rdf:about=\"".clean($url)."\"/>\n";
535 535
                 $rdf .= "    </sioc:related_to>\n"; // todo - each topic needs to have a URI
536 536
             }
537 537
         }
@@ -539,20 +539,20 @@  discard block
 block discarded – undo
539 539
         if ($this->posts) {
540 540
             foreach ($this->posts as $id => $data) {
541 541
                 $rdf .= "    <sioc:container_of>\n";
542
-                $rdf .= "        <sioc:Post rdf:about=\"" . clean($data[url]) . "\">\n";
543
-                $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL('post', $id) . "\"/>\n";
542
+                $rdf .= "        <sioc:Post rdf:about=\"".clean($data[url])."\">\n";
543
+                $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$exp->siocURL('post', $id)."\"/>\n";
544 544
                 if ($data[prev]) {
545
-                    $rdf .= "            <sioc:previous_by_date rdf:resource=\"" . clean($data[prev]) . "\"/>\n";
545
+                    $rdf .= "            <sioc:previous_by_date rdf:resource=\"".clean($data[prev])."\"/>\n";
546 546
                 }
547 547
                 if ($data[next]) {
548
-                    $rdf .= "            <sioc:next_by_date rdf:resource=\"" . clean($data[next]) . "\"/>\n";
548
+                    $rdf .= "            <sioc:next_by_date rdf:resource=\"".clean($data[next])."\"/>\n";
549 549
                 }
550 550
                 $rdf .= "        </sioc:Post>\n";
551 551
                 $rdf .= "    </sioc:container_of>\n";
552 552
             }
553 553
         }
554 554
         if ($this->next) {
555
-            $rdf .= "\r<rdfs:seeAlso rdf:resource=\"" . $exp->siocURL('thread', $this->id, $this->page + 1) . "\"/>\n";
555
+            $rdf .= "\r<rdfs:seeAlso rdf:resource=\"".$exp->siocURL('thread', $this->id, $this->page + 1)."\"/>\n";
556 556
         }
557 557
         $rdf .= "</sioc:Thread>\n";
558 558
         return $rdf;
@@ -637,26 +637,26 @@  discard block
 block discarded – undo
637 637
 
638 638
     public function getContent(&$exp): string
639 639
     {
640
-        $rdf = '<' . $this->_type . ' rdf:about="' . clean($this->url) . "\">\n";
640
+        $rdf = '<'.$this->_type.' rdf:about="'.clean($this->url)."\">\n";
641 641
         if ($this->_type != 'sioc:Forum') {
642 642
             $rdf .= "    <rdf:type rdf:resource=\"http://rdfs.org/sioc/ns#Forum\" />\n";
643 643
         }
644
-        $rdf .= "    <sioc:link rdf:resource=\"" . clean($this->url) . "\"/>\n";
644
+        $rdf .= "    <sioc:link rdf:resource=\"".clean($this->url)."\"/>\n";
645 645
         if ($this->blog_title) {
646
-            $rdf .= "    <dc:title>" . $this->blog_title . "</dc:title>\n";
646
+            $rdf .= "    <dc:title>".$this->blog_title."</dc:title>\n";
647 647
         }
648 648
         if ($this->description) {
649
-            $rdf .= "    <dc:description>" . $this->description . "</dc:description>\n";
649
+            $rdf .= "    <dc:description>".$this->description."</dc:description>\n";
650 650
         }
651 651
         if ($this->note) {
652
-            $rdf .= "    <rdfs:comment>" . $this->note . "</rdfs:comment>\n";
652
+            $rdf .= "    <rdfs:comment>".$this->note."</rdfs:comment>\n";
653 653
         }
654 654
 
655 655
         if ($this->parents) {
656 656
             foreach ($this->parents as $id => $uri) {
657 657
                 $rdf .= "    <sioc:has_parent>\n";
658
-                $rdf .= "        <sioc:Forum rdf:about=\"" . clean($uri) . "\">\n";
659
-                $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL('forum', $id) . "\"/>\n";
658
+                $rdf .= "        <sioc:Forum rdf:about=\"".clean($uri)."\">\n";
659
+                $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$exp->siocURL('forum', $id)."\"/>\n";
660 660
                 $rdf .= "        </sioc:Forum>\n";
661 661
                 $rdf .= "    </sioc:has_parent>\n";
662 662
             }
@@ -665,8 +665,8 @@  discard block
 block discarded – undo
665 665
         if ($this->threads) {
666 666
             foreach ($this->threads as $id => $uri) {
667 667
                 $rdf .= "    <sioc:parent_of>\n";
668
-                $rdf .= "        <sioc:Thread rdf:about=\"" . clean($uri) . "\">\n";
669
-                $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL('thread', $id) . "\"/>\n";
668
+                $rdf .= "        <sioc:Thread rdf:about=\"".clean($uri)."\">\n";
669
+                $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$exp->siocURL('thread', $id)."\"/>\n";
670 670
                 $rdf .= "        </sioc:Thread>\n";
671 671
                 $rdf .= "    </sioc:parent_of>\n";
672 672
             }
@@ -675,8 +675,8 @@  discard block
 block discarded – undo
675 675
         if ($this->posts) {
676 676
             foreach ($this->posts as $id => $url) {
677 677
                 $rdf .= "    <sioc:container_of>\n";
678
-                $rdf .= "        <sioc:Post rdf:about=\"" . clean($url) . "\">\n";
679
-                $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL('post', $id) . "\"/>\n";
678
+                $rdf .= "        <sioc:Post rdf:about=\"".clean($url)."\">\n";
679
+                $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$exp->siocURL('post', $id)."\"/>\n";
680 680
                 $rdf .= "        </sioc:Post>\n";
681 681
                 $rdf .= "    </sioc:container_of>\n";
682 682
             }
@@ -685,26 +685,26 @@  discard block
 block discarded – undo
685 685
         if ($this->creator) {
686 686
             if ($this->creator->_id) {
687 687
                 $rdf .= "    <sioc:has_creator>\n";
688
-                $rdf .= "        <sioc:UserAccount rdf:about=\"" . clean($this->creator->_uri) . "\">\n";
688
+                $rdf .= "        <sioc:UserAccount rdf:about=\"".clean($this->creator->_uri)."\">\n";
689 689
                 if ($this->creator->_sioc_url) {
690
-                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $this->creator->_sioc_url . "\"/>\n";
690
+                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$this->creator->_sioc_url."\"/>\n";
691 691
                 } else {
692
-                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL(
692
+                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$exp->siocURL(
693 693
                             'user',
694 694
                             $this->creator->_id
695
-                        ) . "\"/>\n";
695
+                        )."\"/>\n";
696 696
                 }
697 697
                 $rdf .= "        </sioc:UserAccount>\n";
698 698
                 $rdf .= "    </sioc:has_creator>\n";
699 699
                 $rdf .= "    <foaf:maker>\n";
700
-                $rdf .= "        <foaf:Person rdf:about=\"" . clean($this->creator->_foaf_uri) . "\">\n";
700
+                $rdf .= "        <foaf:Person rdf:about=\"".clean($this->creator->_foaf_uri)."\">\n";
701 701
                 if ($this->creator->_foaf_url) {
702
-                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $this->creator->_foaf_url . "\"/>\n";
702
+                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$this->creator->_foaf_url."\"/>\n";
703 703
                 } else {
704
-                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL(
704
+                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$exp->siocURL(
705 705
                             'user',
706 706
                             $this->creator->_id
707
-                        ) . "\"/>\n";
707
+                        )."\"/>\n";
708 708
                 }
709 709
                 $rdf .= "        </foaf:Person>\n";
710 710
                 $rdf .= "    </foaf:maker>\n";
@@ -712,13 +712,13 @@  discard block
 block discarded – undo
712 712
                 $rdf .= "    <foaf:maker>\n";
713 713
                 $rdf .= "        <foaf:Person";
714 714
                 if ($this->creator->_name) {
715
-                    $rdf .= " foaf:name=\"" . $this->creator->_name . "\"";
715
+                    $rdf .= " foaf:name=\"".$this->creator->_name."\"";
716 716
                 }
717 717
                 if ($this->creator->_sha1) {
718
-                    $rdf .= " foaf:mbox_sha1sum=\"" . $this->creator->_sha1 . "\"";
718
+                    $rdf .= " foaf:mbox_sha1sum=\"".$this->creator->_sha1."\"";
719 719
                 }
720 720
                 if ($this->creator->_name) {
721
-                    $rdf .= ">\n            <foaf:homepage rdf:resource=\"" . $this->creator->_homepage . "\"/>\n        </foaf:Person>\n";
721
+                    $rdf .= ">\n            <foaf:homepage rdf:resource=\"".$this->creator->_homepage."\"/>\n        </foaf:Person>\n";
722 722
                 } else {
723 723
                     $rdf .= "/>\n";
724 724
                 }
@@ -729,14 +729,14 @@  discard block
 block discarded – undo
729 729
         if ($this->administrator) {
730 730
             if ($this->administrator->_id) {
731 731
                 $rdf .= "    <sioc:has_administrator>\n";
732
-                $rdf .= "        <sioc:UserAccount rdf:about=\"" . clean($this->administrator->_uri) . "\">\n";
732
+                $rdf .= "        <sioc:UserAccount rdf:about=\"".clean($this->administrator->_uri)."\">\n";
733 733
                 if ($this->administrator->_sioc_url) {
734
-                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $this->administrator->_sioc_url . "\"/>\n";
734
+                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$this->administrator->_sioc_url."\"/>\n";
735 735
                 } else {
736
-                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL(
736
+                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$exp->siocURL(
737 737
                             'user',
738 738
                             $this->administrator->_id
739
-                        ) . "\"/>\n";
739
+                        )."\"/>\n";
740 740
                 }
741 741
                 $rdf .= "        </sioc:UserAccount>\n";
742 742
                 $rdf .= "    </sioc:has_administrator>\n";
@@ -744,14 +744,14 @@  discard block
 block discarded – undo
744 744
         }
745 745
         if ($this->links) {
746 746
             foreach ($this->links as $url => $link) {
747
-                $rdf .= "    <sioc:links_to rdfs:label=\"$link\" rdf:resource=\"" . clean($url) . "\"/>\n";
747
+                $rdf .= "    <sioc:links_to rdfs:label=\"$link\" rdf:resource=\"".clean($url)."\"/>\n";
748 748
             }
749 749
         }
750 750
 
751 751
         if ($this->next) {
752
-            $rdf .= "\r<rdfs:seeAlso rdf:resource=\"" . $exp->siocURL('forum', $this->id, $this->page + 1) . "\"/>\n";
752
+            $rdf .= "\r<rdfs:seeAlso rdf:resource=\"".$exp->siocURL('forum', $this->id, $this->page + 1)."\"/>\n";
753 753
         }
754
-        $rdf .= "</" . $this->_type . ">";
754
+        $rdf .= "</".$this->_type.">";
755 755
 
756 756
         return $rdf;
757 757
     }
@@ -820,36 +820,36 @@  discard block
 block discarded – undo
820 820
 
821 821
     public function getContent(&$exp): string
822 822
     {
823
-        $rdf = '<' . $this->_type . " rdf:about=\"" . clean($this->url) . "\">\n";
823
+        $rdf = '<'.$this->_type." rdf:about=\"".clean($this->url)."\">\n";
824 824
         if ($this->_type != 'sioc:Post') {
825 825
             $rdf .= "    <rdf:type rdf:resource=\"http://rdfs.org/sioc/ns#Post\" />\n";
826 826
         }
827 827
         if ($this->subject) {
828
-            $rdf .= "    <dc:title>" . $this->subject . "</dc:title>\n";
828
+            $rdf .= "    <dc:title>".$this->subject."</dc:title>\n";
829 829
         }
830 830
         if ($this->creator) {
831 831
             if ($this->creator->_id) {
832 832
                 $rdf .= "    <sioc:has_creator>\n";
833
-                $rdf .= "        <sioc:UserAccount rdf:about=\"" . clean($this->creator->_uri) . "\">\n";
833
+                $rdf .= "        <sioc:UserAccount rdf:about=\"".clean($this->creator->_uri)."\">\n";
834 834
                 if ($this->creator->_sioc_url) {
835
-                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $this->creator->_sioc_url . "\"/>\n";
835
+                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$this->creator->_sioc_url."\"/>\n";
836 836
                 } else {
837
-                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL(
837
+                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$exp->siocURL(
838 838
                             'user',
839 839
                             $this->creator->_id
840
-                        ) . "\"/>\n";
840
+                        )."\"/>\n";
841 841
                 }
842 842
                 $rdf .= "        </sioc:UserAccount>\n";
843 843
                 $rdf .= "    </sioc:has_creator>\n";
844 844
                 $rdf .= "    <foaf:maker>\n";
845
-                $rdf .= "        <foaf:Person rdf:about=\"" . clean($this->creator->_foaf_uri) . "\">\n";
845
+                $rdf .= "        <foaf:Person rdf:about=\"".clean($this->creator->_foaf_uri)."\">\n";
846 846
                 if ($this->creator->_foaf_url) {
847
-                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $this->creator->_foaf_url . "\"/>\n";
847
+                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$this->creator->_foaf_url."\"/>\n";
848 848
                 } else {
849
-                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL(
849
+                    $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$exp->siocURL(
850 850
                             'user',
851 851
                             $this->creator->_id
852
-                        ) . "\"/>\n";
852
+                        )."\"/>\n";
853 853
                 }
854 854
                 $rdf .= "        </foaf:Person>\n";
855 855
                 $rdf .= "    </foaf:maker>\n";
@@ -857,48 +857,48 @@  discard block
 block discarded – undo
857 857
                 $rdf .= "    <foaf:maker>\n";
858 858
                 $rdf .= "        <foaf:Person";
859 859
                 if ($this->creator->_name) {
860
-                    $rdf .= " foaf:name=\"" . $this->creator->_name . "\"";
860
+                    $rdf .= " foaf:name=\"".$this->creator->_name."\"";
861 861
                 }
862 862
                 if ($this->creator->_sha1) {
863
-                    $rdf .= " foaf:mbox_sha1sum=\"" . $this->creator->_sha1 . "\"";
863
+                    $rdf .= " foaf:mbox_sha1sum=\"".$this->creator->_sha1."\"";
864 864
                 }
865 865
                 if ($this->creator->_name) {
866
-                    $rdf .= ">\n            <foaf:homepage rdf:resource=\"" . $this->creator->_homepage . "\"/>\n        </foaf:Person>\n";
866
+                    $rdf .= ">\n            <foaf:homepage rdf:resource=\"".$this->creator->_homepage."\"/>\n        </foaf:Person>\n";
867 867
                 } else {
868 868
                     $rdf .= "/>\n";
869 869
                 }
870 870
                 $rdf .= "    </foaf:maker>\n";
871 871
             }
872 872
         }
873
-        $rdf .= "    <dcterms:created>" . $this->created . "</dcterms:created>\n";
873
+        $rdf .= "    <dcterms:created>".$this->created."</dcterms:created>\n";
874 874
         if ($this->updated and ($this->created != $this->updated)) {
875
-            $rdf .= "    <dcterms:modified>" . $this->updated . "</dcterms:modified>\n";
875
+            $rdf .= "    <dcterms:modified>".$this->updated."</dcterms:modified>\n";
876 876
         }
877
-        $rdf .= "    <sioc:content>" . pureContent($this->content) . "</sioc:content>\n";
877
+        $rdf .= "    <sioc:content>".pureContent($this->content)."</sioc:content>\n";
878 878
 
879
-        $rdf .= "    <content:encoded><![CDATA[" . $this->encoded . "]]></content:encoded>\n";
879
+        $rdf .= "    <content:encoded><![CDATA[".$this->encoded."]]></content:encoded>\n";
880 880
         if ($this->topics) {
881 881
             foreach ($this->topics as $url => $topic) {
882
-                $rdf .= "    <sioc:topic rdfs:label=\"$topic\" rdf:resource=\"" . clean($url) . "\"/>\n";
882
+                $rdf .= "    <sioc:topic rdfs:label=\"$topic\" rdf:resource=\"".clean($url)."\"/>\n";
883 883
             }
884 884
         }
885 885
         if ($this->links) {
886 886
             foreach ($this->links as $url => $link) {
887
-                $rdf .= "    <sioc:links_to rdfs:label=\"$link\" rdf:resource=\"" . clean($url) . "\"/>\n";
887
+                $rdf .= "    <sioc:links_to rdfs:label=\"$link\" rdf:resource=\"".clean($url)."\"/>\n";
888 888
             }
889 889
         }
890 890
         if ($this->has_part) {
891 891
             foreach ($this->has_part as $id => $url) {
892 892
                 $rdf .= "    <dcterms:hasPart>\n";
893
-                $rdf .= "        <dcmitype:Image rdf:about=\"" . clean($url) . "\"/>\n";
893
+                $rdf .= "        <dcmitype:Image rdf:about=\"".clean($url)."\"/>\n";
894 894
                 $rdf .= "    </dcterms:hasPart>\n";
895 895
             }
896 896
         }
897 897
         if ($this->reply_of) {
898 898
             foreach ($this->reply_of as $id => $url) {
899 899
                 $rdf .= "    <sioc:reply_of>\n";
900
-                $rdf .= "        <sioc:Post rdf:about=\"" . clean($url) . "\">\n";
901
-                $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL('post', $id) . "\"/>\n";
900
+                $rdf .= "        <sioc:Post rdf:about=\"".clean($url)."\">\n";
901
+                $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$exp->siocURL('post', $id)."\"/>\n";
902 902
                 $rdf .= "        </sioc:Post>\n";
903 903
                 $rdf .= "    </sioc:reply_of>\n";
904 904
             }
@@ -906,16 +906,16 @@  discard block
 block discarded – undo
906 906
         if ($this->comments) {
907 907
             foreach ($this->comments as $id => $url) {
908 908
                 $rdf .= "    <sioc:has_reply>\n";
909
-                $rdf .= "        <sioc:Post rdf:about=\"" . clean($url) . "\">\n";
909
+                $rdf .= "        <sioc:Post rdf:about=\"".clean($url)."\">\n";
910 910
                 //        if($comments->f('comment_trackback')) $rdf .= "            <sioc:type>"
911 911
                 // . POST_TRACKBACK . "</sioc:type>\n";
912 912
                 //        else $rdf .= "            <sioc:type>" . POST_COMMENT  . "</sioc:type>\n";
913
-                $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . $exp->siocURL('comment', $id) . "\"/>\n";
913
+                $rdf .= "            <rdfs:seeAlso rdf:resource=\"".$exp->siocURL('comment', $id)."\"/>\n";
914 914
                 $rdf .= "        </sioc:Post>\n";
915 915
                 $rdf .= "    </sioc:has_reply>\n";
916 916
             }
917 917
         }
918
-        $rdf .= "</" . $this->_type . ">\n";
918
+        $rdf .= "</".$this->_type.">\n";
919 919
         return $rdf;
920 920
     }
921 921
 }
@@ -981,13 +981,13 @@  discard block
 block discarded – undo
981 981
 
982 982
     public function getContent(&$exp): string
983 983
     {
984
-        $rdf = '<' . $this->_type . " rdf:about=\"" . clean($this->url) . "\">\n";
984
+        $rdf = '<'.$this->_type." rdf:about=\"".clean($this->url)."\">\n";
985 985
         if ($this->subject) {
986
-            $rdf .= "    <dc:title>" . clean($this->subject) . "</dc:title>\n";
986
+            $rdf .= "    <dc:title>".clean($this->subject)."</dc:title>\n";
987 987
             if (strcmp($this->has_container, 'http://en.wikipedia.org') === 0) {
988
-                $rdf .= "    <foaf:primaryTopic rdf:resource=\"" . clean(
989
-                        'http://dbpedia.org/resource/' . $this->subject
990
-                    ) . "\"/>\n";
988
+                $rdf .= "    <foaf:primaryTopic rdf:resource=\"".clean(
989
+                        'http://dbpedia.org/resource/'.$this->subject
990
+                    )."\"/>\n";
991 991
             }
992 992
         }
993 993
         if ($this->creator->_nick) {
@@ -1010,17 +1010,17 @@  discard block
 block discarded – undo
1010 1010
                 $rdf .= "    </foaf:maker>\n";
1011 1011
             } else {*/
1012 1012
             $rdf .= "    <sioc:has_creator>\n";
1013
-            $rdf .= "        <sioc:UserAccount rdf:about=\"" . clean($this->creator->_uri) . "\">\n";
1014
-            $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . clean(
1015
-                    'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki=' . $this->creator->_uri
1013
+            $rdf .= "        <sioc:UserAccount rdf:about=\"".clean($this->creator->_uri)."\">\n";
1014
+            $rdf .= "            <rdfs:seeAlso rdf:resource=\"".clean(
1015
+                    'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki='.$this->creator->_uri
1016 1016
                 );
1017 1017
             if ($this->api) {
1018
-                $rdf .= clean("&api=" . $this->api);
1018
+                $rdf .= clean("&api=".$this->api);
1019 1019
             }
1020 1020
             $rdf .= "\"/>\n";
1021 1021
             $rdf .= "        </sioc:UserAccount>\n";
1022 1022
             $rdf .= "    </sioc:has_creator>\n";
1023
-            $rdf .= "    <dc:contributor>" . clean($this->creator->_nick) . "</dc:contributor>\n";
1023
+            $rdf .= "    <dc:contributor>".clean($this->creator->_nick)."</dc:contributor>\n";
1024 1024
             /*$rdf .= "    <foaf:maker>\n";
1025 1025
             $rdf .= "        <foaf:Person";
1026 1026
             if($this->creator->name) $rdf .= " foaf:name=\"" . $this->creator->name ."\"";
@@ -1039,17 +1039,17 @@  discard block
 block discarded – undo
1039 1039
             }
1040 1040
         }
1041 1041
         if ($this->created) {
1042
-            $rdf .= "    <dcterms:created>" . $this->created . "</dcterms:created>\n";
1042
+            $rdf .= "    <dcterms:created>".$this->created."</dcterms:created>\n";
1043 1043
         }
1044 1044
         if (is_array($this->topics)) {
1045 1045
             foreach ($this->topics as $topic => $url) {
1046 1046
                 $rdf .= "    <sioc:topic>\n";
1047
-                $rdf .= "        <sioct:Category rdf:about=\"" . clean($url) . "\">\n";
1048
-                $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . clean(
1049
-                        'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki=' . $url
1047
+                $rdf .= "        <sioct:Category rdf:about=\"".clean($url)."\">\n";
1048
+                $rdf .= "            <rdfs:seeAlso rdf:resource=\"".clean(
1049
+                        'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki='.$url
1050 1050
                     );
1051 1051
                 if ($this->api) {
1052
-                    $rdf .= clean("&api=" . $this->api);
1052
+                    $rdf .= clean("&api=".$this->api);
1053 1053
                 }
1054 1054
                 $rdf .= "\"/>\n";
1055 1055
                 $rdf .= "        </sioct:Category>\n";
@@ -1059,12 +1059,12 @@  discard block
 block discarded – undo
1059 1059
         if (is_array($this->links)) {
1060 1060
             foreach ($this->links as $label => $url) {
1061 1061
                 $rdf .= "    <sioc:links_to>\n";
1062
-                $rdf .= "        <sioct:WikiArticle rdf:about=\"" . clean($url) . "\">\n";
1063
-                $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . clean(
1064
-                        'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki=' . $url
1062
+                $rdf .= "        <sioct:WikiArticle rdf:about=\"".clean($url)."\">\n";
1063
+                $rdf .= "            <rdfs:seeAlso rdf:resource=\"".clean(
1064
+                        'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki='.$url
1065 1065
                     );
1066 1066
                 if ($this->api) {
1067
-                    $rdf .= clean("&api=" . $this->api);
1067
+                    $rdf .= clean("&api=".$this->api);
1068 1068
                 }
1069 1069
                 $rdf .= "\"/>\n";
1070 1070
                 $rdf .= "        </sioct:WikiArticle>\n";
@@ -1073,12 +1073,12 @@  discard block
 block discarded – undo
1073 1073
         } else {
1074 1074
             if ($this->links) {
1075 1075
                 $rdf .= "    <sioc:links_to>\n";
1076
-                $rdf .= "        <sioct:WikiArticle rdf:about=\"" . clean($this->links) . "\">\n";
1077
-                $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . clean(
1078
-                        'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki=' . $this->links
1076
+                $rdf .= "        <sioct:WikiArticle rdf:about=\"".clean($this->links)."\">\n";
1077
+                $rdf .= "            <rdfs:seeAlso rdf:resource=\"".clean(
1078
+                        'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki='.$this->links
1079 1079
                     );
1080 1080
                 if ($this->api) {
1081
-                    $rdf .= clean("&api=" . $this->api);
1081
+                    $rdf .= clean("&api=".$this->api);
1082 1082
                 }
1083 1083
                 $rdf .= "\"/>\n";
1084 1084
                 $rdf .= "        </sioct:WikiArticle>\n";
@@ -1087,17 +1087,17 @@  discard block
 block discarded – undo
1087 1087
         }
1088 1088
         if (is_array($this->ext_links)) {
1089 1089
             foreach ($this->ext_links as $label => $url) {
1090
-                $rdf .= "    <sioc:links_to rdf:resource=\"" . clean($url) . "\"/>\n";
1090
+                $rdf .= "    <sioc:links_to rdf:resource=\"".clean($url)."\"/>\n";
1091 1091
             }
1092 1092
         }
1093 1093
         if ($this->previous_version) {
1094 1094
             $rdf .= "    <sioc:previous_version>\n";
1095
-            $rdf .= "        <sioct:WikiArticle rdf:about=\"" . clean($this->previous_version) . "\">\n";
1096
-            $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . clean(
1097
-                    'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki=' . $this->previous_version
1095
+            $rdf .= "        <sioct:WikiArticle rdf:about=\"".clean($this->previous_version)."\">\n";
1096
+            $rdf .= "            <rdfs:seeAlso rdf:resource=\"".clean(
1097
+                    'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki='.$this->previous_version
1098 1098
                 );
1099 1099
             if ($this->api) {
1100
-                $rdf .= clean("&api=" . $this->api);
1100
+                $rdf .= clean("&api=".$this->api);
1101 1101
             }
1102 1102
             $rdf .= "\"/>\n";
1103 1103
             $rdf .= "        </sioct:WikiArticle>\n";
@@ -1117,12 +1117,12 @@  discard block
 block discarded – undo
1117 1117
         }
1118 1118
         if ($this->next_version) {
1119 1119
             $rdf .= "    <sioc:next_version>\n";
1120
-            $rdf .= "        <sioct:WikiArticle rdf:about=\"" . clean($this->next_version) . "\">\n";
1121
-            $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . clean(
1122
-                    'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki=' . $this->next_version
1120
+            $rdf .= "        <sioct:WikiArticle rdf:about=\"".clean($this->next_version)."\">\n";
1121
+            $rdf .= "            <rdfs:seeAlso rdf:resource=\"".clean(
1122
+                    'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki='.$this->next_version
1123 1123
                 );
1124 1124
             if ($this->api) {
1125
-                $rdf .= clean("&api=" . $this->api);
1125
+                $rdf .= clean("&api=".$this->api);
1126 1126
             }
1127 1127
             $rdf .= "\"/>\n";
1128 1128
             $rdf .= "        </sioct:WikiArticle>\n";
@@ -1142,12 +1142,12 @@  discard block
 block discarded – undo
1142 1142
         }
1143 1143
         if ($this->latest_version) {
1144 1144
             $rdf .= "    <sioc:latest_version>\n";
1145
-            $rdf .= "        <sioct:WikiArticle rdf:about=\"" . clean($this->latest_version) . "\">\n";
1146
-            $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . clean(
1147
-                    'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki=' . $this->latest_version
1145
+            $rdf .= "        <sioct:WikiArticle rdf:about=\"".clean($this->latest_version)."\">\n";
1146
+            $rdf .= "            <rdfs:seeAlso rdf:resource=\"".clean(
1147
+                    'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki='.$this->latest_version
1148 1148
                 );
1149 1149
             if ($this->api) {
1150
-                $rdf .= clean("&api=" . $this->api);
1150
+                $rdf .= clean("&api=".$this->api);
1151 1151
             }
1152 1152
             $rdf .= "\"/>\n";
1153 1153
             $rdf .= "        </sioct:WikiArticle>\n";
@@ -1155,12 +1155,12 @@  discard block
 block discarded – undo
1155 1155
         }
1156 1156
         if ($this->has_discussion && (strpos($this->has_discussion, 'Talk:Talk:') == false)) {
1157 1157
             $rdf .= "    <sioc:has_discussion>\n";
1158
-            $rdf .= "        <sioct:WikiArticle rdf:about=\"" . clean($this->has_discussion) . "\">\n";
1159
-            $rdf .= "            <rdfs:seeAlso rdf:resource=\"" . clean(
1160
-                    'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki=' . $this->has_discussion
1158
+            $rdf .= "        <sioct:WikiArticle rdf:about=\"".clean($this->has_discussion)."\">\n";
1159
+            $rdf .= "            <rdfs:seeAlso rdf:resource=\"".clean(
1160
+                    'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki='.$this->has_discussion
1161 1161
                 );
1162 1162
             if ($this->api) {
1163
-                $rdf .= clean("&api=" . $this->api);
1163
+                $rdf .= clean("&api=".$this->api);
1164 1164
             }
1165 1165
             $rdf .= "\"/>\n";
1166 1166
             $rdf .= "        </sioct:WikiArticle>\n";
@@ -1168,21 +1168,21 @@  discard block
 block discarded – undo
1168 1168
         }
1169 1169
         if ($this->has_container) {
1170 1170
             $rdf .= "    <sioc:has_container>\n";
1171
-            $rdf .= "        <sioct:Wiki rdf:about=\"" . clean($this->has_container) . "\"/>\n";
1171
+            $rdf .= "        <sioct:Wiki rdf:about=\"".clean($this->has_container)."\"/>\n";
1172 1172
             $rdf .= "    </sioc:has_container>\n";
1173 1173
         }
1174 1174
         if ($this->redirpage) {
1175
-            $rdf .= "    <owl:sameAs rdf:resource=\"" . clean($this->redirpage) . "\"/>\n";
1176
-            $rdf .= "    <rdfs:seeAlso rdf:resource=\"" . clean(
1177
-                    'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki=' . $this->redirpage
1175
+            $rdf .= "    <owl:sameAs rdf:resource=\"".clean($this->redirpage)."\"/>\n";
1176
+            $rdf .= "    <rdfs:seeAlso rdf:resource=\"".clean(
1177
+                    'http://ws.sioc-project.org/mediawiki/mediawiki.php?wiki='.$this->redirpage
1178 1178
                 );
1179 1179
             if ($this->api) {
1180
-                $rdf .= clean("&api=" . $this->api);
1180
+                $rdf .= clean("&api=".$this->api);
1181 1181
             }
1182 1182
             $rdf .= "\"/>\n";
1183 1183
         }
1184 1184
 
1185
-        $rdf .= "</" . $this->_type . ">\n";
1185
+        $rdf .= "</".$this->_type.">\n";
1186 1186
         return $rdf;
1187 1187
     }
1188 1188
 }
@@ -1206,7 +1206,7 @@  discard block
 block discarded – undo
1206 1206
 
1207 1207
     public function getContent(&$exp): string
1208 1208
     {
1209
-        $rdf = '<' . $this->type . " rdf:about=\"" . clean($this->url) . "\"/>\n";
1209
+        $rdf = '<'.$this->type." rdf:about=\"".clean($this->url)."\"/>\n";
1210 1210
         return $rdf;
1211 1211
     }
1212 1212
 }
@@ -1230,7 +1230,7 @@  discard block
 block discarded – undo
1230 1230
 
1231 1231
     public function getContent(&$exp): string
1232 1232
     {
1233
-        $rdf = '<' . $this->type . " rdf:about=\"" . clean($this->url) . "\"/>\n";
1233
+        $rdf = '<'.$this->type." rdf:about=\"".clean($this->url)."\"/>\n";
1234 1234
         return $rdf;
1235 1235
     }
1236 1236
 }
Please login to merge, or discard this patch.
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.
action.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
                 if (function_exists('header_remove')) {
107 107
                     header_remove();
108 108
                 }
109
-                header('Location: ' . $location['href'], true, 303);
109
+                header('Location: '.$location['href'], true, 303);
110 110
                 exit();
111 111
             } else {
112 112
                 // add meta link to html head
@@ -146,12 +146,12 @@  discard block
 block discarded – undo
146 146
 
147 147
         // Forward to URI with explicit type attribut
148 148
         if (!isset($_GET['type'])) {
149
-            header('Location:' . $_SERVER['REQUEST_URI'] . '&type=' . $sioc_type, true, 302);
149
+            header('Location:'.$_SERVER['REQUEST_URI'].'&type='.$sioc_type, true, 302);
150 150
         }
151 151
 
152 152
         // Include SIOC libs
153
-        require_once(__DIR__ . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . 'sioc_inc.php');
154
-        require_once(__DIR__ . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . 'sioc_dokuwiki.php');
153
+        require_once(__DIR__.DIRECTORY_SEPARATOR.'lib'.DIRECTORY_SEPARATOR.'sioc_inc.php');
154
+        require_once(__DIR__.DIRECTORY_SEPARATOR.'lib'.DIRECTORY_SEPARATOR.'sioc_dokuwiki.php');
155 155
 
156 156
         // Create exporter
157 157
 
@@ -239,9 +239,9 @@  discard block
 block discarded – undo
239 239
         }
240 240
 
241 241
         $exporter->setParameters(
242
-            'Container: ' . $title,
242
+            'Container: '.$title,
243 243
             getAbsUrl(),
244
-            getAbsUrl() . 'doku.php?',
244
+            getAbsUrl().'doku.php?',
245 245
             'utf-8',
246 246
             $this->agentlink
247 247
         );
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
         }
266 266
 
267 267
         // search next level entries (posts, sub containers) in container
268
-        require_once(DOKU_INC . 'inc/search.php');
268
+        require_once(DOKU_INC.'inc/search.php');
269 269
         $dir        = utf8_encodeFN(str_replace(':', '/', $ID));
270 270
         $entries    = array();
271 271
         $posts      = array();
@@ -316,9 +316,9 @@  discard block
 block discarded – undo
316 316
         }
317 317
 
318 318
         $exporter->setParameters(
319
-            'Account: ' . $userinfo['name'],
319
+            'Account: '.$userinfo['name'],
320 320
             getAbsUrl(),
321
-            getAbsUrl() . 'doku.php?',
321
+            getAbsUrl().'doku.php?',
322 322
             'utf-8',
323 323
             $this->agentlink
324 324
         );
@@ -341,16 +341,16 @@  discard block
 block discarded – undo
341 341
         global $ID, $INFO, $REV, $conf;
342 342
 
343 343
         $exporter->setParameters(
344
-            'Article: ' . $INFO['meta']['title'] . ($REV ? ' (rev ' . $REV . ')' : ''),
344
+            'Article: '.$INFO['meta']['title'].($REV ? ' (rev '.$REV.')' : ''),
345 345
             $this->getDokuUrl(),
346
-            $this->getDokuUrl() . 'doku.php?',
346
+            $this->getDokuUrl().'doku.php?',
347 347
             'utf-8',
348 348
             $this->agentlink
349 349
         );
350 350
 
351 351
         // create user object
352 352
         // $id, $uri, $name, $email, $homepage='', $foaf_uri='', $role=false, $nick='', $sioc_url='', $foaf_url=''
353
-        $dwuserpage_id = cleanID($this->getConf('userns')) . ($conf['useslash'] ? '/' : ':') . $INFO['editor'];
353
+        $dwuserpage_id = cleanID($this->getConf('userns')).($conf['useslash'] ? '/' : ':').$INFO['editor'];
354 354
         /*
355 355
         if ($INFO['editor'] && $this->getConf('userns'))
356 356
             $pageuser = new SIOCUser($INFO['editor'],
@@ -372,10 +372,10 @@  discard block
 block discarded – undo
372 372
             normalizeUri(
373 373
                 $exporter->siocURL(
374 374
                     'post',
375
-                    $ID . ($REV ? $exporter->_urlseparator . 'rev' . $exporter->_urlequal . $REV : '')
375
+                    $ID.($REV ? $exporter->_urlseparator.'rev'.$exporter->_urlequal.$REV : '')
376 376
                 )
377 377
             ), // url
378
-            $INFO['meta']['title'] . ($REV ? ' (rev ' . $REV . ')' : ''), // subject
378
+            $INFO['meta']['title'].($REV ? ' (rev '.$REV.')' : ''), // subject
379 379
             rawWiki($ID, $REV) // body (content)
380 380
         );
381 381
         /* encoded content   */
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
         }
391 391
         /* creator/modifier  */
392 392
         if ($INFO['editor'] && $this->getConf('userns')) {
393
-            $wikipage->addCreator(array('foaf:maker' => '#' . $INFO['editor'], 'sioc:modifier' => $dwuserpage_id));
393
+            $wikipage->addCreator(array('foaf:maker' => '#'.$INFO['editor'], 'sioc:modifier' => $dwuserpage_id));
394 394
         }
395 395
         /* is creator        */
396 396
         if (isset($INFO['meta']['date']['created'])) {
@@ -402,16 +402,16 @@  discard block
 block discarded – undo
402 402
         // contributors - only for last revision b/c of wrong meta data for older revisions
403 403
         if (!$REV && $this->getConf('userns') && isset($INFO['meta']['contributor'])) {
404 404
             $cont_temp = array();
405
-            $cont_ns   = $this->getConf('userns') . ($conf['useslash'] ? '/' : ':');
405
+            $cont_ns   = $this->getConf('userns').($conf['useslash'] ? '/' : ':');
406 406
             foreach ($INFO['meta']['contributor'] as $cont_id => $cont_name) {
407
-                $cont_temp[$cont_ns . $cont_id] = $cont_name;
407
+                $cont_temp[$cont_ns.$cont_id] = $cont_name;
408 408
             }
409 409
             $wikipage->addContributors($cont_temp);
410 410
         }
411 411
 
412 412
         // backlinks - only for last revision
413 413
         if (!$REV) {
414
-            require_once(DOKU_INC . 'inc/fulltext.php');
414
+            require_once(DOKU_INC.'inc/fulltext.php');
415 415
             $backlinks = ft_backlinks($ID);
416 416
             if (count($backlinks) > 0) {
417 417
                 $wikipage->addBacklinks($backlinks);
@@ -569,21 +569,21 @@  discard block
 block discarded – undo
569 569
         switch ($sioc_type) {
570 570
             case 'container':
571 571
                 $title     = htmlentities(
572
-                    "Container '" . ($INFO['meta']['title'] ?? $ID) . "' (SIOC document as RDF/XML)"
572
+                    "Container '".($INFO['meta']['title'] ?? $ID)."' (SIOC document as RDF/XML)"
573 573
                 );
574 574
                 $queryAttr = array('type' => 'container');
575 575
                 break;
576 576
 
577 577
             case 'user':
578
-                $title     = htmlentities("User account '" . $userinfo['name'] . "' (SIOC document as RDF/XML)");
578
+                $title     = htmlentities("User account '".$userinfo['name']."' (SIOC document as RDF/XML)");
579 579
                 $queryAttr = array('type' => 'user');
580 580
                 break;
581 581
 
582 582
             case 'post':
583 583
             default:
584
-                $title     = htmlentities("Article '" . $INFO['meta']['title'] . "' (SIOC document as RDF/XML)");
584
+                $title     = htmlentities("Article '".$INFO['meta']['title']."' (SIOC document as RDF/XML)");
585 585
                 $queryAttr = array('type' => 'post');
586
-                if (isset($_GET['rev']) && $_GET['rev'] === (int)$_GET['rev']) {
586
+                if (isset($_GET['rev']) && $_GET['rev'] === (int) $_GET['rev']) {
587 587
                     $queryAttr['rev'] = $_GET['rev'];
588 588
                 }
589 589
                 break;
@@ -655,7 +655,7 @@  discard block
 block discarded – undo
655 655
         }
656 656
 
657 657
         // get user id
658
-        $userid = str_replace(cleanID($pobj->getConf('userns')) . ($conf['useslash'] ? '/' : ':'), '', $id);
658
+        $userid = str_replace(cleanID($pobj->getConf('userns')).($conf['useslash'] ? '/' : ':'), '', $id);
659 659
 
660 660
         if ($info = $auth->getUserData($userid)) {
661 661
             if ($key) {
Please login to merge, or discard this patch.