Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply fixes from StyleCI #78

Merged
merged 1 commit into from
Nov 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Access/AccessInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@

/**
* Interface AccessInterface.
*
* @package Seat\Eseye\Access
*/
interface AccessInterface
{
/**
* @param string $method
* @param string $uri
* @param array $scopes
*
* @param string $method
* @param string $uri
* @param array $scopes
* @return bool|mixed
*/
public function can(string $method, string $uri, array $scopes): bool;
Expand Down
9 changes: 5 additions & 4 deletions src/Access/CheckAccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

/**
* Class CheckAccess.
*
* @package Seat\Eseye\Access
*/
class CheckAccess implements AccessInterface
Expand Down Expand Up @@ -258,11 +259,11 @@ class CheckAccess implements AccessInterface
];

/**
* @param string $method
* @param string $uri
* @param array $scopes
*
* @param string $method
* @param string $uri
* @param array $scopes
* @return bool|mixed
*
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
*/
public function can(string $method, string $uri, array $scopes): bool
Expand Down
23 changes: 10 additions & 13 deletions src/Cache/CacheInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,39 +26,36 @@

/**
* Interface CacheInterface.
*
* @package Seat\Eseye\Cache
*/
interface CacheInterface
{
/**
* @param string $uri
* @param string $query
* @param \Seat\Eseye\Containers\EsiResponse $data
*
* @param string $uri
* @param string $query
* @param \Seat\Eseye\Containers\EsiResponse $data
* @return mixed
*/
public function set(string $uri, string $query, EsiResponse $data);

/**
* @param string $uri
* @param string $query
*
* @param string $uri
* @param string $query
* @return \Seat\Eseye\Containers\EsiResponse|bool
*/
public function get(string $uri, string $query = '');

/**
* @param string $uri
* @param string $query
*
* @param string $uri
* @param string $query
* @return mixed
*/
public function forget(string $uri, string $query = '');

/**
* @param string $uri
* @param string $query
*
* @param string $uri
* @param string $query
* @return bool|mixed
*/
public function has(string $uri, string $query = ''): bool;
Expand Down
33 changes: 15 additions & 18 deletions src/Cache/FileCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

/**
* Class FileCache.
*
* @package Seat\Eseye\Cache
*/
class FileCache implements CacheInterface
Expand All @@ -47,6 +48,7 @@ class FileCache implements CacheInterface

/**
* FileCache constructor.
*
* @throws \Seat\Eseye\Exceptions\CachePathException
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
*/
Expand All @@ -62,6 +64,7 @@ public function __construct()

/**
* @return bool
*
* @throws \Seat\Eseye\Exceptions\CachePathException
*/
public function checkCacheDirectory()
Expand Down Expand Up @@ -98,10 +101,9 @@ public function getCachePath(): string
}

/**
* @param string $uri
* @param string $query
* @param \Seat\Eseye\Containers\EsiResponse $data
*
* @param string $uri
* @param string $query
* @param \Seat\Eseye\Containers\EsiResponse $data
* @return mixed|void
*/
public function set(string $uri, string $query, EsiResponse $data)
Expand All @@ -118,9 +120,8 @@ public function set(string $uri, string $query, EsiResponse $data)
}

/**
* @param string $path
* @param string $query
*
* @param string $path
* @param string $query
* @return string
*/
public function buildRelativePath(string $path, string $query = ''): string
Expand All @@ -135,8 +136,7 @@ public function buildRelativePath(string $path, string $query = ''): string
}

/**
* @param string $uri
*
* @param string $uri
* @return string
*/
public function safePath(string $uri): string
Expand All @@ -146,9 +146,8 @@ public function safePath(string $uri): string
}

/**
* @param string $uri
* @param string $query
*
* @param string $uri
* @param string $query
* @return bool|mixed
*/
public function has(string $uri, string $query = ''): bool
Expand All @@ -161,9 +160,8 @@ public function has(string $uri, string $query = ''): bool
}

