Passed
Branch master (b399c9)
by Tim
02:55
created
lib/Aggregator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
 
241 241
 		$this->signAlg = $config->getString('sign.algorithm', XMLSecurityKey::RSA_SHA1);
242 242
 		if (!in_array($this->signAlg, self::$SUPPORTED_SIGNATURE_ALGORITHMS)) {
243
-			throw new SimpleSAML_Error_Exception('Unsupported signature algorithm '. var_export($this->signAlg, TRUE));
243
+			throw new SimpleSAML_Error_Exception('Unsupported signature algorithm ' . var_export($this->signAlg, TRUE));
244 244
 		}
245 245
 
246 246
 		$this->sslCAFile = $config->getString('ssl.cafile', NULL);
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
 			return;
312 312
 		}
313 313
 
314
-		$expireInfo = (string)$expires;
314
+		$expireInfo = (string) $expires;
315 315
 		if ($tag !== NULL) {
316 316
 			$expireInfo .= ':' . $tag;
317 317
 		}
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
 
355 355
 		$expireData = explode(':', $expireData, 2);
356 356
 
357
-		$expireTime = (int)$expireData[0];
357
+		$expireTime = (int) $expireData[0];
358 358
 		if ($expireTime <= time()) {
359 359
 			return FALSE;
360 360
 		}
Please login to merge, or discard this patch.
templates/list.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 
6 6
 <?php
7 7
 if (count($this->data['sources']) === 0) {
8
-    echo "    <p>".$this->t('{aggregator2:aggregator:no_aggregators}')."</p>\n";
8
+    echo "    <p>" . $this->t('{aggregator2:aggregator:no_aggregators}') . "</p>\n";
9 9
 } else {
10 10
     echo "    <ul>";
11 11
 
@@ -14,17 +14,17 @@  discard block
 block discarded – undo
14 14
         $params = array(
15 15
             'id' => $encId,
16 16
         );
17
-        echo str_repeat(' ', 8)."<li>\n";
18
-        echo str_repeat(' ', 12).'<a href="';
19
-        echo SimpleSAML\Module::getModuleURL('aggregator2/get.php', $params).'">'.htmlspecialchars($id)."</a>\n";
20
-        echo str_repeat(' ', 12).'<a href="';
17
+        echo str_repeat(' ', 8) . "<li>\n";
18
+        echo str_repeat(' ', 12) . '<a href="';
19
+        echo SimpleSAML\Module::getModuleURL('aggregator2/get.php', $params) . '">' . htmlspecialchars($id) . "</a>\n";
20
+        echo str_repeat(' ', 12) . '<a href="';
21 21
         $params['mimetype'] = 'text/plain';
22
-        echo SimpleSAML\Module::getModuleURL('aggregator2/get.php', $params).'">['.
23
-            $this->t('{aggregator2:aggregator:text}')."]</a>\n";
24
-        echo str_repeat(' ', 12).'<a href="';
22
+        echo SimpleSAML\Module::getModuleURL('aggregator2/get.php', $params) . '">[' .
23
+            $this->t('{aggregator2:aggregator:text}') . "]</a>\n";
24
+        echo str_repeat(' ', 12) . '<a href="';
25 25
         $params['mimetype'] = 'application/xml';
26
-        echo SimpleSAML\Module::getModuleURL('aggregator2/get.php', $params)."\">[XML]</a>\n";
27
-        echo str_repeat(' ', 8)."</li>\n";
26
+        echo SimpleSAML\Module::getModuleURL('aggregator2/get.php', $params) . "\">[XML]</a>\n";
27
+        echo str_repeat(' ', 8) . "</li>\n";
28 28
     }
29 29
 
30 30
     echo "    </ul>\n";
Please login to merge, or discard this patch.
www/get.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,13 +35,13 @@
 block discarded – undo
35 35
     $xml = SimpleSAML_Utilities::formatXMLString($xml);
36 36
 }
37 37
 
38
-header('Content-Type: '.$mimetype);
38
+header('Content-Type: ' . $mimetype);
39 39
 header('Content-Length: ' . strlen($xml));
40 40
 
41 41
 /*
42 42
  * At this point, if the ID was forged, getMetadata() would
43 43
  * have failed to find a valid metadata set, so we can trust it.
44 44
  */
45
-header('Content-Disposition: filename='.$id.'.xml');
45
+header('Content-Disposition: filename=' . $id . '.xml');
46 46
 
47 47
 echo $xml;
Please login to merge, or discard this patch.