aboutsummaryrefslogtreecommitdiff
path: root/lib/Cache.php
diff options
context:
space:
mode:
authorGravatar logmanoriginal <logmanoriginal@users.noreply.github.com> 2018-11-13 18:27:05 +0100
committerGravatar logmanoriginal <logmanoriginal@users.noreply.github.com> 2018-11-13 18:27:05 +0100
commitc15b25a07d915336696ff5f2c34a75d9b7a2237c (patch)
tree71c7191ba88459da2e500dc8a75619b4d6decd7f /lib/Cache.php
parentc296e73c18d01bf3d6e848fc7bc7c7581301947b (diff)
downloadrss-bridge-c15b25a07d915336696ff5f2c34a75d9b7a2237c.tar.gz
rss-bridge-c15b25a07d915336696ff5f2c34a75d9b7a2237c.tar.zst
rss-bridge-c15b25a07d915336696ff5f2c34a75d9b7a2237c.zip
core: Fix PHPCS violations
Diffstat (limited to 'lib/Cache.php')
-rw-r--r--lib/Cache.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Cache.php b/lib/Cache.php
index b3ab4826..51d37c1b 100644
--- a/lib/Cache.php
+++ b/lib/Cache.php
@@ -8,7 +8,7 @@ class Cache {
throw new \LogicException('Please use ' . __CLASS__ . '::create for new object.');
}
- static public function create($nameCache){
+ public static function create($nameCache){
if(!static::isValidNameCache($nameCache)) {
throw new \InvalidArgumentException('Name cache must be at least one
uppercase follow or not by alphanumeric or dash characters.');
@@ -25,7 +25,7 @@ class Cache {
return new $nameCache();
}
- static public function setDir($dirCache){
+ public static function setDir($dirCache){
if(!is_string($dirCache)) {
throw new \InvalidArgumentException('Dir cache must be a string.');
}
@@ -37,7 +37,7 @@ class Cache {
self::$dirCache = $dirCache;
}
- static public function getDir(){
+ public static function getDir(){
$dirCache = self::$dirCache;
if(is_null($dirCache)) {
@@ -47,7 +47,7 @@ class Cache {
return $dirCache;
}
- static public function isValidNameCache($nameCache){
+ public static function isValidNameCache($nameCache){
return preg_match('@^[A-Z][a-zA-Z0-9-]*$@', $nameCache);
}
}