/**
* @param string $uri
* @param string $query
*
* @param string $uri
* @param string $query
* @return \Seat\Eseye\Containers\EsiResponse|bool
*/
public function get(string $uri, string $query = '')
Expand Down Expand Up @@ -191,9 +189,8 @@ public function get(string $uri, string $query = '')
}

/**
* @param string $uri
* @param string $query
*
* @param string $uri
* @param string $query
* @return void
*/
public function forget(string $uri, string $query = '')
Expand Down
4 changes: 2 additions & 2 deletions src/Cache/HashesStrings.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@

/**
* Class HashesStrings.
*
* @package Seat\Eseye\Cache
*/
trait HashesStrings
{
/**
* @param string $string
*
* @param string $string
* @return string
*/
public function hashString(string $string)
Expand Down
30 changes: 13 additions & 17 deletions src/Cache/MemcachedCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

/**
* Class MemcachedCache.
*
* @package Seat\Eseye\Cache
*/
class MemcachedCache implements CacheInterface
Expand Down Expand Up @@ -56,7 +57,7 @@ class MemcachedCache implements CacheInterface
/**
* MemcachedCache constructor.
*
* @param null $instance
* @param null $instance
*
* @throws \Seat\Eseye\Exceptions\InvalidContainerDataException
*/
Expand Down Expand Up @@ -88,10 +89,9 @@ public function __construct($instance = null)
}

/**
* @param string $uri
* @param string $query
* @param \Seat\Eseye\Containers\EsiResponse $data
*
* @param string $uri
* @param string $query
* @param \Seat\Eseye\Containers\EsiResponse $data
* @return void
*/
public function set(string $uri, string $query, EsiResponse $data)
Expand All @@ -104,9 +104,8 @@ public function set(string $uri, string $query, EsiResponse $data)
}

/**
* @param string $uri
* @param string $query
*
* @param string $uri
* @param string $query
* @return string
*/
public function buildCacheKey(string $uri, string $query = ''): string
Expand All @@ -119,9 +118,8 @@ public function buildCacheKey(string $uri, string $query = ''): string
}

/**
* @param string $uri
* @param string $query
*
* @param string $uri
* @param string $query
* @return \Seat\Eseye\Containers\EsiResponse|bool
*/
public function get(string $uri, string $query = '')
Expand All @@ -144,9 +142,8 @@ public function get(string $uri, string $query = '')
}

/**
* @param string $uri
* @param string $query
*
* @param string $uri
* @param string $query
* @return mixed
*/
public function forget(string $uri, string $query = '')
Expand All @@ -156,9 +153,8 @@ public function forget(string $uri, string $query = '')
}

/**
* @param string $uri
* @param string $query
*
* @param string $uri
* @param string $query
* @return bool|mixed
*/
public function has(string $uri, string $query = ''): bool
Expand Down
23 changes: 10 additions & 13 deletions src/Cache/NullCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@

/**
* Class NullCache.
*
* @package Seat\Eseye\Cache
*/
class NullCache implements CacheInterface
{
/**
* @param string $uri
* @param string $query
* @param \Seat\Eseye\Containers\EsiResponse $data
*
* @param string $uri
* @param string $query
* @param \Seat\Eseye\Containers\EsiResponse $data
* @return mixed
*/
public function set(string $uri, string $query, EsiResponse $data)
Expand All @@ -43,9 +43,8 @@ public function set(string $uri, string $query, EsiResponse $data)
}

/**
* @param string $uri
* @param string $query
*
* @param string $uri
* @param string $query
* @return \Seat\Eseye\Containers\EsiResponse|bool
*/
public function get(string $uri, string $query = '')
Expand All @@ -55,9 +54,8 @@ public function get(string $uri, string $query = '')
}

/**
* @param string $uri
* @param string $query
*
* @param string $uri
* @param string $query
* @return mixed
*/
public function forget(string $uri, string $query = '')
Expand All @@ -66,9 +64,8 @@ public function forget(string $uri, string $query = '')
}

/**
* @param string $uri
* @param string $query
*
* @param string $uri
* @param string $query
* @return bool|mixed
*/
public function has(string $uri, string $query = ''): bool
Expand Down
Loading