Skip to content

Commit af24da4

Browse files
committed
Clean one-liner comments.
1 parent f25c781 commit af24da4

File tree

160 files changed

+410
-410
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+410
-410
lines changed

bin/initMDSPdo.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/usr/bin/env php
22
<?php
33

4-
/* This is the base directory of the SimpleSAMLphp installation. */
4+
// This is the base directory of the SimpleSAMLphp installation
55
$baseDir = dirname(dirname(__FILE__));
66

7-
/* Add library autoloader and configuration. */
7+
// Add library autoloader and configuration
88
require_once $baseDir . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . '_autoload.php';
99
require_once $baseDir . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'config.php';
1010

bin/memcacheSync.php

+8-8
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?php
33

44

5-
/* Check that the memcache library is enabled. */
5+
// Check that the memcache library is enabled
66
if(!class_exists('Memcache')) {
77
echo("Error: the memcache library appears to be unavailable.\n");
88
echo("\n");
@@ -17,21 +17,21 @@
1717
exit(1);
1818
}
1919

20-
/* This is the base directory of the SimpleSAMLphp installation. */
20+
// This is the base directory of the SimpleSAMLphp installation
2121
$baseDir = dirname(dirname(__FILE__));
2222

23-
/* Add library autoloader. */
23+
// Add library autoloader
2424
require_once($baseDir . '/lib/_autoload.php');
2525

26-
/* Initialize the configuration. */
26+
// Initialize the configuration
2727
$configdir = SimpleSAML\Utils\Config::getConfigDir();
2828
SimpleSAML_Configuration::setConfigDir($configdir);
2929

30-
/* Things we should warn the user about. */
30+
// Things we should warn the user about
3131
$warnServerDown = 0;
3232
$warnBigSlab = 0;
3333

34-
/* We use the stats interface to determine which servers exists. */
34+
// We use the stats interface to determine which servers exists
3535
$stats = SimpleSAML_Memcache::getRawStats();
3636

3737
$keys = array();
@@ -105,7 +105,7 @@ function getServerKeys($server) {
105105
exit(1);
106106
}
107107

108-
/* Read list of slabs. */
108+
// Read list of slabs
109109
$slabs = array();
110110
while( ($line = fgets($socket)) !== FALSE) {
111111
$line = rtrim($line);
@@ -121,7 +121,7 @@ function getServerKeys($server) {
121121
}
122122
}
123123

124-
/* Dump keys in slabs. */
124+
// Dump keys in slabs
125125
$keys = array();
126126
foreach($slabs as $slab) {
127127

bin/pwgen.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
*/
77

88

9-
/* This is the base directory of the SimpleSAMLphp installation. */
9+
// This is the base directory of the SimpleSAMLphp installation
1010
$baseDir = dirname(dirname(__FILE__));
1111

12-
/* Add library autoloader. */
12+
// Add library autoloader
1313
require_once($baseDir . '/lib/_autoload.php');
1414

1515

bin/translation.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/usr/bin/env php
22
<?php
33

4-
/* This is the base directory of the SimpleSAMLphp installation. */
4+
// This is the base directory of the SimpleSAMLphp installation
55
$baseDir = dirname(dirname(__FILE__));
66

7-
/* Add library autoloader. */
7+
// Add library autoloader
88
require_once($baseDir . '/lib/_autoload.php');
99

1010
if (count($argv) !== 3) {

config-templates/acl.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,34 +9,34 @@
99
'adminlist' => array(
1010
//array('allow', 'equals', 'mail', '[email protected]'),
1111
//array('allow', 'has', 'groups', 'admin'),
12-
/* The default action is to deny access. */
12+
// The default action is to deny access.
1313
),
1414

1515
'example-simple' => array(
1616
array('allow', 'equals', 'mail', '[email protected]'),
1717
array('allow', 'equals', 'mail', '[email protected]'),
18-
/* The default action is to deny access. */
18+
// The default action is to deny access.
1919
),
2020

2121
'example-deny-some' => array(
2222
array('deny', 'equals', 'mail', '[email protected]'),
23-
array('allow'), /* Allow everybody else. */
23+
array('allow'), // Allow everybody else.
2424
),
2525

2626
'example-maildomain' => array(
2727
array('allow', 'equals-preg', 'mail', '/@example\.org$/'),
28-
/* The default action is to deny access. */
28+
// The default action is to deny access.
2929
),
3030

3131
'example-allow-employees' => array(
3232
array('allow', 'has', 'eduPersonAffiliation', 'employee'),
33-
/* The default action is to deny access. */
33+
// The default action is to deny access.
3434
),
3535

3636
'example-allow-employees-not-students' => array(
3737
array('deny', 'has', 'eduPersonAffiliation', 'student'),
3838
array('allow', 'has', 'eduPersonAffiliation', 'employee'),
39-
/* The default action is to deny access. */
39+
// The default action is to deny access.
4040
),
4141

4242
'example-deny-student-except-one' => array(

config-templates/ldap.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
* Searching the DN of the user.
2121
*/
2222

23-
/* Set this to TRUE to enable searching. */
23+
// Set this to TRUE to enable searching.
2424
'auth.ldap.search.enable' => FALSE,
2525

26-
/* The base DN for the search. */
26+
// The base DN for the search.
2727
'auth.ldap.search.base' => NULL,
2828

2929
/* The attribute(s) to search for.

config-templates/ldapmulti.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
'feide.no' => array(
1111
'description' => 'Feide',
12-
/* for a description of options see equivalent options in ldap.php starting with auth.ldap. */
12+
// for a description of options see equivalent options in ldap.php starting with auth.ldap.
1313
'dnpattern' => 'uid=%username%,dc=feide,dc=no,ou=feide,dc=uninett,dc=no',
1414
'hostname' => 'ldap.uninett.no',
1515
'attributes' => NULL,

lib/SimpleSAML/Auth/Default.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public static function initLogoutReturn($returnURL, $authority) {
6060

6161
$as = SimpleSAML_Auth_Source::getById($authority);
6262
if ($as === NULL) {
63-
/* The authority wasn't an authentication source... */
63+
// The authority wasn't an authentication source...
6464
self::logoutCompleted($state);
6565
}
6666

0 commit comments

Comments
 (0)