summaryrefslogtreecommitdiffstats
path: root/examples/server/lib
diff options
context:
space:
mode:
authorLuke Shepard <lshepard@devrs006.snc1.facebook.com>2009-05-27 13:43:55 -0700
committerLuke Shepard <lshepard@devrs006.snc1.facebook.com>2009-05-27 13:43:55 -0700
commita2bdc5c6129ff11b1c1e29a207b1b80153ac6fb0 (patch)
treeb270b58510c9c7a8b0c20c42c33d0b9df7095e87 /examples/server/lib
parentae52c6b3a3b9741c0ef60b6c91ba27af1d85eab7 (diff)
downloadphp-openid-a2bdc5c6129ff11b1c1e29a207b1b80153ac6fb0.zip
php-openid-a2bdc5c6129ff11b1c1e29a207b1b80153ac6fb0.tar.gz
php-openid-a2bdc5c6129ff11b1c1e29a207b1b80153ac6fb0.tar.bz2
[ remove closing ?> tag from all files ]
Reviewed By: Will Norris Facebook has a policy to not have closing ?> tags at the bottom of PHP files. It can unintentionally introduce newlines which causes ridiculous bugs. This is recommended in the Zend style guide: http://framework.zend.com/manual/en/coding-standard.php-file-formatting.html
Diffstat (limited to 'examples/server/lib')
-rw-r--r--examples/server/lib/actions.php1
-rw-r--r--examples/server/lib/common.php1
-rw-r--r--examples/server/lib/render.php1
-rw-r--r--examples/server/lib/render/about.php1
-rw-r--r--examples/server/lib/render/idpXrds.php3
-rw-r--r--examples/server/lib/render/idpage.php2
-rw-r--r--examples/server/lib/render/login.php1
-rw-r--r--examples/server/lib/render/trust.php1
-rw-r--r--examples/server/lib/render/userXrds.php3
-rw-r--r--examples/server/lib/session.php1
10 files changed, 3 insertions, 12 deletions
diff --git a/examples/server/lib/actions.php b/examples/server/lib/actions.php
index 50dc19a..9f825e3 100644
--- a/examples/server/lib/actions.php
+++ b/examples/server/lib/actions.php
@@ -161,4 +161,3 @@ function action_userXrds()
return userXrds_render($identity);
}
-?> \ No newline at end of file
diff --git a/examples/server/lib/common.php b/examples/server/lib/common.php
index 80d05f5..8b45da7 100644
--- a/examples/server/lib/common.php
+++ b/examples/server/lib/common.php
@@ -92,4 +92,3 @@ function doAuth($info, $trusted=null, $fail_cancels=false,
}
}
-?> \ No newline at end of file
diff --git a/examples/server/lib/render.php b/examples/server/lib/render.php
index 33d2aef..afa059d 100644
--- a/examples/server/lib/render.php
+++ b/examples/server/lib/render.php
@@ -111,4 +111,3 @@ function page_render($body, $user, $title, $h1=null, $login=false)
return array($headers, $text);
}
-?> \ No newline at end of file
diff --git a/examples/server/lib/render/about.php b/examples/server/lib/render/about.php
index bd35836..7e7cf1a 100644
--- a/examples/server/lib/render/about.php
+++ b/examples/server/lib/render/about.php
@@ -55,4 +55,3 @@ function about_render($error=false, $internal=true)
return page_render($body, $current_user, 'OpenID Server Endpoint');
}
-?> \ No newline at end of file
diff --git a/examples/server/lib/render/idpXrds.php b/examples/server/lib/render/idpXrds.php
index 6e4ae1c..6dde930 100644
--- a/examples/server/lib/render/idpXrds.php
+++ b/examples/server/lib/render/idpXrds.php
@@ -5,7 +5,7 @@ require_once "lib/render.php";
require_once "Auth/OpenID/Discover.php";
-define('idp_xrds_pat', '<?xml version="1.0" encoding="UTF-8"?>
+define('idp_xrds_pat', '<?xml version="1.0" encoding="UTF-8"
<xrds:XRDS
xmlns:xrds="xri://$xrds"
xmlns="xri://$xrd*($v*2.0)">
@@ -29,4 +29,3 @@ function idpXrds_render()
return array($headers, $body);
}
-?> \ No newline at end of file
diff --git a/examples/server/lib/render/idpage.php b/examples/server/lib/render/idpage.php
index 48c2486..a10f46d 100644
--- a/examples/server/lib/render/idpage.php
+++ b/examples/server/lib/render/idpage.php
@@ -28,4 +28,4 @@ function idpage_render($identity)
return array($headers, $body);
}
-?>
+
diff --git a/examples/server/lib/render/login.php b/examples/server/lib/render/login.php
index 986a885..8568648 100644
--- a/examples/server/lib/render/login.php
+++ b/examples/server/lib/render/login.php
@@ -62,4 +62,3 @@ function loginError_render($errors)
}
return sprintf("<ul class=\"error\">\n%s</ul>\n", $text);
}
-?> \ No newline at end of file
diff --git a/examples/server/lib/render/trust.php b/examples/server/lib/render/trust.php
index 681d456..5972e5d 100644
--- a/examples/server/lib/render/trust.php
+++ b/examples/server/lib/render/trust.php
@@ -53,4 +53,3 @@ function noIdentifier_render()
return page_render(no_id_pat, null, 'No Identifier Sent');
}
-?> \ No newline at end of file
diff --git a/examples/server/lib/render/userXrds.php b/examples/server/lib/render/userXrds.php
index a9ea95e..0f0239e 100644
--- a/examples/server/lib/render/userXrds.php
+++ b/examples/server/lib/render/userXrds.php
@@ -5,7 +5,7 @@ require_once "lib/render.php";
require_once "Auth/OpenID/Discover.php";
-define('user_xrds_pat', '<?xml version="1.0" encoding="UTF-8"?>
+define('user_xrds_pat', '<?xml version="1.0" encoding="UTF-8"
<xrds:XRDS
xmlns:xrds="xri://$xrds"
xmlns="xri://$xrd*($v*2.0)">
@@ -31,4 +31,3 @@ function userXrds_render($identity)
return array($headers, $body);
}
-?> \ No newline at end of file
diff --git a/examples/server/lib/session.php b/examples/server/lib/session.php
index 201b6ee..13b0ec9 100644
--- a/examples/server/lib/session.php
+++ b/examples/server/lib/session.php
@@ -175,4 +175,3 @@ function idFromURL($url)
return @$parts['user'];
}
-?> \ No newline at end of file