summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Hoyt <josh@janrain.com>2005-12-27 20:00:41 +0000
committerJosh Hoyt <josh@janrain.com>2005-12-27 20:00:41 +0000
commit3d7741dd544006039d074f74709cec8aea98a4be (patch)
treea8c6369fd3466c972f56284adff1978c141a0544
parente27383c8ab50f253c4a84844423c2925624e410e (diff)
downloadphp-openid-3d7741dd544006039d074f74709cec8aea98a4be.zip
php-openid-3d7741dd544006039d074f74709cec8aea98a4be.tar.gz
php-openid-3d7741dd544006039d074f74709cec8aea98a4be.tar.bz2
[project @ Normalize whitespace]
-rw-r--r--Net/OpenID/DiffieHellman.php2
-rw-r--r--Net/OpenID/KVForm.php2
-rw-r--r--Tests/Net/OpenID/HMACSHA1.php2
-rw-r--r--Tests/Net/OpenID/KVForm.php30
-rw-r--r--texttest.php2
5 files changed, 19 insertions, 19 deletions
diff --git a/Net/OpenID/DiffieHellman.php b/Net/OpenID/DiffieHellman.php
index dae59ee..ad50a7e 100644
--- a/Net/OpenID/DiffieHellman.php
+++ b/Net/OpenID/DiffieHellman.php
@@ -76,7 +76,7 @@ if (extension_loaded('gmp') || @dl('gmp.' . PHP_SHLIB_SUFFIX) ||
return $result;
}
}
-
+
class Net_OpenID_DiffieHellman {
var $DEFAULT_MOD = '155172898181473697471232257763715539915724801966915404479707795314057629378541917580651227423698188993727816152646631438561595825688188889951272158842675419950341258706556549803580104870537681476726513255747040765857479291291572334510643245094715007229621094194349783925984760375594985848253359305585439638443';
diff --git a/Net/OpenID/KVForm.php b/Net/OpenID/KVForm.php
index ab06d32..b94874d 100644
--- a/Net/OpenID/KVForm.php
+++ b/Net/OpenID/KVForm.php
@@ -66,7 +66,7 @@ class Net_OpenID_KVForm {
$values[$tkey] = $tval;
}
-
+
return $values;
}
}
diff --git a/Tests/Net/OpenID/HMACSHA1.php b/Tests/Net/OpenID/HMACSHA1.php
index 35f0b1c..9c0719e 100644
--- a/Tests/Net/OpenID/HMACSHA1.php
+++ b/Tests/Net/OpenID/HMACSHA1.php
@@ -106,7 +106,7 @@ class Tests_Net_OpenID_HMACSHA1 extends PHPUnit_TestSuite {
if (strlen($clean["data"]) != $case["data_len"]) {
trigger_error("Bad data length", E_USER_ERROR);
}
-
+
$clean["digest"] =
Tests_Net_OpenID_HMACSHA1::_strConvert($case["digest"]);
if (strlen($clean["digest"]) != 20) {
diff --git a/Tests/Net/OpenID/KVForm.php b/Tests/Net/OpenID/KVForm.php
index 10ac54b..125bc10 100644
--- a/Tests/Net/OpenID/KVForm.php
+++ b/Tests/Net/OpenID/KVForm.php
@@ -56,7 +56,7 @@ extends Tests_Net_OpenID_KVForm_TestCase {
if ($this->lossy == "neither" || $this->lossy == "str") {
$this->assertEquals($this->arr, $parsed1, "str was lossy");
}
-
+
if ($this->lossy == "neither" || $this->lossy == "arr") {
$this->assertEquals($this->str, $serial1, "array was lossy");
}
@@ -94,49 +94,49 @@ class Tests_Net_OpenID_KVForm extends PHPUnit_TestSuite {
function Tests_Net_OpenID_KVForm($name) {
$this->setName($name);
$testdata_list = array(
- array("name" => "simple",
+ array("name" => "simple",
"str" => "college:harvey mudd\n",
"arr" => array("college" => "harvey mudd"),
),
- array("name" => "empty",
+ array("name" => "empty",
"str" => "",
"arr" => array(),
),
- array("name" => "empty (just newline)",
+ array("name" => "empty (just newline)",
"str" => "\n",
"arr" => array(),
"lossy" => "str",
"errors" => 1,
),
- array("name" => "empty (double newline)",
+ array("name" => "empty (double newline)",
"str" => "\n\n",
"arr" => array(),
"lossy" => "str",
"errors" => 2,
),
- array("name" => "empty (no colon)",
+ array("name" => "empty (no colon)",
"str" => "East is least\n",
"arr" => array(),
"lossy" => "str",
"errors" => 1,
),
- array("name" => "two keys",
+ array("name" => "two keys",
"str" => "city:claremont\nstate:CA\n",
"arr" => array('city' => 'claremont',
'state' => 'CA'),
),
- array("name" => "real life",
+ array("name" => "real life",
"str" => "is_valid:true\ninvalidate_handle:" .
"{HMAC-SHA1:2398410938412093}\n",
"arr" => array('is_valid' => 'true',
'invalidate_handle' =>
'{HMAC-SHA1:2398410938412093}'),
),
- array("name" => "empty key and value",
+ array("name" => "empty key and value",
"str" => ":\n",
"arr" => array(''=>''),
),
- array("name" => "empty key, not value",
+ array("name" => "empty key, not value",
"str" => ":missing key\n",
"arr" => array(''=>'missing key'),
),
@@ -146,25 +146,25 @@ class Tests_Net_OpenID_KVForm extends PHPUnit_TestSuite {
"lossy" => "str",
"errors" => 1,
),
- array("name" => "whitespace at front of value",
+ array("name" => "whitespace at front of value",
"str" => "major: computer science\n",
"arr" => array('major'=>'computer science'),
"lossy" => "str",
"errors" => 1,
),
- array("name" => "whitespace around key and value",
+ array("name" => "whitespace around key and value",
"str" => " dorm : east \n",
"arr" => array('dorm'=>'east'),
"lossy" => "str",
"errors" => 2,
),
- array("name" => "missing trailing newline",
+ array("name" => "missing trailing newline",
"str" => "e^(i*pi)+1:0",
"arr" => array('e^(i*pi)+1'=>'0'),
"lossy" => "str",
"errors" => 1,
),
- array("name" => "missing trailing newline (two key)",
+ array("name" => "missing trailing newline (two key)",
"str" => "east:west\nnorth:south",
"arr" => array('east'=>'west',
'north'=>'south'),
@@ -225,7 +225,7 @@ class Tests_Net_OpenID_KVForm extends PHPUnit_TestSuite {
$lossy = $testdata["lossy"];
} else {
$lossy = 'neither';
- }
+ }
$test = new Tests_Net_OpenID_KVForm_TestCase(
$arr, $str, $lossy, $errs);
}
diff --git a/texttest.php b/texttest.php
index 0764eef..c2cc3bc 100644
--- a/texttest.php
+++ b/texttest.php
@@ -18,7 +18,7 @@ class TextTestResult extends PHPUnit_TestResult {
parent::addPassedTest($test);
echo ".";
}
-
+
function dumpBadResults() {
foreach ($this->failures() as $failure) {
echo $failure->toString();