Skip to content

Commit

Permalink
[#13439] - PHPCS
Browse files Browse the repository at this point in the history
  • Loading branch information
niden committed May 4, 2019
1 parent 95a663c commit b52f65a
Show file tree
Hide file tree
Showing 41 changed files with 90 additions and 92 deletions.
4 changes: 2 additions & 2 deletions tests/unit/Cache/Adapter/Apcu/ClearCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ public function storageAdapterApcuClear(UnitTester $I)
*
* @param UnitTester $I
*
* @author Phalcon Team <team@phalconphp.com>
* @throws Exception
* @since 2019-03-31
*
* @throws Exception
* @author Phalcon Team <team@phalconphp.com>
*/
public function storageAdapterApcuClearTwice(UnitTester $I)
{
Expand Down
12 changes: 6 additions & 6 deletions tests/unit/Cache/Adapter/Libmemcached/ClearCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@

namespace Phalcon\Test\Unit\Cache\Adapter\Libmemcached;

use function getOptionsLibmemcached;
use Phalcon\Cache\Adapter\Apcu;
use Exception;
use Phalcon\Cache\Adapter\Libmemcached;
use Phalcon\Storage\SerializerFactory;
use Phalcon\Test\Fixtures\Traits\LibmemcachedTrait;
use UnitTester;
use function getOptionsLibmemcached;

/**
* Class ClearCest
Expand All @@ -31,10 +31,10 @@ class ClearCest
*
* @param UnitTester $I
*
* @author Phalcon Team <team@phalconphp.com>
* @throws Exception
* @since 2019-03-31
*
* @throws \Exception
* @author Phalcon Team <team@phalconphp.com>
*/
public function cacheAdapterLibmemcachedClear(UnitTester $I)
{
Expand Down Expand Up @@ -67,10 +67,10 @@ public function cacheAdapterLibmemcachedClear(UnitTester $I)
*
* @param UnitTester $I
*
* @author Phalcon Team <team@phalconphp.com>
* @throws Exception
* @since 2019-03-31
*
* @throws \Exception
* @author Phalcon Team <team@phalconphp.com>
*/
public function cacheAdapterLibmemcachedClearTwice(UnitTester $I)
{
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/Cache/Adapter/Libmemcached/ConstructCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@

namespace Phalcon\Test\Unit\Cache\Adapter\Libmemcached;

use function getOptionsLibmemcached;
use Phalcon\Cache\Adapter\AdapterInterface;
use Phalcon\Cache\Adapter\Apcu;
use Phalcon\Cache\Adapter\Libmemcached;
use Phalcon\Storage\SerializerFactory;
use Phalcon\Test\Fixtures\Traits\LibmemcachedTrait;
use UnitTester;
use function getOptionsLibmemcached;

/**
* Class ConstructCest
Expand Down
8 changes: 4 additions & 4 deletions tests/unit/Cache/Adapter/Libmemcached/DecrementCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@

namespace Phalcon\Test\Unit\Cache\Adapter\Libmemcached;

use function getOptionsLibmemcached;
use Phalcon\Cache\Adapter\Apcu;
use Exception;
use Phalcon\Cache\Adapter\Libmemcached;
use Phalcon\Storage\SerializerFactory;
use Phalcon\Test\Fixtures\Traits\LibmemcachedTrait;
use UnitTester;
use function getOptionsLibmemcached;

/**
* Class DecrementCest
Expand All @@ -31,10 +31,10 @@ class DecrementCest
*
* @param UnitTester $I
*
* @author Phalcon Team <team@phalconphp.com>
* @throws Exception
* @since 2019-03-31
*
* @throws \Exception
* @author Phalcon Team <team@phalconphp.com>
*/
public function cacheAdapterLibmemcachedDecrement(UnitTester $I)
{
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/Cache/Adapter/Libmemcached/DeleteCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@

namespace Phalcon\Test\Unit\Cache\Adapter\Libmemcached;

use function getOptionsLibmemcached;
use Phalcon\Cache\Adapter\Apcu;
use Phalcon\Cache\Adapter\Libmemcached;
use Phalcon\Storage\SerializerFactory;
use Phalcon\Test\Fixtures\Traits\LibmemcachedTrait;
use UnitTester;
use function getOptionsLibmemcached;

/**
* Class DeleteCest
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Cache/Adapter/Libmemcached/GetAdapterCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@

namespace Phalcon\Test\Unit\Cache\Adapter\Libmemcached;

use function getOptionsLibmemcached;
use Memcached;
use Phalcon\Cache\Adapter\Libmemcached;
use Phalcon\Storage\SerializerFactory;
use Phalcon\Test\Fixtures\Traits\LibmemcachedTrait;
use UnitTester;
use function getOptionsLibmemcached;

/**
* Class GetAdapterCest
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Cache/Adapter/Libmemcached/GetKeysCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

namespace Phalcon\Test\Unit\Cache\Adapter\Libmemcached;

use function getOptionsLibmemcached;
use Phalcon\Cache\Adapter\Libmemcached;
use Phalcon\Storage\SerializerFactory;
use Phalcon\Test\Fixtures\Traits\LibmemcachedTrait;
use UnitTester;
use function getOptionsLibmemcached;

/**
* Class GetKeysCest
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Cache/Adapter/Libmemcached/GetPrefixCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

namespace Phalcon\Test\Unit\Cache\Adapter\Libmemcached;

use function getOptionsLibmemcached;
use Phalcon\Cache\Adapter\Libmemcached;
use Phalcon\Storage\SerializerFactory;
use Phalcon\Test\Fixtures\Traits\LibmemcachedTrait;
use UnitTester;
use function getOptionsLibmemcached;

/**
* Class GetPrefixCest
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Cache/Adapter/Libmemcached/GetSetCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
namespace Phalcon\Test\Unit\Cache\Adapter\Libmemcached;

use Codeception\Example;
use function getOptionsLibmemcached;
use Phalcon\Cache\Adapter\Libmemcached;
use Phalcon\Storage\SerializerFactory;
use Phalcon\Test\Fixtures\Traits\LibmemcachedTrait;
use stdClass;
use UnitTester;
use function getOptionsLibmemcached;

/**
* Class GetSetCest
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Cache/Adapter/Libmemcached/HasCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

namespace Phalcon\Test\Unit\Cache\Adapter\Libmemcached;

use function getOptionsLibmemcached;
use Phalcon\Cache\Adapter\Libmemcached;
use Phalcon\Storage\SerializerFactory;
use Phalcon\Test\Fixtures\Traits\LibmemcachedTrait;
use UnitTester;
use function getOptionsLibmemcached;

/**
* Class HasCest
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Cache/Adapter/Libmemcached/IncrementCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

namespace Phalcon\Test\Unit\Cache\Adapter\Libmemcached;

use function getOptionsLibmemcached;
use Phalcon\Cache\Adapter\Libmemcached;
use Phalcon\Storage\SerializerFactory;
use Phalcon\Test\Fixtures\Traits\LibmemcachedTrait;
use UnitTester;
use function getOptionsLibmemcached;

/**
* Class IncrementCest
Expand Down
2 changes: 0 additions & 2 deletions tests/unit/Cache/Adapter/Memory/ClearCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

namespace Phalcon\Test\Unit\Cache\Adapter\Memory;

use function getOptionsLibmemcached;
use Phalcon\Cache\Adapter\Libmemcached;
use Phalcon\Cache\Adapter\Memory;
use Phalcon\Storage\SerializerFactory;
use UnitTester;
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/Cache/Adapter/Redis/ClearCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@

namespace Phalcon\Test\Unit\Cache\Adapter\Redis;

use function getOptionsRedis;
use Phalcon\Cache\Adapter\Memory;
use Phalcon\Cache\Adapter\Redis;
use Phalcon\Storage\SerializerFactory;
use Phalcon\Test\Fixtures\Traits\RedisTrait;
use UnitTester;
use function getOptionsRedis;

/**
* Class ClearCest
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Cache/Adapter/Redis/ConstructCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@

namespace Phalcon\Test\Unit\Cache\Adapter\Redis;

use function getOptionsRedis;
use Phalcon\Cache\Adapter\AdapterInterface;
use Phalcon\Cache\Adapter\Redis;
use Phalcon\Storage\SerializerFactory;
use Phalcon\Test\Fixtures\Traits\RedisTrait;
use UnitTester;
use function getOptionsRedis;

/**
* Class ConstructCest
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Cache/Adapter/Redis/DecrementCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

namespace Phalcon\Test\Unit\Cache\Adapter\Redis;

use function getOptionsRedis;
use Phalcon\Cache\Adapter\Redis;
use Phalcon\Storage\SerializerFactory;
use Phalcon\Test\Fixtures\Traits\RedisTrait;
use UnitTester;
use function getOptionsRedis;

/**
* Class DecrementCest
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Cache/Adapter/Redis/DeleteCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

namespace Phalcon\Test\Unit\Cache\Adapter\Redis;

use function getOptionsRedis;
use Phalcon\Cache\Adapter\Redis;
use Phalcon\Storage\SerializerFactory;
use Phalcon\Test\Fixtures\Traits\RedisTrait;
use UnitTester;
use function getOptionsRedis;

/**
* Class DeleteCest
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Cache/Adapter/Redis/GetAdapterCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

namespace Phalcon\Test\Unit\Cache\Adapter\Redis;

use function getOptionsRedis;
use Phalcon\Cache\Adapter\Redis;
use Phalcon\Storage\SerializerFactory;
use Phalcon\Test\Fixtures\Traits\RedisTrait;
use UnitTester;
use function getOptionsRedis;

/**
* Class GetAdapterCest
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Cache/Adapter/Redis/GetKeysCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

namespace Phalcon\Test\Unit\Cache\Adapter\Redis;

use function getOptionsRedis;
use Phalcon\Cache\Adapter\Redis;
use Phalcon\Storage\SerializerFactory;
use Phalcon\Test\Fixtures\Traits\RedisTrait;
use UnitTester;
use function getOptionsRedis;

/**
* Class GetKeysCest
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Cache/Adapter/Redis/GetPrefixCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

namespace Phalcon\Test\Unit\Cache\Adapter\Redis;

use function getOptionsRedis;
use Phalcon\Cache\Adapter\Redis;
use Phalcon\Storage\SerializerFactory;
use Phalcon\Test\Fixtures\Traits\RedisTrait;
use UnitTester;
use function getOptionsRedis;

/**
* Class GetPrefixCest
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Cache/Adapter/Redis/GetSetCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
namespace Phalcon\Test\Unit\Cache\Adapter\Redis;

use Codeception\Example;
use function getOptionsRedis;
use Phalcon\Cache\Adapter\Redis;
use Phalcon\Storage\SerializerFactory;
use Phalcon\Test\Fixtures\Traits\RedisTrait;
use stdClass;
use UnitTester;
use function getOptionsRedis;

/**
* Class GetSetCest
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Cache/Adapter/Redis/HasCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

namespace Phalcon\Test\Unit\Cache\Adapter\Redis;

use function getOptionsRedis;
use Phalcon\Cache\Adapter\Redis;
use Phalcon\Storage\SerializerFactory;
use Phalcon\Test\Fixtures\Traits\RedisTrait;
use UnitTester;
use function getOptionsRedis;

/**
* Class HasCest
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Cache/Adapter/Redis/IncrementCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

namespace Phalcon\Test\Unit\Cache\Adapter\Redis;

use function getOptionsRedis;
use Phalcon\Cache\Adapter\Redis;
use Phalcon\Storage\SerializerFactory;
use Phalcon\Test\Fixtures\Traits\RedisTrait;
use UnitTester;
use function getOptionsRedis;

/**
* Class IncrementCest
Expand Down
11 changes: 5 additions & 6 deletions tests/unit/Cache/Adapter/Stream/ClearCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@

namespace Phalcon\Test\Unit\Cache\Adapter\Stream;

use function getOptionsRedis;
use Phalcon\Cache\Adapter\Redis;
use Exception;
use Phalcon\Cache\Adapter\Stream;
use Phalcon\Storage\SerializerFactory;
use UnitTester;
Expand All @@ -30,10 +29,10 @@ class ClearCest
*
* @param UnitTester $I
*
* @author Phalcon Team <team@phalconphp.com>
* @throws Exception
* @since 2019-03-31
*
* @throws \Exception
* @author Phalcon Team <team@phalconphp.com>
*/
public function storageAdapterStreamClear(UnitTester $I)
{
Expand Down Expand Up @@ -66,10 +65,10 @@ public function storageAdapterStreamClear(UnitTester $I)
*
* @param UnitTester $I
*
* @author Phalcon Team <team@phalconphp.com>
* @throws Exception
* @since 2019-03-31
*
* @throws \Exception
* @author Phalcon Team <team@phalconphp.com>
*/
public function storageAdapterStreamClearTwice(UnitTester $I)
{
Expand Down
5 changes: 3 additions & 2 deletions tests/unit/Cache/Adapter/Stream/DecrementCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

namespace Phalcon\Test\Unit\Cache\Adapter\Stream;

use Exception;
use Phalcon\Cache\Adapter\Stream;
use Phalcon\Storage\SerializerFactory;
use UnitTester;
Expand All @@ -27,10 +28,10 @@ class DecrementCest
*
* @param UnitTester $I
*
* @author Phalcon Team <team@phalconphp.com>
* @throws Exception
* @since 2019-04-24
*
* @throws \Exception
* @author Phalcon Team <team@phalconphp.com>
*/
public function storageAdapterStreamDecrement(UnitTester $I)
{
Expand Down
Loading

0 comments on commit b52f65a

Please sign in to comment.