diff options
author | Luke Shepard <lshepard@devrs006.snc1.facebook.com> | 2009-05-27 13:43:55 -0700 |
---|---|---|
committer | Luke Shepard <lshepard@devrs006.snc1.facebook.com> | 2009-05-27 13:43:55 -0700 |
commit | a2bdc5c6129ff11b1c1e29a207b1b80153ac6fb0 (patch) | |
tree | b270b58510c9c7a8b0c20c42c33d0b9df7095e87 /examples/consumer | |
parent | ae52c6b3a3b9741c0ef60b6c91ba27af1d85eab7 (diff) | |
download | php-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/consumer')
-rw-r--r-- | examples/consumer/common.php | 1 | ||||
-rw-r--r-- | examples/consumer/finish_auth.php | 1 | ||||
-rw-r--r-- | examples/consumer/index.php | 10 | ||||
-rw-r--r-- | examples/consumer/try_auth.php | 1 |
4 files changed, 5 insertions, 8 deletions
diff --git a/examples/consumer/common.php b/examples/consumer/common.php index 2f01ba0..446c6cc 100644 --- a/examples/consumer/common.php +++ b/examples/consumer/common.php @@ -94,4 +94,3 @@ function getTrustRoot() { dirname($_SERVER['PHP_SELF'])); } -?>
\ No newline at end of file diff --git a/examples/consumer/finish_auth.php b/examples/consumer/finish_auth.php index b19a665..0e71b9d 100644 --- a/examples/consumer/finish_auth.php +++ b/examples/consumer/finish_auth.php @@ -95,4 +95,3 @@ function run() { run(); -?>
\ No newline at end of file diff --git a/examples/consumer/index.php b/examples/consumer/index.php index 343a39c..dd2f391 100644 --- a/examples/consumer/index.php +++ b/examples/consumer/index.php @@ -2,7 +2,7 @@ require_once "common.php"; global $pape_policy_uris; -?> + <html> <head><title>PHP OpenID Authentication Example</title></head> <style type="text/css"> @@ -48,9 +48,9 @@ global $pape_policy_uris; is your identity URL. </p> - <?php if (isset($msg)) { print "<div class=\"alert\">$msg</div>"; } ?> - <?php if (isset($error)) { print "<div class=\"error\">$error</div>"; } ?> - <?php if (isset($success)) { print "<div class=\"success\">$success</div>"; } ?> + <?php if (isset($msg)) { print "<div class=\"alert\">$msg</div>"; } + <?php if (isset($error)) { print "<div class=\"error\">$error</div>"; } + <?php if (isset($success)) { print "<div class=\"success\">$success</div>"; } <div id="verify-form"> <form method="get" action="try_auth.php"> @@ -63,7 +63,7 @@ global $pape_policy_uris; <?php foreach ($pape_policy_uris as $i => $uri) { print "<input type=\"checkbox\" name=\"policies[]\" value=\"$uri\" />"; print "$uri<br/>"; - } ?> + } </p> <input type="submit" value="Verify" /> diff --git a/examples/consumer/try_auth.php b/examples/consumer/try_auth.php index 7efec76..61d1828 100644 --- a/examples/consumer/try_auth.php +++ b/examples/consumer/try_auth.php @@ -80,4 +80,3 @@ function run() { run(); -?>
\ No newline at end of file |