Completed
Pull Request — development (#472)
by Wojciech
06:31
created
htdocs/src/OcLegacy/Cronjobs/SiteMaps.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
         $page = $opt['page'];
54 54
         $url = ($page['https']['mode'] == HTTPS_ENFORCED ? $page['absolute_https_url'] : $page['absolute_http_url']);
55 55
 
56
-        $url = urlencode($url. 'sitemap.xml');
56
+        $url = urlencode($url . 'sitemap.xml');
57 57
 
58 58
         $this->pingSearchEngine('http://www.google.com/webmasters/ping?sitemap=' . $url);
59 59
         $this->pingSearchEngine(
Please login to merge, or discard this patch.
htdocs/src/OcLegacy/Util/SiteMapXml.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         $sXML .= '<lastmod>' . xmlentities(date('c', $dLastMod)) . '</lastmod>';
63 63
         $sXML .= '<changefreq>' . xmlentities($sChangeFreq) . '</changefreq>';
64 64
         $sXML .= '<priority>' . xmlentities($nPriority) . '</priority>';
65
-        $sXML .= '</url>'."\n";
65
+        $sXML .= '</url>' . "\n";
66 66
 
67 67
         $this->writeInternal($sXML);
68 68
     }
Please login to merge, or discard this patch.
htdocs/lib2/logic/user.class.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1591,7 +1591,7 @@  discard block
 block discarded – undo
1591 1591
         global $opt;
1592 1592
 
1593 1593
         // get number of possible rates
1594
-        return (int) floor($this->getStatFound() * $opt['logic']['rating']['percentageOfFounds'] / 100);
1594
+        return (int)floor($this->getStatFound() * $opt['logic']['rating']['percentageOfFounds'] / 100);
1595 1595
     }
1596 1596
 
1597 1597
     public function allowRatings()
@@ -1605,7 +1605,7 @@  discard block
 block discarded – undo
1605 1605
         global $opt;
1606 1606
         $rating = $opt['logic']['rating'];
1607 1607
 
1608
-        return (int) ($rating['percentageOfFounds'] - ($this->getStatFound() % $rating['percentageOfFounds']));
1608
+        return (int)($rating['percentageOfFounds'] - ($this->getStatFound() % $rating['percentageOfFounds']));
1609 1609
     }
1610 1610
 
1611 1611
     public function showStatFounds()
Please login to merge, or discard this patch.
htdocs/src/OcLegacy/Cronjobs/OkapiCleanup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     /**
23 23
      * @param string $okapiVarDir
24 24
      */
25
-    public function __construct($okapiVarDir = __DIR__.'/../../../var/okapi')
25
+    public function __construct($okapiVarDir = __DIR__ . '/../../../var/okapi')
26 26
     {
27 27
         $this->okapiVarDir = $okapiVarDir;
28 28
     }
Please login to merge, or discard this patch.