Passed
Push — master ( 122480...5d686c )
by Tim
01:41
created
tests/bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 $projectRoot = dirname(__DIR__);
4
-require_once($projectRoot . '/vendor/autoload.php');
4
+require_once($projectRoot.'/vendor/autoload.php');
5 5
 
6 6
 // Symlink module into ssp vendor lib so that templates and urls can resolve correctly
7
-$linkPath = $projectRoot . '/vendor/simplesamlphp/simplesamlphp/modules/memcookie';
7
+$linkPath = $projectRoot.'/vendor/simplesamlphp/simplesamlphp/modules/memcookie';
8 8
 if (file_exists($linkPath) === false) {
9 9
     echo "Linking '$linkPath' to '$projectRoot'\n";
10 10
     symlink($projectRoot, $linkPath);
Please login to merge, or discard this patch.
www/auth.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 $usernameAttr = $amc_cf->getUsernameAttr();
40 40
 if ($usernameAttr === null || !array_key_exists($usernameAttr, $attributes)) {
41 41
     throw new \SimpleSAML\Error\Exception(
42
-        "The user doesn't have an attribute named '" . $usernameAttr .
42
+        "The user doesn't have an attribute named '".$usernameAttr.
43 43
         "'. This attribute is expected to contain the username."
44 44
     );
45 45
 }
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 if ($groupsAttr !== null) {
51 51
     if (!array_key_exists($groupsAttr, $attributes)) {
52 52
         throw new \SimpleSAML\Error\Exception(
53
-            "The user doesn't have an attribute named '" . $groupsAttr .
53
+            "The user doesn't have an attribute named '".$groupsAttr.
54 54
             "'. This attribute is expected to contain the groups the user is a member of."
55 55
         );
56 56
     }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 $authData['RemoteIP'] = $_SERVER['REMOTE_ADDR'];
63 63
 
64 64
 foreach ($attributes as $n => $v) {
65
-    $authData['ATTR_' . $n] = $v;
65
+    $authData['ATTR_'.$n] = $v;
66 66
 }
67 67
 
68 68
 // store the authentication data in the memcache server
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     if (is_array($v)) {
72 72
         $v = implode(':', $v);
73 73
     }
74
-    $data .= $n . '=' . $v . "\r\n";
74
+    $data .= $n.'='.$v."\r\n";
75 75
 }
76 76
 
77 77
 $memcache = $amc_cf->getMemcache();
Please login to merge, or discard this patch.