From 47a4d2167bff9740acb6ef484458b1d781c5ef7e Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Wed, 22 Nov 2017 21:18:23 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Storage.php | 2 +- src/Track.php | 1 - src/Vcr.php | 4 ++-- tests/ClientImplementation.php | 1 - tests/Storage/FileStorageTest.php | 2 +- tests/Storage/InMemoryStorageTest.php | 2 +- tests/TapeTest.php | 2 +- tests/TrackTest.php | 2 +- tests/VcrClientTest.php | 2 +- tests/VcrPluginTest.php | 2 +- tests/VcrTest.php | 2 +- 11 files changed, 10 insertions(+), 12 deletions(-) diff --git a/src/Storage.php b/src/Storage.php index 5efd1e7..862f939 100644 --- a/src/Storage.php +++ b/src/Storage.php @@ -18,7 +18,7 @@ public function store(Tape $tape); * * @param string $name * - * @throws NotFound If the requested tape has not been found. + * @throws NotFound if the requested tape has not been found * * @return Tape */ diff --git a/src/Track.php b/src/Track.php index 25ab087..c37ee4d 100644 --- a/src/Track.php +++ b/src/Track.php @@ -2,7 +2,6 @@ namespace Http\Client\Plugin\Vcr; -use GuzzleHttp\Psr7\Request; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; diff --git a/src/Vcr.php b/src/Vcr.php index a241f8e..424ff3c 100644 --- a/src/Vcr.php +++ b/src/Vcr.php @@ -61,7 +61,7 @@ public function isTurnedOn() /** * Starts recording. * - * @throws InvalidState if no tape has been inserted. + * @throws InvalidState if no tape has been inserted */ public function startRecording() { @@ -126,7 +126,7 @@ public function getTape() * * @param Tape|string $tape * - * @throws InvalidState If the tape could not be inserted. + * @throws InvalidState if the tape could not be inserted */ public function insert($tape) { diff --git a/tests/ClientImplementation.php b/tests/ClientImplementation.php index c1a0d3b..f05dfb5 100644 --- a/tests/ClientImplementation.php +++ b/tests/ClientImplementation.php @@ -7,5 +7,4 @@ interface ClientImplementation extends HttpClient, HttpAsyncClient { - } diff --git a/tests/Storage/FileStorageTest.php b/tests/Storage/FileStorageTest.php index f1fa433..bbab345 100644 --- a/tests/Storage/FileStorageTest.php +++ b/tests/Storage/FileStorageTest.php @@ -10,7 +10,7 @@ use org\bovigo\vfs\vfsStreamDirectory; /** - * @covers Http\Client\Plugin\Vcr\Storage\FileStorage + * @covers \Http\Client\Plugin\Vcr\Storage\FileStorage */ class FileStorageTest extends VcrTestCase { diff --git a/tests/Storage/InMemoryStorageTest.php b/tests/Storage/InMemoryStorageTest.php index 1a9097a..e4cc6ed 100644 --- a/tests/Storage/InMemoryStorageTest.php +++ b/tests/Storage/InMemoryStorageTest.php @@ -6,7 +6,7 @@ use Http\Client\Plugin\Vcr\VcrTestCase; /** - * @covers Http\Client\Plugin\Vcr\Storage\InMemoryStorage + * @covers \Http\Client\Plugin\Vcr\Storage\InMemoryStorage */ class InMemoryStorageTest extends VcrTestCase { diff --git a/tests/TapeTest.php b/tests/TapeTest.php index 53f4bf7..fcadd8a 100644 --- a/tests/TapeTest.php +++ b/tests/TapeTest.php @@ -6,7 +6,7 @@ use Http\Client\Plugin\Vcr\Exception\NotFound; /** - * @covers Http\Client\Plugin\Vcr\Tape + * @covers \Http\Client\Plugin\Vcr\Tape */ class TapeTest extends VcrTestCase { diff --git a/tests/TrackTest.php b/tests/TrackTest.php index 95ea763..a2b458c 100644 --- a/tests/TrackTest.php +++ b/tests/TrackTest.php @@ -7,7 +7,7 @@ use Psr\Http\Message\StreamInterface; /** - * @covers Http\Client\Plugin\Vcr\Track + * @covers \Http\Client\Plugin\Vcr\Track */ class TrackTest extends VcrTestCase { diff --git a/tests/VcrClientTest.php b/tests/VcrClientTest.php index 18e52e4..f6c89d8 100644 --- a/tests/VcrClientTest.php +++ b/tests/VcrClientTest.php @@ -7,7 +7,7 @@ use Psr\Http\Message\ResponseInterface; /** - * @covers Http\Client\Plugin\Vcr\VcrClient + * @covers \Http\Client\Plugin\Vcr\VcrClient */ class VcrClientTest extends VcrTestCase { diff --git a/tests/VcrPluginTest.php b/tests/VcrPluginTest.php index 5c9be6b..04042bc 100644 --- a/tests/VcrPluginTest.php +++ b/tests/VcrPluginTest.php @@ -10,7 +10,7 @@ use Psr\Http\Message\ResponseInterface; /** - * @covers Http\Client\Plugin\Vcr\VcrPlugin + * @covers \Http\Client\Plugin\Vcr\VcrPlugin */ class VcrPluginTest extends VcrTestCase { diff --git a/tests/VcrTest.php b/tests/VcrTest.php index af3b88d..f3084d0 100644 --- a/tests/VcrTest.php +++ b/tests/VcrTest.php @@ -6,7 +6,7 @@ use Http\Client\Plugin\Vcr\Exception\NotFound; /** - * @covers Http\Client\Plugin\Vcr\Vcr + * @covers \Http\Client\Plugin\Vcr\Vcr */ class VcrTest extends VcrTestCase {