for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace PeeHaa\AsyncTwitter\Api\Request\Collection;
use PeeHaa\AsyncTwitter\Api\Request\BaseRequest;
class Entries extends BaseRequest
{
const METHOD = 'GET';
This check looks for improperly formatted assignments.
Every assignment must have exactly one space before and one space after the equals operator.
To illustrate:
$a = "a"; $ab = "ab"; $abc = "abc";
will have no issues, while
will report issues in lines 1 and 2.
const ENDPOINT = '/collections/entries.json';
public function __construct(string $id)
parent::__construct(self::METHOD, self::ENDPOINT);
$this->parameters['id'] = $id;
}
public function amount(int $amount): Entries
$this->parameters['count'] = (string) $amount;
return $this;
public function minimumId(int $id): Entries
$this->parameters['min_position'] = (string) $id;
public function maximumId(int $id): Entries
$this->parameters['max_position'] = (string) $id;
This check looks for improperly formatted assignments.
Every assignment must have exactly one space before and one space after the equals operator.
To illustrate:
will have no issues, while
will report issues in lines 1 and 2.