From 006dde9d8e712381d331060e35910772272d27bd Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Mon, 11 Jul 2022 14:34:14 +0200 Subject: [PATCH] Add SlevomatCodingStandard.Variables.UnusedVariable --- .phpcs.xml | 5 +++++ src/Helpers/BarChart.php | 1 - tests/Unit/Middleware/RouteDispatcherTest.php | 3 --- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.phpcs.xml b/.phpcs.xml index 4c43b5af..a7a5325d 100644 --- a/.phpcs.xml +++ b/.phpcs.xml @@ -14,4 +14,9 @@ + + + + + diff --git a/src/Helpers/BarChart.php b/src/Helpers/BarChart.php index 134a13b0..2790596c 100644 --- a/src/Helpers/BarChart.php +++ b/src/Helpers/BarChart.php @@ -38,7 +38,6 @@ class BarChart } $roundedMax = (int) ceil($max / 5) * 5; - $step = $roundedMax / 5; return view('components/barchart', [ 'groups' => self::calculateChartGroups( diff --git a/tests/Unit/Middleware/RouteDispatcherTest.php b/tests/Unit/Middleware/RouteDispatcherTest.php index 44b2e7b3..d3b79498 100644 --- a/tests/Unit/Middleware/RouteDispatcherTest.php +++ b/tests/Unit/Middleware/RouteDispatcherTest.php @@ -9,7 +9,6 @@ use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; -use Psr\Http\Message\UriInterface; use Psr\Http\Server\MiddlewareInterface; use Psr\Http\Server\RequestHandlerInterface; @@ -132,8 +131,6 @@ class RouteDispatcherTest extends TestCase $request = $this->createMock(Request::class); /** @var RequestHandlerInterface|MockObject $handler */ $handler = $this->getMockForAbstractClass(RequestHandlerInterface::class); - /** @var UriInterface|MockObject $uriInterface */ - $uriInterface = $this->getMockForAbstractClass(UriInterface::class); $request->expects($this->atLeastOnce()) ->method('getMethod')