update php-cs-fixer

This commit is contained in:
Emmanuel ROY 2020-12-09 10:26:26 +01:00
commit 46f300f890
140 changed files with 1703 additions and 1251 deletions

View file

@ -3,17 +3,15 @@
namespace MVC\Classe;
class HttpMethod
{
public $method;
protected $data;
public function __construct()
{
$this->method = $_SERVER['REQUEST_METHOD'];
Logger::addLog('http.method',$this->method);
Logger::addLog('http.method', $this->method);
$this->acceptResponse();
}
@ -28,6 +26,7 @@ class HttpMethod
//$this->data['GET'] = ...
//POST DATA except enctype="multipart/form-data"
$this->data = json_decode(file_get_contents("php://input"), true);
// no break
case 'DELETE':
//$this->data['GET'] = ...
//POST DATA except enctype="multipart/form-data"
@ -44,5 +43,4 @@ class HttpMethod
{
return $this->data;
}
}
}