summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Auth/OpenID/Association.php6
-rw-r--r--Auth/OpenID/BigMath.php2
-rw-r--r--Auth/OpenID/Consumer/Consumer.php14
-rw-r--r--Auth/OpenID/DiffieHellman.php2
-rw-r--r--Auth/OpenID/Store/DumbStore.php4
-rw-r--r--Auth/OpenID/Store/FileStore.php4
-rw-r--r--Auth/OpenID/Store/SQLStore.php4
-rw-r--r--Tests/Auth/OpenID/Association.php4
-rw-r--r--Tests/Auth/OpenID/BigMath.php4
-rw-r--r--Tests/Auth/OpenID/Consumer.php12
-rw-r--r--Tests/Auth/OpenID/CryptUtil.php4
-rw-r--r--Tests/Auth/OpenID/DiffieHellman.php4
-rw-r--r--Tests/Auth/OpenID/HMACSHA1.php4
-rw-r--r--Tests/Auth/OpenID/KVForm.php4
-rw-r--r--Tests/Auth/OpenID/OIDUtil.php4
-rw-r--r--Tests/Auth/OpenID/Parse.php2
-rw-r--r--Tests/Auth/OpenID/StoreTest.php20
-rw-r--r--Tests/TestDriver.php2
-rw-r--r--admin/mathlib4
-rw-r--r--admin/texttest.php4
-rw-r--r--admin/webtest.php2
-rw-r--r--examples/consumer.php12
22 files changed, 61 insertions, 61 deletions
diff --git a/Auth/OpenID/Association.php b/Auth/OpenID/Association.php
index 7d3ac2c..7bc1a15 100644
--- a/Auth/OpenID/Association.php
+++ b/Auth/OpenID/Association.php
@@ -17,9 +17,9 @@
/**
* Includes for utility functions.
*/
-require_once('CryptUtil.php');
-require_once('KVForm.php');
-require_once('OIDUtil.php');
+require_once 'CryptUtil.php';
+require_once 'KVForm.php';
+require_once 'OIDUtil.php';
/**
* This class represents an association between a server and a
diff --git a/Auth/OpenID/BigMath.php b/Auth/OpenID/BigMath.php
index fca708c..f73d876 100644
--- a/Auth/OpenID/BigMath.php
+++ b/Auth/OpenID/BigMath.php
@@ -15,7 +15,7 @@
*/
// For rand
-require_once('Auth/OpenID/CryptUtil.php');
+require_once 'Auth/OpenID/CryptUtil.php';
class Auth_OpenID_MathLibrary {
/**
diff --git a/Auth/OpenID/Consumer/Consumer.php b/Auth/OpenID/Consumer/Consumer.php
index a56d1a1..90710d3 100644
--- a/Auth/OpenID/Consumer/Consumer.php
+++ b/Auth/OpenID/Consumer/Consumer.php
@@ -183,13 +183,13 @@
/**
* Require utility classes and functions for the consumer.
*/
-require_once("Auth/OpenID/Association.php");
-require_once("Auth/OpenID/Consumer/Fetchers.php");
-require_once("Auth/OpenID/Consumer/Parse.php");
-require_once("Auth/OpenID/CryptUtil.php");
-require_once("Auth/OpenID/DiffieHellman.php");
-require_once("Auth/OpenID/KVForm.php");
-require_once("Auth/OpenID/OIDUtil.php");
+require_once "Auth/OpenID/Association.php";
+require_once "Auth/OpenID/Consumer/Fetchers.php";
+require_once "Auth/OpenID/Consumer/Parse.php";
+require_once "Auth/OpenID/CryptUtil.php";
+require_once "Auth/OpenID/DiffieHellman.php";
+require_once "Auth/OpenID/KVForm.php";
+require_once "Auth/OpenID/OIDUtil.php";
/**
* This is the status code returned when either the of the beginAuth
diff --git a/Auth/OpenID/DiffieHellman.php b/Auth/OpenID/DiffieHellman.php
index 2a3325a..872656a 100644
--- a/Auth/OpenID/DiffieHellman.php
+++ b/Auth/OpenID/DiffieHellman.php
@@ -17,7 +17,7 @@
* Require CryptUtil because we need to get a Auth_OpenID_MathWrapper
* object.
*/
-require_once('BigMath.php');
+require_once 'BigMath.php';
$_Auth_OpenID_DEFAULT_MOD = '155172898181473697471232257763715539915724801'.
'966915404479707795314057629378541917580651227423698188993727816152646631'.
diff --git a/Auth/OpenID/Store/DumbStore.php b/Auth/OpenID/Store/DumbStore.php
index b6cf23f..ff9fc56 100644
--- a/Auth/OpenID/Store/DumbStore.php
+++ b/Auth/OpenID/Store/DumbStore.php
@@ -17,8 +17,8 @@
/**
* Import the interface for creating a new store class.
*/
-require_once('Interface.php');
-require_once('Auth/OpenID/CryptUtil.php');
+require_once 'Interface.php';
+require_once 'Auth/OpenID/CryptUtil.php';
/**
* This is a store for use in the worst case, when you have no way of
diff --git a/Auth/OpenID/Store/FileStore.php b/Auth/OpenID/Store/FileStore.php
index 82bca84..e51d602 100644
--- a/Auth/OpenID/Store/FileStore.php
+++ b/Auth/OpenID/Store/FileStore.php
@@ -18,8 +18,8 @@
/**
* Require base class for creating a new interface.
*/
-require_once('Interface.php');
-require_once('Auth/OpenID/OIDUtil.php');
+require_once 'Interface.php';
+require_once 'Auth/OpenID/OIDUtil.php';
function Auth_OpenID_rmtree($dir)
{
diff --git a/Auth/OpenID/Store/SQLStore.php b/Auth/OpenID/Store/SQLStore.php
index 2fb91c7..0a3671d 100644
--- a/Auth/OpenID/Store/SQLStore.php
+++ b/Auth/OpenID/Store/SQLStore.php
@@ -17,8 +17,8 @@
* Require the PEAR DB module because we'll need it for the SQL-based
* stores implemented here.
*/
-require_once('DB.php');
-require_once('Interface.php');
+require_once 'DB.php';
+require_once 'Interface.php';
/**
* Converts a query result to a boolean. If the result is a PEAR
diff --git a/Tests/Auth/OpenID/Association.php b/Tests/Auth/OpenID/Association.php
index d344a21..fcdda0d 100644
--- a/Tests/Auth/OpenID/Association.php
+++ b/Tests/Auth/OpenID/Association.php
@@ -13,8 +13,8 @@
* @license http://www.gnu.org/copyleft/lesser.html LGPL
*/
-require_once('PHPUnit.php');
-require_once('Auth/OpenID/Association.php');
+require_once 'PHPUnit.php';
+require_once 'Auth/OpenID/Association.php';
class Tests_Auth_OpenID_Association extends PHPUnit_TestCase {
function test_me()
diff --git a/Tests/Auth/OpenID/BigMath.php b/Tests/Auth/OpenID/BigMath.php
index 6667a12..13512cb 100644
--- a/Tests/Auth/OpenID/BigMath.php
+++ b/Tests/Auth/OpenID/BigMath.php
@@ -13,8 +13,8 @@
* @license http://www.gnu.org/copyleft/lesser.html LGPL
*/
-require_once('PHPUnit.php');
-require_once('Auth/OpenID/BigMath.php');
+require_once 'PHPUnit.php';
+require_once 'Auth/OpenID/BigMath.php';
class Tests_Auth_OpenID_BinLongConvertRnd extends PHPUnit_TestCase {
var $lib;
diff --git a/Tests/Auth/OpenID/Consumer.php b/Tests/Auth/OpenID/Consumer.php
index 6708de0..8ae649e 100644
--- a/Tests/Auth/OpenID/Consumer.php
+++ b/Tests/Auth/OpenID/Consumer.php
@@ -13,12 +13,12 @@
* @license http://www.gnu.org/copyleft/lesser.html LGPL
*/
-require_once('Auth/OpenID/CryptUtil.php');
-require_once('Auth/OpenID/DiffieHellman.php');
-require_once('Auth/OpenID/Store/FileStore.php');
-require_once('Auth/OpenID/OIDUtil.php');
-require_once('Auth/OpenID/KVForm.php');
-require_once('Auth/OpenID/Consumer/Consumer.php');
+require_once 'Auth/OpenID/CryptUtil.php';
+require_once 'Auth/OpenID/DiffieHellman.php';
+require_once 'Auth/OpenID/Store/FileStore.php';
+require_once 'Auth/OpenID/OIDUtil.php';
+require_once 'Auth/OpenID/KVForm.php';
+require_once 'Auth/OpenID/Consumer/Consumer.php';
class Auth_OpenID_TestConsumer extends Auth_OpenID_Consumer {
/**
diff --git a/Tests/Auth/OpenID/CryptUtil.php b/Tests/Auth/OpenID/CryptUtil.php
index 14ff4ae..a1fcf97 100644
--- a/Tests/Auth/OpenID/CryptUtil.php
+++ b/Tests/Auth/OpenID/CryptUtil.php
@@ -13,8 +13,8 @@
* @license http://www.gnu.org/copyleft/lesser.html LGPL
*/
-require_once('PHPUnit.php');
-require_once('Auth/OpenID/CryptUtil.php');
+require_once 'PHPUnit.php';
+require_once 'Auth/OpenID/CryptUtil.php';
class Tests_Auth_OpenID_CryptUtil extends PHPUnit_TestCase {
function test_length()
diff --git a/Tests/Auth/OpenID/DiffieHellman.php b/Tests/Auth/OpenID/DiffieHellman.php
index 5e43174..d82703d 100644
--- a/Tests/Auth/OpenID/DiffieHellman.php
+++ b/Tests/Auth/OpenID/DiffieHellman.php
@@ -14,8 +14,8 @@
* @license http://www.gnu.org/copyleft/lesser.html LGPL
*/
-require_once('PHPUnit.php');
-require_once('Auth/OpenID/DiffieHellman.php');
+require_once 'PHPUnit.php';
+require_once 'Auth/OpenID/DiffieHellman.php';
class Tests_Auth_OpenID_DiffieHellman_CheckCases extends PHPUnit_TestCase {
function Tests_Auth_OpenID_DiffieHellman_CheckCases($cases, $n)
diff --git a/Tests/Auth/OpenID/HMACSHA1.php b/Tests/Auth/OpenID/HMACSHA1.php
index 00b6b6c..a049bdf 100644
--- a/Tests/Auth/OpenID/HMACSHA1.php
+++ b/Tests/Auth/OpenID/HMACSHA1.php
@@ -14,8 +14,8 @@
* @license http://www.gnu.org/copyleft/lesser.html LGPL
*/
-require_once('PHPUnit.php');
-require_once('Auth/OpenID/HMACSHA1.php');
+require_once 'PHPUnit.php';
+require_once 'Auth/OpenID/HMACSHA1.php';
class Tests_Auth_OpenID_HMACSHA1_TestCase extends PHPUnit_TestCase {
function Tests_Auth_OpenID_HMACSHA1_TestCase(
diff --git a/Tests/Auth/OpenID/KVForm.php b/Tests/Auth/OpenID/KVForm.php
index f103c18..a3c8c57 100644
--- a/Tests/Auth/OpenID/KVForm.php
+++ b/Tests/Auth/OpenID/KVForm.php
@@ -13,8 +13,8 @@
* @license http://www.gnu.org/copyleft/lesser.html LGPL
*/
-require_once('PHPUnit.php');
-require_once('Auth/OpenID/KVForm.php');
+require_once 'PHPUnit.php';
+require_once 'Auth/OpenID/KVForm.php';
$_Tests_Auth_OpenID_kverrors = null;
/**
diff --git a/Tests/Auth/OpenID/OIDUtil.php b/Tests/Auth/OpenID/OIDUtil.php
index 2e6d53c..1719fb2 100644
--- a/Tests/Auth/OpenID/OIDUtil.php
+++ b/Tests/Auth/OpenID/OIDUtil.php
@@ -13,8 +13,8 @@
* @license http://www.gnu.org/copyleft/lesser.html LGPL
*/
-require_once('PHPUnit.php');
-require_once('Auth/OpenID/OIDUtil.php');
+require_once 'PHPUnit.php';
+require_once 'Auth/OpenID/OIDUtil.php';
class Tests_Auth_OpenID_OIDUtil extends PHPUnit_TestCase {
function test_base64()
diff --git a/Tests/Auth/OpenID/Parse.php b/Tests/Auth/OpenID/Parse.php
index 31cca3b..d511290 100644
--- a/Tests/Auth/OpenID/Parse.php
+++ b/Tests/Auth/OpenID/Parse.php
@@ -13,7 +13,7 @@
* @license http://www.gnu.org/copyleft/lesser.html LGPL
*/
-require_once('Auth/OpenID/Consumer/Parse.php');
+require_once 'Auth/OpenID/Consumer/Parse.php';
class Tests_Auth_OpenID_Link extends PHPUnit_TestCase {
function Tests_Auth_OpenID_Link($case)
diff --git a/Tests/Auth/OpenID/StoreTest.php b/Tests/Auth/OpenID/StoreTest.php
index f1408ca..1ab562b 100644
--- a/Tests/Auth/OpenID/StoreTest.php
+++ b/Tests/Auth/OpenID/StoreTest.php
@@ -16,9 +16,9 @@
/**
* Require classes and functions to run the Store tests.
*/
-require_once('Auth/OpenID/Association.php');
-require_once('Auth/OpenID/CryptUtil.php');
-require_once('Auth/OpenID/OIDUtil.php');
+require_once 'Auth/OpenID/Association.php';
+require_once 'Auth/OpenID/CryptUtil.php';
+require_once 'Auth/OpenID/OIDUtil.php';
/**
* This is the host where the SQL stores' databases should be created
@@ -301,7 +301,7 @@ explicitly');
function test_filestore()
{
- require_once('Auth/OpenID/Store/FileStore.php');
+ require_once 'Auth/OpenID/Store/FileStore.php';
$temp_dir = Auth_OpenID_mkdtemp('/tmp');
@@ -327,8 +327,8 @@ explicitly');
return;
}
- require_once('Auth/OpenID/Store/SQLStore.php');
- require_once('DB.php');
+ require_once 'Auth/OpenID/Store/SQLStore.php';
+ require_once 'DB.php';
global $_Auth_OpenID_db_test_host;
@@ -410,8 +410,8 @@ explicitly');
return;
}
- require_once('Auth/OpenID/Store/SQLStore.php');
- require_once('DB.php');
+ require_once 'Auth/OpenID/Store/SQLStore.php';
+ require_once 'DB.php';
$temp_dir = Auth_OpenID_mkdtemp('/tmp');
@@ -446,8 +446,8 @@ explicitly');
return;
}
- require_once('Auth/OpenID/Store/SQLStore.php');
- require_once('DB.php');
+ require_once 'Auth/OpenID/Store/SQLStore.php';
+ require_once 'DB.php';
global $_Auth_OpenID_db_test_host;
diff --git a/Tests/TestDriver.php b/Tests/TestDriver.php
index 50e1d29..d6ab8d5 100644
--- a/Tests/TestDriver.php
+++ b/Tests/TestDriver.php
@@ -54,7 +54,7 @@ function loadTests($test_dir, $test_names)
function global_require_once($name)
{
- require_once($name);
+ require_once $name;
foreach (get_defined_vars() as $k => $v) {
if (!in_array($k, array('name', 'GLOBALS'))) {
$GLOBALS[$k] = $v;
diff --git a/admin/mathlib b/admin/mathlib
index 6cabc91..53f50d0 100644
--- a/admin/mathlib
+++ b/admin/mathlib
@@ -1,10 +1,10 @@
#!/usr/bin/env php
<?php
-require_once('adminutil.php');
+require_once 'adminutil.php';
includeAdd(getParent());
-require_once('Auth/OpenID/CryptUtil.php');
+require_once 'Auth/OpenID/CryptUtil.php';
$lib =& Auth_OpenID_MathLibrary::getLibWrapper();
diff --git a/admin/texttest.php b/admin/texttest.php
index 55f6417..40145ce 100644
--- a/admin/texttest.php
+++ b/admin/texttest.php
@@ -1,7 +1,7 @@
<?php
-require_once('Tests/TestDriver.php');
-require_once('PHPUnit/TestResult.php');
+require_once 'Tests/TestDriver.php';
+require_once 'PHPUnit/TestResult.php';
class TextTestResult extends PHPUnit_TestResult {
function addError(&$test, &$t)
diff --git a/admin/webtest.php b/admin/webtest.php
index 1d3a69d..1076623 100644
--- a/admin/webtest.php
+++ b/admin/webtest.php
@@ -1,6 +1,6 @@
<?php
-require_once('Tests/TestDriver.php');
+require_once 'Tests/TestDriver.php';
$suites = loadSuite();
diff --git a/examples/consumer.php b/examples/consumer.php
index 88194a2..4a69b37 100644
--- a/examples/consumer.php
+++ b/examples/consumer.php
@@ -9,8 +9,8 @@
* Require files to use the OpenID consumer. We need the consumer
* itself, an OpenID store implementation, and some utility functions.
*/
-require_once("Auth/OpenID/Consumer/Consumer.php");
-require_once("Auth/OpenID/OIDUtil.php");
+require_once "Auth/OpenID/Consumer/Consumer.php";
+require_once "Auth/OpenID/OIDUtil.php";
/**
* Create the OpenID store and consumer objects, which we'll use to
@@ -27,7 +27,7 @@ $store_type = 'file';
if ($store_type == 'sqlite') {
- require_once("Auth/OpenID/Store/SQLStore.php");
+ require_once "Auth/OpenID/Store/SQLStore.php";
/**
* This is where the example will store its OpenID information.
@@ -64,7 +64,7 @@ if ($store_type == 'sqlite') {
} else if ($store_type == 'mysql') {
- require_once("Auth/OpenID/Store/SQLStore.php");
+ require_once "Auth/OpenID/Store/SQLStore.php";
/**
* Assume that the database used by the MySQL store has already
@@ -98,7 +98,7 @@ if ($store_type == 'sqlite') {
} else if ($store_type == 'pgsql') {
- require_once("Auth/OpenID/Store/SQLStore.php");
+ require_once "Auth/OpenID/Store/SQLStore.php";
/**
* Assume that the database used by the PostgreSQL store has
@@ -132,7 +132,7 @@ if ($store_type == 'sqlite') {
} else {
- require_once("Auth/OpenID/Store/FileStore.php");
+ require_once "Auth/OpenID/Store/FileStore.php";
/**
* This is where the example will store its OpenID information.