Rss-Bridge/lib
logmanoriginal e8442a3bf8 [Cache] Refactor class
general

- Use self:: instead of Cache:: or static::
- Rename $dirCache to $workingDir
- Initialize $workingDir with null

function setDir

- Clear previous working directory before checking input parameters
- Change wording for the exception messages
- Store realpath instead of raw parameter
- Add path separator
  This ensures the path always ends with the path separator, as assumed
  by Cache::create
- Add check if the provided working directory is a valid directory

function getDir

- Use static parameter instead of function variable
- Change wording for the exception message

function create

- Rename parameter $nameCache to $name
- Rename $pathCache to $filePath
- Change wording for the exception messages

function isValidNameCache

- Rename function to isCacheName
- Rename parameter $nameCache to $name
- Explain in the function documentation the meaning of a 'valid name'
- Ensure Boolean return value (preg_match returns integer)
- Check if $name is a string
- Use slashes to enclose the regex
2018-11-14 20:33:44 +01:00
..
Authentication.php core: Set code in header() instead of calling http_response_code() 2018-11-05 19:29:01 +01:00
Bridge.php [Bridge] Add and rewrite documentation compatible to phpDocumentor 2018-11-13 20:28:17 +01:00
BridgeAbstract.php [RssBridge] Include interfaces once 2018-11-06 19:23:32 +01:00
BridgeCard.php [BridgeCard] Fix checkbox default value (#874) 2018-10-20 13:14:46 +02:00
BridgeInterface.php Return exceptions in requested feed formats (#841) 2018-10-15 17:21:43 +02:00
BridgeList.php core: Refactor bridge whitelisting 2018-11-10 22:26:58 +01:00
Cache.php [Cache] Refactor class 2018-11-14 20:33:44 +01:00
CacheInterface.php [cache] Specify cache duration for 'purgeCache' 2016-10-08 16:18:10 +02:00
Configuration.php core: Define path to whitelist.txt in rssbridge.php 2018-11-10 19:51:37 +01:00
contents.php core: Add Debug::isEnabled() and Debug::isSecure() 2018-11-10 20:50:34 +01:00
Debug.php core: Add Debug::isEnabled() and Debug::isSecure() 2018-11-10 20:50:34 +01:00
error.php core: Add separate Debug class 2018-11-10 20:03:05 +01:00
Exceptions.php core: Use REPOSITORY constant where applicable 2018-11-05 19:05:59 +01:00
FeedExpander.php core: Add separate Debug class 2018-11-10 20:03:05 +01:00
Format.php core: Fix PHPCS violations 2018-11-13 18:27:05 +01:00
FormatAbstract.php [RssBridge] Include interfaces once 2018-11-06 19:23:32 +01:00
FormatInterface.php [FormatInterface] Add missing public functions 2016-11-09 18:41:24 +01:00
html.php phpcs: Fix violations 2018-11-05 12:55:58 +01:00
ParameterValidator.php [ParameterValidator] Move 'getQueriedContext' from BridgeAbstract 2018-09-22 17:04:55 +02:00
rssbridge.php core: Add Debug::isEnabled() and Debug::isSecure() 2018-11-10 20:50:34 +01:00