GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 9-10 lines in 2 locations

Service/Deals.php 1 location

@@ 24-32 (lines=9) @@
21
	 *
22
	 * @return Page
23
	 */
24
	public function all($page = 1, DealStage $stage = null)
25
	{
26
		$stage = $stage ? : DealStage::INCOMING();
27
		$query = [
28
			'stage' => $stage->getValue(),
29
		];
30
31
		return parent::getPage($page, $query);
32
	}
33
34
	/** {@inheritdoc} */
35
	public function create(DetachedResource $resource, array $fieldNames = [], $useKey = true)

Service/Leads.php 1 location

@@ 24-33 (lines=10) @@
21
	 *
22
	 * @return ResourceCollection
23
	 */
24
	public function all($page = 1, LeadsSortBy $sortBy = null)
25
	{
26
		$query = [];
27
		if (null !== $sortBy)
28
		{
29
			$query['sort_by'] = $sortBy->getValue();
30
		}
31
32
		return parent::getPage($page, $query);
33
	}
34
35
	/** {@inheritdoc} */
36
	public function create(DetachedResource $resource, array $fieldNames = [], $useKey = true)