@@ -1,10 +1,10 @@ |
||
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); |
@@ -39,7 +39,7 @@ discard block |
||
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 |
||
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 | } |
@@ -71,7 +71,7 @@ discard block |
||
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(); |