src/UpdateWatcher.php
public function filterPluginsApi($false, $action, $response)
    {
        // basically, verify we're working with our plugin
        if (empty($response->slug)) return false;
        
        $this->updatePluginData();
        if ($response->slug != $this->pluginSlug) return false;
        
        // it's ours, so update the data
        $this->updateGithubData();

        $response->last_updated = $this->githubLatestRelease['published_at'];
        $response->slug = $this->pluginSlug;
        $response->name  = $this->pluginData["Name"];
        $response->version = $this->githubLatestRelease['tag_name'];
        $response->author = $this->pluginData["AuthorName"];
        $response->homepage = $this->pluginData["PluginURI"];
        $response->download_link = $this->githubLatestRelease['zipball_url'];
        
        $parsedown = new \Parsedown();
        $response->sections = [
            'description'   =>  $this->pluginData['Description'],
            'changelog' =>  $parsedown->text($this->githubLatestRelease['body'])
        ];
        
        return $response;
    }
public function filterPluginsApi($false, $action, $response)
    {
        // basically, verify we're working with our plugin
        if (empty($response->slug)) return false;
        
        $this->updatePluginData();
        if ($response->slug != $this->pluginSlug) return false;
        
        // it's ours, so update the data
        $this->updateGithubData();

        $response->last_updated = $this->githubLatestRelease['published_at'];
        $response->slug = $this->pluginSlug;
        $response->name  = $this->pluginData["Name"];
        $response->version = $this->githubLatestRelease['tag_name'];
        $response->author = $this->pluginData["AuthorName"];
        $response->homepage = $this->pluginData["PluginURI"];
        $response->download_link = $this->githubLatestRelease['zipball_url'];
        
        $parsedown = new \Parsedown();
        $response->sections = [
            'description'   =>  $this->pluginData['Description'],
            'changelog' =>  $parsedown->text($this->githubLatestRelease['body'])
        ];
        
        return $response;
    }
public function filterPluginsApi ( $ false , $ action , $ response ) { // basically, verify we're working with our plugin if ( empty ( $ response -> slug ) ) return false ; $ this -> updatePluginData ( ) ; if ( $ response -> slug != $ this -> pluginSlug ) return false ; // it's ours, so update the data $ this -> updateGithubData ( ) ; $ response -> last_updated = $ this -> githubLatestRelease [ 'published_at' ] ; $ response -> slug = $ this -> pluginSlug ; $ response -> name = $ this -> pluginData [ "Name" ] ; $ response -> version = $ this -> githubLatestRelease [ 'tag_name' ] ; $ response -> author = $ this -> pluginData [ "AuthorName" ] ; $ response -> homepage = $ this -> pluginData [ "PluginURI" ] ; $ response -> download_link = $ this -> githubLatestRelease [ 'zipball_url' ] ; $ parsedown = new \ Parsedown ( ) ; $ response -> sections = [ 'description' => $ this -> pluginData [ 'Description' ] , 'changelog' => $ parsedown -> text ( $ this -> githubLatestRelease [ 'body' ] ) ] ; return $ response ; }
This updates the details for showing information in the modal

@param $false
@param $action
@param $response
@return mixed
This updates the details for showing information in the modal