update php-cs-fixer
This commit is contained in:
parent
574a2afa8b
commit
f517faa071
140 changed files with 1703 additions and 1251 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue