Implemented PHP-CS-Fixer support

This commit is contained in:
ErickSkrauch
2018-04-17 23:47:25 +03:00
parent bfdcaf2233
commit 02ea7346a8
115 changed files with 883 additions and 363 deletions

View File

@@ -1,8 +1,8 @@
<?php
namespace tests\codeception\api\unit\modules\internal\models;
use api\modules\internal\helpers\Error as E;
use api\modules\accounts\models\BanAccountForm;
use api\modules\internal\helpers\Error as E;
use common\models\Account;
use tests\codeception\api\unit\TestCase;

View File

@@ -1,8 +1,8 @@
<?php
namespace tests\codeception\api\unit\modules\internal\models;
use api\modules\internal\helpers\Error as E;
use api\modules\accounts\models\PardonAccountForm;
use api\modules\internal\helpers\Error as E;
use common\models\Account;
use tests\codeception\api\unit\TestCase;

View File

@@ -55,7 +55,6 @@ class OauthClientFormTest extends TestCase {
$form->shouldReceive('isClientExists')->andReturn(false);
$request = new class implements OauthClientTypeForm {
public function load($data): bool {
return true;
}
@@ -72,7 +71,6 @@ class OauthClientFormTest extends TestCase {
$client->name = 'New name';
$client->description = 'New description.';
}
};
$this->assertTrue($form->save($request));

View File

@@ -25,7 +25,7 @@ class RateLimiterTest extends TestCase {
/** @var RateLimiter|\PHPUnit_Framework_MockObject_MockObject $filter */
$filter = $this->getMockBuilder(RateLimiter::class)
->setConstructorArgs([[
'authserverDomain' => Yii::$app->params['authserverHost']
'authserverDomain' => Yii::$app->params['authserverHost'],
]])
->setMethods(['getServer'])
->getMock();
@@ -58,7 +58,7 @@ class RateLimiterTest extends TestCase {
->will($this->returnValue('http://authserver.ely.by'));
$filter = new RateLimiter([
'authserverDomain' => Yii::$app->params['authserverHost']
'authserverDomain' => Yii::$app->params['authserverHost'],
]);
$filter->checkRateLimit(null, $request, null, null);
}