Skip to content

Commit

Permalink
chore(sniff): Refine PHPCodeSniffer configuration.
Browse files Browse the repository at this point in the history
Also fix the PHP code by applying the sniff rules.
  • Loading branch information
shulard committed Dec 17, 2020
1 parent de35d3f commit 1189d92
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 19 deletions.
13 changes: 0 additions & 13 deletions .php_cs

This file was deleted.

14 changes: 14 additions & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

<?php

$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->in(__DIR__)
;

return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
])
->setFinder($finder);
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Http\Adapter\React;

use Http\Client\HttpClient;
use Http\Client\HttpAsyncClient;
use Http\Client\HttpClient;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;
use React\EventLoop\LoopInterface;
Expand Down
6 changes: 3 additions & 3 deletions src/ReactFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Http\Adapter\React;

use React\EventLoop\LoopInterface;
use React\EventLoop\Factory as EventLoopFactory;
use React\EventLoop\LoopInterface;
use React\Http\Browser;
use React\Socket\ConnectorInterface;

Expand All @@ -25,8 +25,8 @@ public static function buildEventLoop(): LoopInterface
/**
* Build a React Http Client.
*
* @param ConnectorInterface|null $connector Only pass this argument if you need to customize DNS
* behaviour.
* @param ConnectorInterface|null $connector only pass this argument if you need to customize DNS
* behaviour
*/
public static function buildHttpClient(
LoopInterface $loop,
Expand Down
2 changes: 1 addition & 1 deletion tests/AsyncClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Http\Adapter\React\Tests;

use Http\Client\Tests\HttpAsyncClientTest;
use Http\Adapter\React\Client;
use Http\Client\HttpAsyncClient;
use Http\Client\Tests\HttpAsyncClientTest;

/**
* @author Stéphane Hulard <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion tests/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Http\Adapter\React\Tests;

use Http\Client\Tests\HttpClientTest;
use Http\Adapter\React\Client;
use Http\Client\Tests\HttpClientTest;
use Psr\Http\Client\ClientInterface;

/**
Expand Down

0 comments on commit 1189d92

Please sign in to comment.