1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-16 18:14:04 +02:00

Fix: Code style consistency for return type declarations

This commit is contained in:
Payton Bice
2019-12-24 13:32:16 -06:00
parent dc771a55cf
commit 2bcf86e51e
9 changed files with 9 additions and 9 deletions

View File

@@ -12,7 +12,7 @@ class AcpuAdapter implements CacheAdapterInterface
$this->flextype = $flextype;
}
public function getDriver(): object
public function getDriver() : object
{
return new AcpuCache();
}

View File

@@ -12,7 +12,7 @@ class ArrayAdapter implements CacheAdapterInterface
$this->flextype = $flextype;
}
public function getDriver(): object
public function getDriver() : object
{
return new ArrayCache();
}

View File

@@ -19,5 +19,5 @@ interface CacheAdapterInterface
*
* @return object
*/
public function getDriver(): object;
public function getDriver() : object;
}

View File

@@ -13,7 +13,7 @@ class FilesystemAdapter implements CacheAdapterInterface
$this->flextype = $flextype;
}
public function getDriver(): object
public function getDriver() : object
{
$cache_directory = PATH['cache'] . '/doctrine/';

View File

@@ -13,7 +13,7 @@ class MemcachedAdapter implements CacheAdapterInterface
$this->flextype = $flextype;
}
public function getDriver(): object
public function getDriver() : object
{
$memcached = new Memecached();
$memcached->addServer(

View File

@@ -14,7 +14,7 @@ class RedisAdapter implements CacheAdapterInterface
$this->flextype = $flextype;
}
public function getDriver(): object
public function getDriver() : object
{
$redis = new Redis();
$socket = $this->flextype['registry']->get('settings.cache.redis.socket', false);

View File

@@ -14,7 +14,7 @@ class SQLite3Adapter implements CacheAdapterInterface
$this->flextype = $flextype;
}
public function getDriver(): object
public function getDriver() : object
{
$cache_directory = PATH['cache'] . '/doctrine/';

View File

@@ -12,7 +12,7 @@ class WinCacheAdapter implements CacheAdapterInterface
$this->flextype = $flextype;
}
public function getDriver(): object
public function getDriver() : object
{
return new WinCacheCache();
}

View File

@@ -12,7 +12,7 @@ class ZendDataCacheAdapter implements CacheAdapterInterface
$this->flextype = $flextype;
}
public function getDriver(): object
public function getDriver() : object
{
return new ZendDataCache();
}