Completed
Pull Request — master (#314)
by Thomas
07:26
created
htdocs/lib2/logic/cache.class.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -8,8 +8,8 @@  discard block
 block discarded – undo
8 8
  *   add/remove etc. is executed instantly
9 9
  ***************************************************************************/
10 10
 
11
-require_once __DIR__ . '/logtypes.inc.php';
12
-require_once __DIR__ . '/../../lib/cache.inc.php';
11
+require_once __DIR__.'/logtypes.inc.php';
12
+require_once __DIR__.'/../../lib/cache.inc.php';
13 13
 
14 14
 class cache
15 15
 {
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
         );
284 284
         if ($r = sql_fetch_assoc($rs)) {
285 285
             if ($r['listing_outdated'] == 2) {
286
-                $url = 'viewlogs.php?cacheid=' . $this->getCacheId() . '#log' . $r['id'];
286
+                $url = 'viewlogs.php?cacheid='.$this->getCacheId().'#log'.$r['id'];
287 287
             }
288 288
         }
289 289
         sql_free_result($rs);
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
                     `cache_logs`.`text` AS `text`,
474 474
                     `cache_logs`.`text_html` AS `texthtml`,
475 475
                     `cache_logs`.`picture`,
476
-                    ' . $delfields . ",
476
+                    ' . $delfields.",
477 477
                     `user`.`username` AS `username`,
478 478
                     IF(ISNULL(`cache_rating`.`cache_id`), 0, `cache_logs`.`type` IN (1,7)) AS `recommended`
479 479
              FROM $table AS `cache_logs`
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
                  ON `cache_logs`.`cache_id`=`cache_rating`.`cache_id`
484 484
                  AND `cache_logs`.`user_id`=`cache_rating`.`user_id`
485 485
                  AND `cache_logs`.`date`=`cache_rating`.`rating_date`
486
-             " . $addjoin . "
486
+             ".$addjoin."
487 487
              WHERE `cache_logs`.`cache_id`='&1'
488 488
              ORDER BY `cache_logs`.`order_date` DESC, `cache_logs`.`date_created` DESC, `id` DESC
489 489
              LIMIT &2, &3",
@@ -508,7 +508,7 @@  discard block
 block discarded – undo
508 508
             );
509 509
             while ($rPicture = sql_fetch_assoc($rsPictures)) {
510 510
                 if (trim($rPicture['title']) == '') {
511
-                    $rPicture['title'] = $translate->t('Picture', '', '', 0) . ' ' . (count($pictures) + 1);
511
+                    $rPicture['title'] = $translate->t('Picture', '', '', 0).' '.(count($pictures) + 1);
512 512
                 }
513 513
                 $pictures[] = $rPicture;
514 514
             }
@@ -521,7 +521,7 @@  discard block
 block discarded – undo
521 521
                 if (!$newcoord) {
522 522
                     $newcoord = $coords[$coordpos];
523 523
                 }
524
-                ++ $coordpos;
524
+                ++$coordpos;
525 525
             }
