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\Favorite;
use PeeHaa\AsyncTwitter\Api\Request\BaseRequest;
/**
* @link https://dev.twitter.com/rest/reference/get/favorites/list
*/
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 = '/favorites/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 amount(int $amount): Overview
$this->parameters['count'] = (string) $amount;
public function minimumId(int $id): Overview
$this->parameters['since_id'] = (string) $id;
public function maximumId(int $id): Overview
$this->parameters['max_id'] = (string) $id;
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.