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\Follower;
use PeeHaa\AsyncTwitter\Api\Request\BaseRequest;
class Overview 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 = '/followers/list.json';
public function __construct()
parent::__construct(self::METHOD, self::ENDPOINT);
}
public function userId(int $id): Overview
$this->parameters['user_id'] = (string) $id;
return $this;
public function screenName(string $screenName): Overview
$this->parameters['screen_name'] = $screenName;
public function fromCursor(int $cursor): Overview
$this->parameters['cursor'] = (string) $cursor;
public function amount(int $amount): Overview
$this->parameters['count'] = (string) $amount;
public function skipStatus(): Overview
$this->parameters['skip_status'] = 'true';
public function excludeEntities(): Overview
$this->parameters['include_entities'] = 'false';
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.