526 526
             if ($newcoord) {
527 527
                 $distance = geomath::calcDistance(
@@ -554,7 +554,7 @@  discard block
 block discarded – undo
554 554
             $original = count($coords) - 1;
555 555
             $lastlogdate = $logs[count($logs) - 1]['order_date'];
556 556
             while ($original > 0 && $coords[$original - 1]['date'] < $lastlogdate) {
557
-                -- $original;
557
+                --$original;
558 558
             }
559 559
             $coord = new coordinate($coords[$original]['latitude'], $coords[$original]['longitude']);
560 560
             $logs[] = [
@@ -676,9 +676,9 @@  discard block
 block discarded – undo
676 676
             $login->userid,
677 677
             $this->nCacheId,
678 678
             0,
679
-            'Cache ' . sql_escape($this->nCacheId) . ' has changed the owner from userid ' . sql_escape(
679
+            'Cache '.sql_escape($this->nCacheId).' has changed the owner from userid '.sql_escape(
680 680
                 $this->getUserId()
681
-            ) . ' to ' . sql_escape($userId) . ' by ' . sql_escape($login->userid)
681
+            ).' to '.sql_escape($userId).' by '.sql_escape($login->userid)
682 682
         );
683 683
         // Adoptions now are recorded by trigger in cache_adoptions table.
684 684
         // Recording adoptions in 'logentries' may be discarded after ensuring that the
@@ -955,7 +955,7 @@  discard block
 block discarded – undo
955 955
             $logTypes[$i]['selected'] = ($logtype == $defaultLogType) ? true : false;
956 956
             $logTypes[$i]['name'] = $logtypeNames[$logtype];
957 957
             $logTypes[$i]['id'] = $logtype;
958
-            $i ++;
958
+            $i++;
959 959
         }
960 960
 
961 961
         // return
Please login to merge, or discard this patch.
htdocs/lib2/logic/useroptions.class.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
  *
9 9
  ***************************************************************************/
10 10
 
11
-require_once __DIR__ . '/const.inc.php';
11
+require_once __DIR__.'/const.inc.php';
12 12
 
13 13
 class useroptions
14 14
 {
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
             $this->nOptions[$pId]['option_value'] = $pValue;
151 151
 
152 152
             return true;
153
-        } elseif (preg_match("/" . $this->nOptions[$pId]['check_regex'] . "/", $pValue) || strlen($pValue) == 0) {
153
+        } elseif (preg_match("/".$this->nOptions[$pId]['check_regex']."/", $pValue) || strlen($pValue) == 0) {
154 154
             $this->nOptions[$pId]['option_value'] = $pValue;
155 155
 
156 156
             return true;
Please login to merge, or discard this patch.
htdocs/lib2/logic/picture.class.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
  *   add/remove etc. is executed instantly
9 9
  ***************************************************************************/
10 10
 
11
-require_once __DIR__ . '/const.inc.php';
11
+require_once __DIR__.'/const.inc.php';
12 12
 
13 13
 class picture
14 14
 {
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
         $sExtension = mb_strtolower(substr($sFilename, strrpos($sFilename, '.') + 1));
97 97
 
98
-        if (strpos(';' . $opt['logic']['pictures']['extensions'] . ';', ';' . $sExtension . ';') !== false) {
98
+        if (strpos(';'.$opt['logic']['pictures']['extensions'].';', ';'.$sExtension.';') !== false) {
99 99
             return true;
100 100
         } else {
101 101
             return false;
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 
119 119
         $sUUID = $this->getUUID();
120 120
 
121
-        $this->setUrl($opt['logic']['pictures']['url'] . $sUUID . '.' . $sExtension);
121
+        $this->setUrl($opt['logic']['pictures']['url'].$sUUID.'.'.$sExtension);
122 122
         //$this->setThumbUrl($opt['logic']['pictures']['thumb_url'] . substr($sUUID, 0, 1) . '/' . substr($sUUID, 1, 1) . '/' . $sUUID . '.' . $sExtension);
123 123
 
124 124
         $this->bFilenamesSet = true;
@@ -158,8 +158,8 @@  discard block
 block discarded – undo
158 158
             $archive = true;
159 159
         }
160 160
 
161
-        sql("SET @archive_picop=" . ($archive ? "TRUE" : "FALSE"));
162
-        sql_slave("SET @archive_picop=" . ($archive ? "TRUE" : "FALSE"));
161
+        sql("SET @archive_picop=".($archive ? "TRUE" : "FALSE"));
162
+        sql_slave("SET @archive_picop=".($archive ? "TRUE" : "FALSE"));
163 163
 
164 164
         sql("SET @original_picid='&1'", $original_id);
165 165
         sql_slave("SET @original_picid='&1'", $original_id);
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
         $url = $this->getUrl();
272 272
         $fna = mb_split('\\/', $url);
273 273
 
274
-        return $opt['logic']['pictures']['dir'] . end($fna);
274
+        return $opt['logic']['pictures']['dir'].end($fna);
275 275
     }
276 276
 
277 277
     public function getThumbFilename()
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
         $dir1 = mb_strtoupper(mb_substr($filename, 0, 1));
290 290
         $dir2 = mb_strtoupper(mb_substr($filename, 1, 1));
291 291
 
292
-        return $opt['logic']['pictures']['thumb_dir'] . $dir1 . '/' . $dir2 . '/' . $filename;
292
+        return $opt['logic']['pictures']['thumb_dir'].$dir1.'/'.$dir2.'/'.$filename;
293 293
     }
294 294
 
295 295
     public function getLogId()
@@ -435,9 +435,9 @@  discard block
 block discarded – undo
435 435
                 return false;
436 436
             } else {
437 437
                 // restore picture file
438
-                $this->setUrl($original_url);        // set the url, so that we can
439
-                $filename = $this->getFilename();    // .. retreive the file path+name
440
-                $this->setFilenames($filename);      // now set url(s) from the new uuid
438
+                $this->setUrl($original_url); // set the url, so that we can
439
+                $filename = $this->getFilename(); // .. retreive the file path+name
440
+                $this->setFilenames($filename); // now set url(s) from the new uuid
441 441
                 try {
442 442
                     rename($this->deleted_filename($filename), $this->getFilename());
443 443
                 } catch (Exception $e) {
@@ -514,7 +514,7 @@  discard block
 block discarded – undo
514 514
         $fna[count($fna) - 2] = 'deleted';
515 515
         $dp = "";
516 516
         foreach ($fna as $fp) {
517
-            $dp .= "/" . $fp;
517
+            $dp .= "/".$fp;
518 518
         }
519 519
 
520 520
         return substr($dp, 1);
@@ -538,13 +538,13 @@  discard block
 block discarded – undo
538 538
     public function getPageLink()
539 539
     {
540 540
         if ($this->getObjectType() == OBJECT_CACHELOG) {
541
-            $pl = 'viewcache.php?cacheid=' . urlencode($this->getCacheId());
541
+            $pl = 'viewcache.php?cacheid='.urlencode($this->getCacheId());
542 542
             if (!$this->isVisibleOnCachePage()) {
543 543
                 $pl .= "&log=A";
544 544
             }
545
-            $pl .= "#log" . urlencode($this->getLogId());
545
+            $pl .= "#log".urlencode($this->getLogId());
546 546
         } elseif ($this->getObjectType() == OBJECT_CACHE) {
547
-            $pl = 'editcache.php?cacheid=' . urlencode($this->getCacheId()) . '#pictures';
547
+            $pl = 'editcache.php?cacheid='.urlencode($this->getCacheId()).'#pictures';
548 548
         } else {
549 549
             $pl = false;
550 550
         }
Please login to merge, or discard this patch.
htdocs/lib2/logic/logtypes.inc.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
          FROM `log_types`
29 29
          LEFT JOIN `sys_trans_text`
30 30
              ON `sys_trans_text`.`trans_id` = `log_types`.`trans_id`
31
-             AND `sys_trans_text`.`lang`='" . sql_escape($locale) . "'"
31
+             AND `sys_trans_text`.`lang`='" . sql_escape($locale)."'"
32 32
     );
33 33
     while ($r = sql_fetch_array($rs)) {
34 34
         $log_types[$r['id']] = $r['type_name'];
@@ -91,28 +91,28 @@  discard block
 block discarded – undo
91 91
 
92 92
     $allowed_logtypes = array();
93 93
     if ($owner || $admin_report || $admin_locked) {
94
-        $allowed_logtypes[] = 3;   // note
94
+        $allowed_logtypes[] = 3; // note
95 95
     }
96 96
     if (($owner && $statuslogs) || $admin_report) {
97 97
         if ($cache_status != 5 && (($cache_status != 4 && $cache_status != 7) || $admin_report)) {
98
-            $allowed_logtypes[] = 10;  // ready for search
99
-            $allowed_logtypes[] = 11;  // temporarily not available
100
-            $allowed_logtypes[] = 9;   // archived
101
-            $allowed_logtypes[] = 13;  // locked
98
+            $allowed_logtypes[] = 10; // ready for search
99
+            $allowed_logtypes[] = 11; // temporarily not available
100
+            $allowed_logtypes[] = 9; // archived
101
+            $allowed_logtypes[] = 13; // locked
102 102
         }
103 103
         if ($admin_report || $old_logtype == 14) {
104 104
             $allowed_logtypes[] = 14;
105 105
         }  // locked, invisible
106 106
     }
107 107
     if ($cache_type == 6) { // event
108
-        $allowed_logtypes[] = 8;   // will attend
109
-        $allowed_logtypes[] = 7;   // attended
108
+        $allowed_logtypes[] = 8; // will attend
109
+        $allowed_logtypes[] = 7; // attended
110 110
     } else {
111
-        $allowed_logtypes[] = 1;   // found
112
-        $allowed_logtypes[] = 2;   // not found
111
+        $allowed_logtypes[] = 1; // found
112
+        $allowed_logtypes[] = 2; // not found
113 113
     }
114 114
     if (!($owner || $admin_report || $admin_locked)) {
115
-        $allowed_logtypes[] = 3;   // note
115
+        $allowed_logtypes[] = 3; // note
116 116
     }
117 117
 
118 118
     // always allow to keep the existing logtype when the log is edited by an admin
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
             } elseif (!$opt['logic']['admin']['team_comments_only_for_reports'] || admin_has_open_report($cache_id)) {
152 152
                 // allowed for report processing by admins
153 153
                 $allowed = true;
154
-            } elseif ($login->hasAdminPriv(ADMIN_USER) && in_array($rCache['status'], [6,7])) {
154
+            } elseif ($login->hasAdminPriv(ADMIN_USER) && in_array($rCache['status'], [6, 7])) {
155 155
                 // allowed for admins && locked caches, see http://forum.opencaching.de/index.php?topic=3102.msg39517#msg39517
156 156
                 $allowed = true;
157 157
             } else {
Please login to merge, or discard this patch.
htdocs/lib2/logic/sitemapxml.class.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 {
13 13
     public $sDefaultChangeFreq = 'monthly';
14 14
     public $nMaxFileSize = 9961472; // max file size, 10MB by specification
15
-    public $nMaxUrlCount = 50000;   // max number of URLs per file, 50000 by specification
15
+    public $nMaxUrlCount = 50000; // max number of URLs per file, 50000 by specification
16 16
 
17 17
     public $sPath = '';
18 18
     public $sDomain = '';
@@ -34,12 +34,12 @@  discard block
 block discarded – undo
34 34
         $this->sPath = $sPath;
35 35
         $this->sDomain = $sDomain;
36 36
 
37
-        $this->oIndexFile = fopen($sPath . 'sitemap.xml', 'w');
37
+        $this->oIndexFile = fopen($sPath.'sitemap.xml', 'w');
38 38
         if ($this->oIndexFile === false) {
39 39
             return false;
40 40
         }
41 41
 
42
-        fwrite($this->oIndexFile, '<?xml version="1.0" encoding="UTF-8"?>' . "\n");
42
+        fwrite($this->oIndexFile, '<?xml version="1.0" encoding="UTF-8"?>'."\n");
43 43
         fwrite($this->oIndexFile, '<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">');
44 44
     }
45 45
 
@@ -53,10 +53,10 @@  discard block
 block discarded – undo
53 53
         }
54 54
 
55 55
         $sXML = '<url>';
56
-        $sXML .= '<loc>' . xmlentities($this->sDomain . $sFile) . '</loc>';
57
-        $sXML .= '<lastmod>' . xmlentities(date('c', $dLastMod)) . '</lastmod>';
58
-        $sXML .= '<changefreq>' . xmlentities($sChangeFreq) . '</changefreq>';
59
-        $sXML .= '<priority>' . xmlentities($nPriority) . '</priority>';
56
+        $sXML .= '<loc>'.xmlentities($this->sDomain.$sFile).'</loc>';
57
+        $sXML .= '<lastmod>'.xmlentities(date('c', $dLastMod)).'</lastmod>';
58
+        $sXML .= '<changefreq>'.xmlentities($sChangeFreq).'</changefreq>';
59
+        $sXML .= '<priority>'.xmlentities($nPriority).'</priority>';
60 60
         $sXML .= '</url>';
61 61
 
62 62
         $this->writeInternal($sXML);
@@ -75,13 +75,13 @@  discard block
 block discarded – undo
75 75
 
76 76
         // open new XML file?
77 77
         if ($this->oSitemapFile === false) {
78
-            $this->nSitemapIndex ++;
79
-            $sFilename = 'sitemap-' . $this->nSitemapIndex . '.xml.gz';
80
-            $this->oSitemapFile = gzopen($this->sPath . $sFilename, 'wb');
78
+            $this->nSitemapIndex++;
79
+            $sFilename = 'sitemap-'.$this->nSitemapIndex.'.xml.gz';
80
+            $this->oSitemapFile = gzopen($this->sPath.$sFilename, 'wb');
81 81
 
82
-            fwrite($this->oIndexFile, '<sitemap><loc>' . xmlentities($this->sDomain . $sFilename) . '</loc><lastmod>' . xmlentities(date('c')) . '</lastmod></sitemap>');
82
+            fwrite($this->oIndexFile, '<sitemap><loc>'.xmlentities($this->sDomain.$sFilename).'</loc><lastmod>'.xmlentities(date('c')).'</lastmod></sitemap>');
83 83
 
84
-            gzwrite($this->oSitemapFile, '<?xml version="1.0" encoding="UTF-8"?>' . "\n");
84
+            gzwrite($this->oSitemapFile, '<?xml version="1.0" encoding="UTF-8"?>'."\n");
85 85
             gzwrite($this->oSitemapFile, '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">');
86 86
             // includes end of xml-tag
87 87
             $this->nWrittenSize = 108;
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
         // write string to XML
92 92
         gzwrite($this->oSitemapFile, $str);
93 93
         $this->nWrittenSize += strlen($str);
94
-        $this->nWrittenCount ++;
94
+        $this->nWrittenCount++;
95 95
     }
96 96
 
97 97
     public function close()
Please login to merge, or discard this patch.
htdocs/lib2/cli.inc.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,14 +19,14 @@
 block discarded – undo
19 19
 }
20 20
 
21 21
 // chicken-egg problem ...
22
-require_once $opt['rootpath'] . 'lib2/const.inc.php';
22
+require_once $opt['rootpath'].'lib2/const.inc.php';
23 23
 
24 24
 // do all output in text format
25 25
 $opt['gui'] = GUI_TEXT;
26 26
 
27 27
 // include the main library
28
-require_once $opt['rootpath'] . 'lib2/common.inc.php';
29
-require_once $opt['rootpath'] . 'lib2/cli.class.php';
28
+require_once $opt['rootpath'].'lib2/common.inc.php';
29
+require_once $opt['rootpath'].'lib2/cli.class.php';
30 30
 
31 31
 if (($opt['debug'] & DEBUG_OUTOFSERVICE) == DEBUG_OUTOFSERVICE) {
32 32
     $cli->debug('exit because DEBUG_OUTOFSERVICE is set');
Please login to merge, or discard this patch.
htdocs/lib2/mail.class.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  *  Unicode Reminder メモ
6 6
  ***************************************************************************/
7 7
 
8
-require_once __DIR__. '/../vendor/autoload.php';
8
+require_once __DIR__.'/../vendor/autoload.php';
9 9
 
10 10
 class mail extends Smarty
11 11
 {
@@ -29,11 +29,11 @@  discard block
 block discarded – undo
29 29
 
30 30
         global $opt;
31 31
 
32
-        $this->template_dir = $opt['rootpath'] . 'templates2/mail/';
33
-        $this->compile_dir = $opt['rootpath'] . 'cache2/smarty/compiled/';
32
+        $this->template_dir = $opt['rootpath'].'templates2/mail/';
33
+        $this->compile_dir = $opt['rootpath'].'cache2/smarty/compiled/';
34 34
         $this->plugins_dir = [
35 35
             'plugins',
36
-            __DIR__ . '/../src/Oc/SmartyPlugins'
36
+            __DIR__.'/../src/Oc/SmartyPlugins'
37 37
         ];
38 38
 
39 39
         // disable caching ...
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     {
55 55
         global $opt;
56 56
 
57
-        return 'mail|' . $opt['template']['locale'] . '|' . $this->compile_id;
57
+        return 'mail|'.$opt['template']['locale'].'|'.$this->compile_id;
58 58
     }
59 59
 
60 60
     public function assign_rs($name, $rs)
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     {
71 71
         global $tpl, $opt;
72 72
 
73
-        if (!$this->template_exists($this->name . '.tpl')) {
73
+        if (!$this->template_exists($this->name.'.tpl')) {
74 74
             $tpl->error(ERROR_MAIL_TEMPLATE_NOT_FOUND);
75 75
         }
76 76
         $this->assign('template', $this->name);
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             set_php_locale();
101 101
         }
102 102
 
103
-        $body = $this->fetch($this->main_template . '.tpl', '', $this->get_compile_id());
103
+        $body = $this->fetch($this->main_template.'.tpl', '', $this->get_compile_id());
104 104
 
105 105
         if ($this->recipient_locale != $sender_locale) {
106 106
             $opt['template']['locale'] = $sender_locale;
@@ -115,19 +115,19 @@  discard block
 block discarded – undo
115 115
         }
116 116
 
117 117
         $aAddHeaders = array();
118
-        $aAddHeaders[] = 'From: "' . $this->from . '" <' . $this->from . '>';
118
+        $aAddHeaders[] = 'From: "'.$this->from.'" <'.$this->from.'>';
119 119
 
120 120
         if ($this->replyTo !== null) {
121
-            $aAddHeaders[] = 'Reply-To: ' . $this->replyTo;
121
+            $aAddHeaders[] = 'Reply-To: '.$this->replyTo;
122 122
         }
123 123
 
124 124
         if ($this->returnPath !== null) {
125
-            $aAddHeaders[] = 'Return-Path: ' . $this->returnPath;
125
+            $aAddHeaders[] = 'Return-Path: '.$this->returnPath;
126 126
         }
127 127
 
128 128
         $mailheaders = implode("\n", array_merge($aAddHeaders, $this->headers));
129 129
 
130
-        return mb_send_mail($this->to, $opt['mail']['subject'] . $this->subject, $body, $mailheaders);
130
+        return mb_send_mail($this->to, $opt['mail']['subject'].$this->subject, $body, $mailheaders);
131 131
     }
132 132
 
133 133
     public static function is_existent_maildomain($domain)
Please login to merge, or discard this patch.
htdocs/lib2/rss.class.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     public function getPubDate()
43 43
     {
44 44
         if (empty($this->pubDate)) {
45
-            return date("d.m.y H:i:s") . "GMT";
45
+            return date("d.m.y H:i:s")."GMT";
46 46
         } else {
47 47
             return $this->pubDate;
48 48
         }
@@ -57,11 +57,11 @@  discard block
 block discarded – undo
57 57
     {
58 58
         $out = $this->header();
59 59
         $out .= "<channel>\n";
60
-        $out .= "<title>" . $this->title . "</title>\n";
61
-        $out .= "<link>" . $this->link . "</link>\n";
62
-        $out .= "<description>" . $this->description . "</description>\n";
63
-        $out .= "<language>" . $this->language . "</language>\n";
64
-        $out .= "<pubDate>" . $this->getPubDate() . "</pubDate>\n";
60
+        $out .= "<title>".$this->title."</title>\n";
61
+        $out .= "<link>".$this->link."</link>\n";
62
+        $out .= "<description>".$this->description."</description>\n";
63
+        $out .= "<language>".$this->language."</language>\n";
64
+        $out .= "<pubDate>".$this->getPubDate()."</pubDate>\n";
65 65
 
66 66
         foreach ($this->tags as $key => $val) {
67 67
             $out .= "<$key>$val</$key>\n";
@@ -88,8 +88,8 @@  discard block
 block discarded – undo
88 88
 
89 89
     public function header()
90 90
     {
91
-        $out = '<?xml version="1.0" encoding="utf-8"?>' . "\n";
92
-        $out .= '<rss version="2.0">' . "\n";
91
+        $out = '<?xml version="1.0" encoding="utf-8"?>'."\n";
92
+        $out .= '<rss version="2.0">'."\n";
93 93
 
94 94
         return $out;
95 95
     }
@@ -141,10 +141,10 @@  discard block
 block discarded – undo
141 141
     public function out()
142 142
     {
143 143
         $out = "<item>\n";
144
-        $out .= "<title>" . $this->title . "</title>\n";
145
-        $out .= "<link>" . $this->link . "</link>\n";
146
-        $out .= "<description>" . $this->description . "</description>\n";
147
-        $out .= "<pubDate>" . $this->getPubDate() . "</pubDate>\n";
144
+        $out .= "<title>".$this->title."</title>\n";
145
+        $out .= "<link>".$this->link."</link>\n";
146
+        $out .= "<description>".$this->description."</description>\n";
147
+        $out .= "<pubDate>".$this->getPubDate()."</pubDate>\n";
148 148
 
149 149
         if ($this->attachment != "") {
150 150
             $out .= "<enclosure url='{$this->attachment}' length='{$this->length}' type='{$this->mimetype}' />";
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
         if (empty($this->guid)) {
154 154
             $this->guid = $this->link;
155 155
         }
156
-        $out .= "<guid>" . $this->guid . "</guid>\n";
156
+        $out .= "<guid>".$this->guid."</guid>\n";
157 157
 
158 158
         foreach ($this->tags as $key => $val) {
159 159
             $out .= "<$key>$val</$key\n>";
Please login to merge, or discard this patch.
htdocs/lib2/OcHTMLPurifier.class.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@  discard block
 block discarded – undo
5 5
  *  Unicode Reminder メモ
6 6
  ***************************************************************************/
7 7
 
8
-require_once __DIR__ . '/../vendor/autoload.php';
9
-require_once __DIR__ . '/Net/IDNA2.php';
8
+require_once __DIR__.'/../vendor/autoload.php';
9
+require_once __DIR__.'/Net/IDNA2.php';
10 10
 
11 11
 // !! THIS CODE IS ALSO USED IN OKAPI !!
12 12
 // Any changes must be tested with OKAPI services/logs/submit method.
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
50 50
         $config->set('Attr.IDPrefix', 'custom_');
51 51
 
52 52
         // enable 'display' and 'visibility' styles for mystery descriptions
53
-        $config->set('CSS.AllowTricky', true);                // + display, visibility, overflow
54
-        $config->set('CSS.ForbiddenProperties', 'overflow');  // - overflow
53
+        $config->set('CSS.AllowTricky', true); // + display, visibility, overflow
54
+        $config->set('CSS.ForbiddenProperties', 'overflow'); // - overflow
55 55
 
56 56
         // prepare additional definitions
57 57
         $def = $config->getHTMLDefinition(true);
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         ); //  HTML5 attribs currently not supported by TinyMCE
66 66
         $def->addElement('legend', 'Inline', 'Flow', 'Common');
67 67
         $def->addElement('q', 'Inline', 'Inline', 'Common', ['cite' => 'URI']);
68
-        $def->addElement('strike', 'Inline', 'Inline', 'Common');   // -> wird in CSS umgewandelt
68
+        $def->addElement('strike', 'Inline', 'Inline', 'Common'); // -> wird in CSS umgewandelt
69 69
         $def->addElement(
70 70
             'area',
71 71
             'Inline',
Please login to merge, or discard this patch.