for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Looxis\LaravelAmazonMWS;
class MWSFeeds
{
const VERSION = '2009-01-01';
protected $client;
protected $content;
protected $type;
public function __construct(MWSClient $client)
$this->client = $client;
}
public function getContent()
return $this->content;
public function setContent($content)
$this->content = $content;
return $this;
public function getType()
return $this->type;
public function setType($type)
$this->type = $type;
public function submit($purgeAndReplace = false, $amazonOrderId = null, $documentType = null)
$amazonOrderId
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$documentType
$contentmd5Hash = base64_encode(md5($this->getContent(), true));
$params = [
'FeedType' => $this->type,
'PurgeAndReplace' => $purgeAndReplace,
'ContentMD5Value' => $contentmd5Hash
];
$response = $this->client->post('SubmitFeed', '/', self::VERSION, $params, $this->getContent());
return $this->parseResponse($response);
protected function parseResponse($response)
$requestId = data_get($response, 'ResponseMetadata.RequestId');
$feed = data_get($response, 'SubmitFeedResult.FeedSubmissionInfo');
return [
'request_id' => $requestId,
'data' => $feed,
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.