Permalink
Browse files

NOJIRA Whitespace and Format cleanup, moved to PDT a editor

git-svn-id: https://source.jasig.org/cas-clients/phpcas/trunk@20910 f5dbab47-78f9-eb45-b975-e544023573eb
  • Loading branch information...
1 parent 34fbbf0 commit b18bbad975eb8de5b6de6a4ffd09a58962458aa9 @jfritschi jfritschi committed Jun 28, 2010
View
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<buildpath>
+ <buildpathentry kind="src" path=""/>
+ <buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>
+</buildpath>
View
@@ -1,17 +1,22 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>phpcas-devel</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>net.sourceforge.phpeclipse.parserbuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>net.sourceforge.phpeclipse.phpnature</nature>
- </natures>
-</projectDescription>
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>phpcas-devel</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.dltk.core.scriptbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.php.core.PHPNature</nature>
+ </natures>
+</projectDescription>
View
@@ -1,12 +1,13 @@
<?php
+
/*
* Copyright © 2003-2010, The ESUP-Portail consortium & the JA-SIG Collaborative.
* All rights reserved.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
- *
+ *
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright notice,
@@ -276,7 +277,7 @@
$GLOBALS['PHPCAS_CLIENT'] = null;
/**
- * This global variable is used to store where the initializer is called from
+ * This global variable is used to store where the initializer is called from
* (to print a comprehensive error in case of multiple calls).
*
* @hideinitializer
@@ -334,7 +335,7 @@
* @ingroup public
* @author Pascal Aubry <pascal.aubry at univ-rennes1.fr>
*
- * \internal All its methods access the same object ($PHPCAS_CLIENT, declared
+ * \internal All its methods access the same object ($PHPCAS_CLIENT, declared
* at the end of CAS/client.php).
*/
@@ -474,11 +475,11 @@ public static function setDebug($filename = '') {
if (isset ($_ENV['TMP'])) {
$debugDir = $_ENV['TMP'] . '/';
} else
- if (isset ($_ENV['TEMP'])) {
- $debugDir = $_ENV['TEMP'] . '/';
- } else {
- $debugDir = '';
- }
+ if (isset ($_ENV['TEMP'])) {
+ $debugDir = $_ENV['TEMP'] . '/';
+ } else {
+ $debugDir = '';
+ }
} else {
$debugDir = DEFAULT_DEBUG_DIR;
}
@@ -501,7 +502,7 @@ public static function setDebug($filename = '') {
*/
/**
- * This method is a wrapper for debug_backtrace() that is not available
+ * This method is a wrapper for debug_backtrace() that is not available
* in all PHP versions (>= 4.3.0 only)
*/
public static function backtrace() {
@@ -634,7 +635,7 @@ public static function traceExit() {
*/
/**
- * This method is used to set the language used by phpCAS.
+ * This method is used to set the language used by phpCAS.
* @note Can be called only once.
*
* @param $lang a string representing the language.
@@ -722,7 +723,7 @@ public static function setHTMLFooter($footer) {
/**
* This method is used to tell phpCAS to store the response of the
- * CAS server to PGT requests onto the filesystem.
+ * CAS server to PGT requests onto the filesystem.
*
* @param $format the format used to store the PGT's (`plain' and `xml' allowed)
* @param $path the path where the PGT's should be stored
@@ -752,9 +753,9 @@ public static function setPGTStorageFile($format = '', $path = '') {
/**
* This method is used to tell phpCAS to store the response of the
- * CAS server to PGT requests into a database.
- * @note The connection to the database is done only when needed.
- * As a consequence, bad parameters are detected only when
+ * CAS server to PGT requests into a database.
+ * @note The connection to the database is done only when needed.
+ * As a consequence, bad parameters are detected only when
* initializing PGT storage, except in debug mode.
*
* @param $user the user to access the data with
@@ -814,7 +815,7 @@ public static function setPGTStorageDB($user, $password, $database_type = '', $h
/**
* This method is used to access an HTTP[S] service.
- *
+ *
* @param $url the service to access.
* @param $err_code an error code Possible values are PHPCAS_SERVICE_OK (on
* success), PHPCAS_SERVICE_PT_NO_SERVER_RESPONSE, PHPCAS_SERVICE_PT_BAD_SERVER_RESPONSE,
@@ -853,7 +854,7 @@ public static function serviceWeb($url, & $err_code, & $output) {
/**
* This method is used to access an IMAP/POP3/NNTP service.
- *
+ *
* @param $url a string giving the URL of the service, including the mailing box
* for IMAP URLs, as accepted by imap_open().
* @param $service a string giving for CAS retrieve Proxy ticket
@@ -908,7 +909,7 @@ public static function serviceMail($url, $service, $flags, & $err_code, & $err_m
*/
/**
- * Set the times authentication will be cached before really accessing the CAS server in gateway mode:
+ * Set the times authentication will be cached before really accessing the CAS server in gateway mode:
* - -1: check only once, and then never again (until you pree login)
* - 0: always check
* - n: check every "n" time
@@ -954,8 +955,8 @@ public static function checkAuthentication() {
}
/**
- * This method is called to force authentication if the user was not already
- * authenticated. If the user is not authenticated, halt by redirecting to
+ * This method is called to force authentication if the user was not already
+ * authenticated. If the user is not authenticated, halt by redirecting to
* the CAS server.
*/
public static function forceAuthentication() {
@@ -1141,11 +1142,11 @@ public static function setServerLoginURL($url = '') {
phpCAS :: traceBegin();
if (!is_object($PHPCAS_CLIENT)) {
phpCAS :: error('this method should only be called after
- ' . __CLASS__ . '::client()');
+ ' . __CLASS__ . '::client()');
}
if (gettype($url) != 'string') {
phpCAS :: error('type mismatched for parameter $url (should be
- `string\')');
+ `string\')');
}
$PHPCAS_CLIENT->setServerLoginURL($url);
phpCAS :: traceEnd();
@@ -1162,11 +1163,11 @@ public static function setServerServiceValidateURL($url = '') {
phpCAS :: traceBegin();
if (!is_object($PHPCAS_CLIENT)) {
phpCAS :: error('this method should only be called after
- ' . __CLASS__ . '::client()');
+ ' . __CLASS__ . '::client()');
}
if (gettype($url) != 'string') {
phpCAS :: error('type mismatched for parameter $url (should be
- `string\')');
+ `string\')');
}
$PHPCAS_CLIENT->setServerServiceValidateURL($url);
phpCAS :: traceEnd();
@@ -1183,11 +1184,11 @@ public static function setServerProxyValidateURL($url = '') {
phpCAS :: traceBegin();
if (!is_object($PHPCAS_CLIENT)) {
phpCAS :: error('this method should only be called after
- ' . __CLASS__ . '::client()');
+ ' . __CLASS__ . '::client()');
}
if (gettype($url) != 'string') {
phpCAS :: error('type mismatched for parameter $url (should be
- `string\')');
+ `string\')');
}
$PHPCAS_CLIENT->setServerProxyValidateURL($url);
phpCAS :: traceEnd();
@@ -1203,11 +1204,11 @@ public static function setServerSamlValidateURL($url = '') {
phpCAS :: traceBegin();
if (!is_object($PHPCAS_CLIENT)) {
phpCAS :: error('this method should only be called after
- ' . __CLASS__ . '::client()');
+ ' . __CLASS__ . '::client()');
}
if (gettype($url) != 'string') {
phpCAS :: error('type mismatched for parameter $url (should be
- `string\')');
+ `string\')');
}
$PHPCAS_CLIENT->setServerSamlValidateURL($url);
phpCAS :: traceEnd();
@@ -1237,11 +1238,11 @@ public static function setServerLogoutURL($url = '') {
phpCAS :: traceBegin();
if (!is_object($PHPCAS_CLIENT)) {
phpCAS :: error('this method should only be called after
- ' . __CLASS__ . '::client()');
+ ' . __CLASS__ . '::client()');
}
if (gettype($url) != 'string') {
phpCAS :: error('type mismatched for parameter $url (should be
- `string\')');
+ `string\')');
}
$PHPCAS_CLIENT->setServerLogoutURL($url);
phpCAS :: traceEnd();
Oops, something went wrong.

0 comments on commit b18bbad

Please sign in to comment.