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.

AutoPagingIterator::count()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
c 3
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace prgTW\BaseCRM\Resource;
4
5
class AutoPagingIterator extends PagingIterator
6
{
7
	/** {@inheritdoc} */
8
	public function count()
9
	{
10
		//@codeCoverageIgnoreStart
11
		throw new \BadMethodCallException('Cannot count partial collection');
12
		//@codeCoverageIgnoreEnd
13
	}
14
15
	/** {@inheritdoc} */
16
	protected function isLoadNecessary()
17
	{
18
		return parent::isLoadNecessary() || null === $this->key();
19
	}
20
}
21