public function cleanAccessTokens(array $param = [])
    {
        $count = 0;

        foreach ($this->getAllStoredAccessTokenFiles() as $file) {
            $expires_at = $this->loadTimestamp($file);

            if (is_integer($expires_at)) {
                if ($expires_at < time()) {
                    unlink($file);
                    $count++;
                }
            }
        }

        return $count;
    }
public function cleanAccessTokens(array $param = [])
    {
        $count = 0;

        foreach ($this->getAllStoredAccessTokenFiles() as $file) {
            $expires_at = $this->loadTimestamp($file);

            if (is_integer($expires_at)) {
                if ($expires_at < time()) {
                    unlink($file);
                    $count++;
                }
            }
        }

        return $count;
    }
public function cleanAccessTokens ( array $ param = [ ] ) { $ count = 0 ; foreach ( $ this -> getAllStoredAccessTokenFiles ( ) as $ file ) { $ expires_at = $ this -> loadTimestamp ( $ file ) ; if ( is_integer ( $ expires_at ) ) { if ( $ expires_at < time ( ) ) { unlink ( $ file ) ; $ count ++ ; } } } return $ count ; }
Remove all expired Access Tokens

@param array $param

@return int the count of deleted Access Tokens
Remove all expired Access Tokens