Skip to content

Commit

Permalink
Update CS.
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Apr 9, 2018
1 parent e73695a commit 5ae0274
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 22 deletions.
7 changes: 5 additions & 2 deletions .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ return PhpCsFixer\Config::create()
->setRiskyAllowed(false)
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => ['align_double_arrow' => false, 'align_equals' => false],
'increment_style' => ['style' => 'post'],
'no_empty_comment' => false,
'no_extra_consecutive_blank_lines' => false,
'no_unneeded_control_parentheses' => false,
'not_operator_with_successor_space' => true,
'ordered_imports' => ['sortAlgorithm' => 'length'],
'phpdoc_align' => false,
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
'phpdoc_align' => ['tags' => ['param']],
'phpdoc_no_empty_return' => false,
'phpdoc_order' => true,
'pre_increment' => false,
Expand Down
18 changes: 9 additions & 9 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace Silverstreet;

use Laravie\Codex\Discovery;
use Laravie\Codex\Client as BaseClient;
use Psr\Http\Message\ResponseInterface;
use Http\Client\Common\HttpMethodsClient as HttpClient;
use Laravie\Codex\Client as BaseClient;
use Laravie\Codex\Contracts\Response as ResponseContract;
use Laravie\Codex\Discovery;
use Psr\Http\Message\ResponseInterface;

class Client extends BaseClient
{
Expand Down Expand Up @@ -43,9 +43,9 @@ class Client extends BaseClient
/**
* Construct a new Billplz Client.
*
* @param \Http\Client\Common\HttpMethodsClient $http
* @param string $apiUsername
* @param string $apiPassword
* @param \Http\Client\Common\HttpMethodsClient $http
* @param string $apiUsername
* @param string $apiPassword
*/
public function __construct(HttpClient $http, string $apiUsername, string $apiPassword)
{
Expand All @@ -57,8 +57,8 @@ public function __construct(HttpClient $http, string $apiUsername, string $apiPa
/**
* Make a client.
*
* @param string $apiUsername
* @param string $apiPassword
* @param string $apiUsername
* @param string $apiPassword
*
* @return static
*/
Expand Down Expand Up @@ -90,7 +90,7 @@ final public function getApiPassword(): string
/**
* Resolve the responder class.
*
* @param \Psr\Http\Message\ResponseInterface $response
* @param \Psr\Http\Message\ResponseInterface $response
*
* @return \Laravie\Codex\Contracts\Response
*/
Expand Down
12 changes: 6 additions & 6 deletions src/One/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Silverstreet\One;

use Silverstreet\Request;
use Laravie\Codex\Contracts\Response;
use Laravie\Codex\Concerns\Request\Multipart;
use Laravie\Codex\Contracts\Response;
use Silverstreet\Request;

class Message extends Request
{
Expand All @@ -13,10 +13,10 @@ class Message extends Request
/**
* Send SMS.
*
* @param string $body
* @param string $destination
* @param string $sender
* @param array $optional
* @param string $body
* @param string $destination
* @param string $sender
* @param array $optional
*
* @return \Laravie\Codex\Contracts\Response
*/
Expand Down
4 changes: 2 additions & 2 deletions tests/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Silverstreet\TestCase;

use Laravie\Codex\Client as Codex;
use Mockery as m;
use Silverstreet\Client;
use PHPUnit\Framework\TestCase;
use Laravie\Codex\Client as Codex;
use Silverstreet\Client;

class ClientTest extends TestCase
{
Expand Down
4 changes: 2 additions & 2 deletions tests/One/MessageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Silverstreet\TestCase\One;

use Laravie\Codex\Testing\Faker;
use Mockery as m;
use Silverstreet\Client;
use PHPUnit\Framework\TestCase;
use Laravie\Codex\Testing\Faker;
use Silverstreet\Client;

class MessageTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/ResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace Silverstreet\TestCase;

use Mockery as m;
use Silverstreet\Response;
use PHPUnit\Framework\TestCase;
use Psr\Http\Message\ResponseInterface;
use Silverstreet\Response;

class ResponseTest extends TestCase
{
Expand Down

0 comments on commit 5ae0274

Please sign in to comment.