public function getAttachedContent($name = 'content') { if (\LockerRequest::hasParam('method') || $this->method === 'POST') { return $this->getPostContent($name); } else { $contentType = \LockerRequest::header('Content-Type', 'text/plain'); return ['content' => \LockerRequest::getContent(), 'contentType' => $contentType]; } }