function Cache::get
Retrieves a single entry from the cache.
Parameters
string $key The key of the data to get. If NULL,: everything in the cache is returned.
Return value
mixed
2 calls to Cache::get()
- LocalFile::process in vendor/
squizlabs/ php_codesniffer/ src/ Files/ LocalFile.php - Processes the file.
- Runner::run in vendor/
squizlabs/ php_codesniffer/ src/ Runner.php - Performs the run.
File
-
vendor/
squizlabs/ php_codesniffer/ src/ Util/ Cache.php, line 308
Class
Namespace
PHP_CodeSniffer\UtilCode
public static function get($key = null) {
if ($key === null) {
return self::$cache;
}
if (isset(self::$cache[$key]) === true) {
return self::$cache[$key];
}
return false;
}