-
Notifications
You must be signed in to change notification settings - Fork 258
Conversation
@marcoceppi Would you mind merging my long standing PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anywhere you've made the change from array()
to shorthand, make sure, if it's a multi-line array that the last element has a trailing ,
examples/server/setup.php
Outdated
@@ -22,16 +22,18 @@ | |||
* Data. | |||
*/ | |||
|
|||
$store_types = array("Filesystem" => "Auth_OpenID_FileStore", | |||
$store_types = [ | |||
"Filesystem" => "Auth_OpenID_FileStore", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indent doesn't match
examples/server/setup.php
Outdated
"MySQL" => "Auth_OpenID_MySQLStore", | ||
"PostgreSQL" => "Auth_OpenID_PostgreSQLStore", | ||
"SQLite" => "Auth_OpenID_SQLiteStore"); | ||
"SQLite" => "Auth_OpenID_SQLiteStore" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're going to do this, lets also use the dangling ,
$headers = array( | ||
'X-XRDS-Location: '.$xrdsurl); | ||
$headers = [ | ||
'X-XRDS-Location: '.$xrdsurl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets use a dangling ,
examples/server/lib/common.php
Outdated
@@ -63,7 +63,8 @@ function doAuth($info, $trusted=null, $fail_cancels=false, | |||
'postcode' => '12345', | |||
'country' => 'ES', | |||
'language' => 'eu', | |||
'timezone' => 'America/New_York'); | |||
'timezone' => 'America/New_York' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dangling ,
here
@@ -201,7 +201,8 @@ function detect_math($r, &$out) | |||
'security of the network links involved. If you are only ' . | |||
'using consumer support, you should still be able to operate ' . | |||
'securely when the users are communicating with a ' . | |||
'well-implemented server.')); | |||
'well-implemented server.' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dangling ,
examples/consumer/common.php
Outdated
@@ -37,11 +37,11 @@ function doIncludes() { | |||
doIncludes(); | |||
|
|||
global $pape_policy_uris; | |||
$pape_policy_uris = array( | |||
$pape_policy_uris = [ | |||
PAPE_AUTH_MULTI_FACTOR_PHYSICAL, | |||
PAPE_AUTH_MULTI_FACTOR, | |||
PAPE_AUTH_PHISHING_RESISTANT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trailing ,
admin/texttest.php
Outdated
'buggy-gmp', | ||
'no-curl', | ||
'math-lib=', | ||
'insecure-rand', | ||
'thorough', | ||
'extra-tests='); | ||
'extra-tests=' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
,
Wow... That was really fast. Will update the PR to match latest code (changes were done by PHPStorm back then) |
No description provided.