mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-09-22 13:44:57 -04:00
added configuration for PHP Coding Standards Fixer, including its fixes, resolving #47
This commit is contained in:
parent
87926ce157
commit
72aac25f68
17 changed files with 114 additions and 90 deletions
|
@ -16,7 +16,7 @@ namespace PrivateBin;
|
|||
* Request
|
||||
*
|
||||
* parses request parameters and provides helper functions for routing
|
||||
*/
|
||||
*/
|
||||
class Request
|
||||
{
|
||||
/**
|
||||
|
@ -184,7 +184,7 @@ class Request
|
|||
private function _detectJsonRequest()
|
||||
{
|
||||
$hasAcceptHeader = array_key_exists('HTTP_ACCEPT', $_SERVER);
|
||||
$acceptHeader = $hasAcceptHeader ? $_SERVER['HTTP_ACCEPT'] : '';
|
||||
$acceptHeader = $hasAcceptHeader ? $_SERVER['HTTP_ACCEPT'] : '';
|
||||
|
||||
// simple cases
|
||||
if (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue