YetiForceCompany/YetiForceCRM

View on GitHub
app/Cache/XCache.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Reference to undeclared constant \XC_TYPE_VAR
Open

            if (false === xcache_clear_cache(XC_TYPE_VAR, $i)) {
Severity: Minor
Found in app/Cache/XCache.php by phan

Reference to undeclared constant \XC_TYPE_VAR
Open

        for ($i = 0, $max = xcache_count(XC_TYPE_VAR); $i < $max; ++$i) {
Severity: Minor
Found in app/Cache/XCache.php by phan

Spaces must be used to indent lines; tabs are not allowed
Open

        }
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    {
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @param int          $duration Cache TTL (in seconds)
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    /**
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        return xcache_unset($key);
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        }
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @return bool
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public function has($key)
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * Deletes all items in the cache.
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            throw new CacheException('XCache is not enabled');
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     *
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    {
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    }
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * Class constructor.
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     */
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * Is apcu is available.
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    /**
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        for ($i = 0, $max = xcache_count(XC_TYPE_VAR); $i < $max; ++$i) {
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    }
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * Confirms if the cache contains specified cache item.
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     *
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     */
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    }
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        return true;
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    /**
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        return \extension_loaded('xcache');
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        return xcache_get($key);
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    {
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     *
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     *
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @return bool
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     *
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     */
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public function __construct()
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public function get($key)
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        return xcache_isset($key);
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * Returns a cache item representing the specified key.
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     */
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @param array|string $value    Data to store
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @return bool
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    {
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @throws CacheException
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     *
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     */
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     *
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @return bool
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

                return false;
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    /**
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    {
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @param array|string $key Cache ID
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            }
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     */
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @param array|string $key Cache ID
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @return bool
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @param string       $key      Cache ID
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     *
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    }
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    {
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        if (!static::isSupported()) {
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    }
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    /**
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     *
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * Cache save.
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    /**
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     *
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public function save($key, $value, $duration)
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        return xcache_set($key, $value, $duration);
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public function delete($key)
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     *
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @param array|string $key Cache ID
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    }
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    {
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public static function isSupported()
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * @return array|string
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    }
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    /**
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     * Removes the item from the cache.
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

     */
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

    public function clear()
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

            if (false === xcache_clear_cache(XC_TYPE_VAR, $i)) {
Severity: Minor
Found in app/Cache/XCache.php by phpcodesniffer

There are no issues that match your filters.

Category
Status