Skip to content

Commit

Permalink
spelling corrections for CAS.php (#436)
Browse files Browse the repository at this point in the history
spelling corrections
  • Loading branch information
carbtest committed Jan 25, 2024
1 parent 17a0c4d commit 01301fa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions source/CAS.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ class phpCAS

/**
* This variable is used to enable verbose mode
* This pevents debug info to be show to the user. Since it's a security
* This prevents debug info to be show to the user. Since it's a security
* feature the default is false
*
* @hideinitializer
Expand Down Expand Up @@ -409,7 +409,7 @@ public static function proxy($server_version, $server_hostname,
phpCAS :: error(self::$_PHPCAS_INIT_CALL['method'] . '() has already been called (at ' . self::$_PHPCAS_INIT_CALL['file'] . ':' . self::$_PHPCAS_INIT_CALL['line'] . ')');
}

// store where the initialzer is called from
// store where the initializer is called from
$dbg = debug_backtrace();
self::$_PHPCAS_INIT_CALL = array (
'done' => true,
Expand Down Expand Up @@ -560,15 +560,15 @@ public static function log($str)

$indent_str .= '| ';
}
// allow for multiline output with proper identing. Usefull for
// allow for multiline output with proper identing. Useful for
// dumping cas answers etc.
$str2 = str_replace("\n", "\n" . self::$_PHPCAS_DEBUG['unique_id'] . ' ' . $indent_str, $str);
$str3 = self::$_PHPCAS_DEBUG['unique_id'] . ' ' . $indent_str . $str2;
if (isset(self::$_PHPCAS_DEBUG['logger'])) {
self::$_PHPCAS_DEBUG['logger']->info($str3);
}
if (!empty(self::$_PHPCAS_DEBUG['filename'])) {
// Check if file exists and modifiy file permissions to be only
// Check if file exists and modify file permissions to be only
// readable by the webserver
if (!file_exists(self::$_PHPCAS_DEBUG['filename'])) {
touch(self::$_PHPCAS_DEBUG['filename']);
Expand Down Expand Up @@ -1769,7 +1769,7 @@ public static function setSessionIdSalt($salt) {

/**
* If you want your service to be proxied you have to enable it (default
* disabled) and define an accepable list of proxies that are allowed to
* disabled) and define an acceptable list of proxies that are allowed to
* proxy your service.
*
* Add each allowed proxy definition object. For the normal CAS_ProxyChain
Expand All @@ -1790,7 +1790,7 @@ public static function setSessionIdSalt($salt) {
* 'http://client.example.com/'
* )));
*
* For quick testing or in certain production screnarios you might want to
* For quick testing or in certain production scenarios you might want to
* allow allow any other valid service to proxy your service. To do so, add
* the "Any" chain:
* phpCAS::allowProxyChain(new CAS_ProxyChain_Any);
Expand Down Expand Up @@ -1897,7 +1897,7 @@ private static function _validateClientExists()
}

/**
* Checks of a proxy client aready exists
* Checks of a proxy client already exists
*
* @throws CAS_OutOfSequenceBeforeProxyException
*
Expand Down

0 comments on commit 01301fa

Please sign in to comment.