Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Commit

Permalink
Scrutinizer Auto-Fixes (#212)
Browse files Browse the repository at this point in the history
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
  • Loading branch information
scrutinizer-auto-fixer authored and prisis committed Apr 26, 2016
1 parent b79bac1 commit 17a6a40
Show file tree
Hide file tree
Showing 16 changed files with 23 additions and 31 deletions.
16 changes: 7 additions & 9 deletions src/Viserio/Cache/CacheManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use Memcache;
use Memcached;
use MongoDB\Driver\Manager as MongoDBManager;
use Narrowspark\Arr\StaticArr as Arr;
use Predis\Client as PredisClient;
use Psr\Cache\CacheItemPoolInterface;
use Viserio\Contracts\Config\Manager as ConfigContract;
Expand Down Expand Up @@ -82,7 +81,7 @@ public function setDefaultDriver($name)
/**
* Create an instance of the Flysystem cache driver.
*
* @return \Psr\Cache\CacheItemPoolInterface|null
* @return FilesystemCachePool|null
*/
protected function createFilesystemDriver(array $options)
{
Expand All @@ -102,9 +101,8 @@ protected function createFilesystemDriver(array $options)
/**
* Create an instance of the Memcached cache driver.
*
* @param array $config
*
* @return \Psr\Cache\CacheItemPoolInterface|null
* @return MemcachedCachePool|null
*/
protected function createMemcachedDriver(array $options)
{
Expand All @@ -124,7 +122,7 @@ protected function createMemcachedDriver(array $options)
*
* @param array $options
*
* @return \Psr\Cache\CacheItemPoolInterface|null
* @return MemcacheCachePool|null
*/
protected function createMemcacheDriver(array $options)
{
Expand All @@ -144,7 +142,7 @@ protected function createMemcacheDriver(array $options)
*
* @param array $options
*
* @return \Psr\Cache\CacheItemPoolInterface|null
* @return MongoDBCachePool|null
*/
public function createMongodbDriver(array $options)
{
Expand All @@ -164,7 +162,7 @@ public function createMongodbDriver(array $options)
*
* @param array $options
*
* @return \Psr\Cache\CacheItemPoolInterface|null
* @return PredisCachePool|null
*/
public function createPredisDriver(array $options)
{
Expand All @@ -184,7 +182,7 @@ public function createPredisDriver(array $options)
*
* @param array $options
*
* @return \Psr\Cache\CacheItemPoolInterface|null
* @return FilesystemCachePool|null
*/
protected function createLocalDriver(array $options)
{
Expand All @@ -204,7 +202,7 @@ protected function createLocalDriver(array $options)
*
* @param array $options
*
* @return \Psr\Cache\CacheItemPoolInterface|null
* @return Psr6SessionHandler|null
*/
protected function createSessionDriver(array $options)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Viserio/Config/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function setSeparator($separator)
/**
* Get Separator.
*
* @return string|null
* @return string
*/
public function getSeparator()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Viserio/Connect/Adapters/MemcachedConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ protected function addMemcachedServers($memcached, array $servers)
/**
* Set custom memcached options.
*
* @param object $memcached
* @param Memcached $memcached
* @param array $config
*
* @throws \RuntimeException
Expand Down
2 changes: 1 addition & 1 deletion src/Viserio/Contracts/Cookie/Cookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function withExpires(DateTime $expires);
/**
* Returns the expiration time
*
* @return int|\DateTime
* @return integer
*/
public function getExpiresTime();

Expand Down
2 changes: 2 additions & 0 deletions src/Viserio/Contracts/Filesystem/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public function getVisibility($path);
*
* @param string $path
* @param string $visibility
* @return boolean|null
*/
public function setVisibility($path, $visibility);

Expand All @@ -91,6 +92,7 @@ public function setVisibility($path, $visibility);
*
* @throws \Viserio\Contracts\Filesystem\Exception\FileNotFoundException When originFile doesn't exist
* @throws \Viserio\Contracts\Filesystem\Exception\IOException When copy fails
* @return null|boolean
*/
public function copy($originFile, $targetFile, $override = false);

Expand Down
2 changes: 1 addition & 1 deletion src/Viserio/Contracts/Filesystem/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function load($file, $tag = null);
*
* @param string $file
*
* @return bool|array
* @return boolean|string
*/
public function exists($file);
}
2 changes: 1 addition & 1 deletion src/Viserio/Cookie/AbstractCookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ abstract public function __toString();
/**
* Normalizes the expiration value
*
* @param int|\DateTime|null $expiration
* @param integer|null $expiration
*
* @return \DateTime|null
*/
Expand Down
1 change: 0 additions & 1 deletion src/Viserio/Cookie/CookieJar.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

use Narrowspark\Arr\StaticArr as Arr;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Viserio\Contracts\Cookie\QueueingFactory as JarContract;

class CookieJar implements JarContract
Expand Down
9 changes: 5 additions & 4 deletions src/Viserio/Encryption/Encrypter.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
use RandomLib\Generator as RandomLib;
use RuntimeException;
use Viserio\Contracts\Encryption\DecryptException;
use Viserio\Contracts\Encryption\Encrypter as EncrypterContract;
use Viserio\Contracts\Encryption\EncryptException;
use Viserio\Contracts\Encryption\Encrypter as EncrypterContract;
use Viserio\Contracts\Hashing\Generator as HashContract;
use Viserio\Encryption\Adapter\OpenSsl;

Expand Down Expand Up @@ -113,7 +113,7 @@ public function setKey($key)
* 'mac' => 'Message Authentication Code'
* ]
*
* @param mixed $data Data to encrypt.
* @param string $data Data to encrypt.
*
* @return string Serialized array containing the encrypted data
* along with some meta data.
Expand Down Expand Up @@ -160,9 +160,9 @@ public function decrypt($data)
/**
* Compare two encrypted values.
*
* @param mixed $e1
* @param mixed $e2
* @param bool $loose
* @param string $encrypted1
* @param string $encrypted2
*
* @return bool
*/
Expand Down Expand Up @@ -198,6 +198,7 @@ public function getGenerator()
* @param string $cipher
* @param string mode
* @param string $key
* @param string $mode
*
* @throws \RuntimeException
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Viserio/Filesystem/Adapters/ZipConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ZipConnector implements ConnectorContract
*
* @param string[] $config
*
* @return object
* @return ZipArchiveAdapter
*/
public function connect(array $config)
{
Expand Down
4 changes: 0 additions & 4 deletions src/Viserio/Filesystem/FilesystemAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@

use InvalidArgumentException;
use League\Flysystem\AdapterInterface;
use League\Flysystem\AwsS3v3\AwsS3Adapter;
use League\Flysystem\Config as FlyConfig;
use League\Flysystem\FileNotFoundException as FlyFileNotFoundException;
use RuntimeException;
use Viserio\Contracts\Filesystem\Directorysystem as DirectorysystemContract;
use Viserio\Contracts\Filesystem\FileNotFoundException;
use Viserio\Contracts\Filesystem\Filesystem as FilesystemContract;
Expand Down Expand Up @@ -175,7 +172,6 @@ public function allFiles($directory)
* Get all of the directories within a given directory.
*
* @param string|null $directory
* @param bool $recursive
*
* @return array
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Viserio/Filesystem/Tests/FilesystemTest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
namespace Viserio\Filesystem\Tests;

use Viserio\Filesystem\Filesystem;
use org\bovigo\vfs\content\LargeFileContent;
use org\bovigo\vfs\vfsStream;
use org\bovigo\vfs\vfsStreamDirectory;
use Viserio\Filesystem\Filesystem;

class FilesystemTest extends \PHPUnit_Framework_TestCase
{
Expand Down
2 changes: 0 additions & 2 deletions src/Viserio/Filesystem/Traits/FilesystemExtensionTrait.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php
namespace Viserio\Filesystem\Traits;

use Viserio\Contracts\Filesystem\Exception\FileNotFoundException;

trait FilesystemExtensionTrait
{
/**
Expand Down
2 changes: 1 addition & 1 deletion src/Viserio/Parsers/Tests/TaggableParserTest.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
namespace Viserio\Parsers\Formats\Tests\Formats;

use org\bovigo\vfs\vfsStream;
use Viserio\Filesystem\Filesystem;
use Viserio\Parsers\TaggableParser;
use org\bovigo\vfs\vfsStream;

class TaggableParserTest extends \PHPUnit_Framework_TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion src/Viserio/Pipeline/Pipeline.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Pipeline implements PipelineContract
/**
* Set the object being sent through the pipeline.
*
* @param mixed $traveler
* @param string $traveler
*
* @return $this
*/
Expand Down
2 changes: 0 additions & 2 deletions src/Viserio/Pipeline/Tests/Fixture/PipelineInvokePipe.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php
namespace Viserio\Pipeline\Tests\Fixture;

use Closure;

class PipelineInvokePipe
{
public static $run;
Expand Down

0 comments on commit 17a6a40

Please sign in to comment.