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\Friendship;
use PeeHaa\AsyncTwitter\Api\Request\BaseRequest;
class Incoming 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 = '/friendships/incoming.json';
public function __construct()
parent::__construct(self::METHOD, self::ENDPOINT);
}
public function fromCursor(int $cursor): Incoming
$this->parameters['cursor'] = (string) $cursor;
return $this;
public function stringifyIds(): Incoming
$this->parameters['stringify_ids'] = 'true';
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.