Skip to content

Commit 1cf24f1

Browse files
JaZogithub-actions[bot]
authored andcommitted
styling: fix styling
1 parent 1d1838c commit 1cf24f1

File tree

6 files changed

+11
-14
lines changed

6 files changed

+11
-14
lines changed

src/Facades/TypeMapperFacade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
use Swis\JsonApi\Client\Interfaces\TypeMapperInterface;
99

1010
/**
11-
* @method static void setMapping(string $type, string $class)
12-
* @method static bool hasMapping(string $type)
13-
* @method static void removeMapping(string $type)
11+
* @method static void setMapping(string $type, string $class)
12+
* @method static bool hasMapping(string $type)
13+
* @method static void removeMapping(string $type)
1414
* @method static \Swis\JsonApi\Client\Interfaces\ItemInterface getMapping(string $type)
1515
*
1616
* @see \Swis\JsonApi\Client\Interfaces\TypeMapperInterface

src/Providers/ServiceProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ static function (ClientInterface $client) {
7575

7676
protected function registerLaravelHttpClientMacros(): void
7777
{
78-
if (!class_exists(Http::class)) {
78+
if (! class_exists(Http::class)) {
7979
// N.B. The HTTP Client was introduced in Laravel 7.
8080
return;
8181
}
8282

83-
if (!PendingRequest::hasMacro('asJsonApi')) {
83+
if (! PendingRequest::hasMacro('asJsonApi')) {
8484
PendingRequest::macro('asJsonApi', function (): PendingRequest {
8585
/* @var \Illuminate\Http\Client\PendingRequest $this */
8686
return $this->bodyFormat('json')
@@ -89,7 +89,7 @@ protected function registerLaravelHttpClientMacros(): void
8989
});
9090
}
9191

92-
if (!Response::hasMacro('jsonApi')) {
92+
if (! Response::hasMacro('jsonApi')) {
9393
Response::macro('jsonApi', function (): DocumentInterface {
9494
/* @var \Illuminate\Http\Client\Response $this */
9595
return ResponseParserFacade::parse($this->toPsrResponse());

src/Providers/TypeMapperServiceProvider.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ class TypeMapperServiceProvider extends BaseServiceProvider
1616
*/
1717
protected $items = [];
1818

19-
/**
20-
* @param \Swis\JsonApi\Client\Interfaces\TypeMapperInterface $typeMapper
21-
*/
2219
public function boot(TypeMapperInterface $typeMapper)
2320
{
2421
foreach ($this->items as $class) {

tests/AbstractTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ abstract class AbstractTestCase extends TestCase
1212
/**
1313
* Define environment setup.
1414
*
15-
* @param \Illuminate\Foundation\Application $app
15+
* @param \Illuminate\Foundation\Application $app
1616
*/
1717
protected function getEnvironmentSetUp($app)
1818
{

tests/Providers/ServiceProviderTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class ServiceProviderTest extends AbstractTestCase
1313
{
1414
protected function setUp(): void
1515
{
16-
if (!class_exists(Http::class)) {
16+
if (! class_exists(Http::class)) {
1717
$this->markTestSkipped('The Laravel HTTP Client is not available.');
1818
}
1919

@@ -23,7 +23,7 @@ protected function setUp(): void
2323
/**
2424
* @test
2525
*/
26-
public function itRegistersHttpFacadeMacroForRequest(): void
26+
public function it_registers_http_facade_macro_for_request(): void
2727
{
2828
// arrange
2929
Http::fake();
@@ -41,7 +41,7 @@ public function itRegistersHttpFacadeMacroForRequest(): void
4141
/**
4242
* @test
4343
*/
44-
public function itRegistersHttpFacadeMacroForResponse(): void
44+
public function it_registers_http_facade_macro_for_response(): void
4545
{
4646
// arrange
4747
Http::fake();

tests/Providers/TypeMapperServiceProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class TypeMapperServiceProviderTest extends AbstractTestCase
1515
/**
1616
* @test
1717
*/
18-
public function itRegistersTypesWithTheTypeMapper()
18+
public function it_registers_types_with_the_type_mapper()
1919
{
2020
$provider = new MockTypeMapperServiceProvider($this->app);
2121
$typeMapper = $this->createMock(TypeMapper::class);

0 commit comments

Comments
 (0)