Add SlevomatCodingStandard.Variables.UnusedVariable
This commit is contained in:
parent
1277f8f96f
commit
006dde9d8e
|
@ -14,4 +14,9 @@
|
||||||
<property name="searchAnnotations" value="true"/>
|
<property name="searchAnnotations" value="true"/>
|
||||||
</properties>
|
</properties>
|
||||||
</rule>
|
</rule>
|
||||||
|
<rule ref="SlevomatCodingStandard.Variables.UnusedVariable">
|
||||||
|
<properties>
|
||||||
|
<property name="ignoreUnusedValuesWhenOnlyKeysAreUsedInForeach" value="true" />
|
||||||
|
</properties>
|
||||||
|
</rule>
|
||||||
</ruleset>
|
</ruleset>
|
||||||
|
|
|
@ -38,7 +38,6 @@ class BarChart
|
||||||
}
|
}
|
||||||
|
|
||||||
$roundedMax = (int) ceil($max / 5) * 5;
|
$roundedMax = (int) ceil($max / 5) * 5;
|
||||||
$step = $roundedMax / 5;
|
|
||||||
|
|
||||||
return view('components/barchart', [
|
return view('components/barchart', [
|
||||||
'groups' => self::calculateChartGroups(
|
'groups' => self::calculateChartGroups(
|
||||||
|
|
|
@ -9,7 +9,6 @@ use PHPUnit\Framework\MockObject\MockObject;
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
use Psr\Http\Message\ResponseInterface;
|
use Psr\Http\Message\ResponseInterface;
|
||||||
use Psr\Http\Message\ServerRequestInterface;
|
use Psr\Http\Message\ServerRequestInterface;
|
||||||
use Psr\Http\Message\UriInterface;
|
|
||||||
use Psr\Http\Server\MiddlewareInterface;
|
use Psr\Http\Server\MiddlewareInterface;
|
||||||
use Psr\Http\Server\RequestHandlerInterface;
|
use Psr\Http\Server\RequestHandlerInterface;
|
||||||
|
|
||||||
|
@ -132,8 +131,6 @@ class RouteDispatcherTest extends TestCase
|
||||||
$request = $this->createMock(Request::class);
|
$request = $this->createMock(Request::class);
|
||||||
/** @var RequestHandlerInterface|MockObject $handler */
|
/** @var RequestHandlerInterface|MockObject $handler */
|
||||||
$handler = $this->getMockForAbstractClass(RequestHandlerInterface::class);
|
$handler = $this->getMockForAbstractClass(RequestHandlerInterface::class);
|
||||||
/** @var UriInterface|MockObject $uriInterface */
|
|
||||||
$uriInterface = $this->getMockForAbstractClass(UriInterface::class);
|
|
||||||
|
|
||||||
$request->expects($this->atLeastOnce())
|
$request->expects($this->atLeastOnce())
|
||||||
->method('getMethod')
|
->method('getMethod')
|
||||||
|
|
Loading…
Reference in New Issue