mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
Enhancement: Enable trailing_comma_in_multiline fixer (#647)
* Enhancement: Enable and configure trailing_comma_in_multiline fixer * Fix: Run 'make coding-standards'
This commit is contained in:
@@ -100,8 +100,8 @@ if ($process) {
|
||||
'note' => $note,
|
||||
'sect' => $_POST['sect'],
|
||||
'ip' => $_SERVER['REMOTE_ADDR'],
|
||||
'redirip' => $redirip
|
||||
]
|
||||
'redirip' => $redirip,
|
||||
],
|
||||
);
|
||||
|
||||
// If there is any non-header result, then it is an error
|
||||
|
||||
@@ -28,7 +28,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||
"noteid" => $_REQUEST['id'],
|
||||
"sect" => $_REQUEST['page'],
|
||||
"vote" => $_REQUEST['vote'],
|
||||
"ip" => $_SERVER['REMOTE_ADDR']
|
||||
"ip" => $_SERVER['REMOTE_ADDR'],
|
||||
];
|
||||
if (($r = posttohost($master_url, $data)) === null || strpos($r,"failed to open socket to") !== false) {
|
||||
$response["success"] = false;
|
||||
|
||||
Reference in New Issue
Block a user