refactored 80%
[pharext/pharext.org] / app / Github / API / Tags / TagsCallback.php
index 99b623b3fa7ba20fa0d8158a19f0974884fd5770..6ca7caecb572af27ffcfd6de6b9ff84c934f3776 100644 (file)
@@ -14,12 +14,13 @@ class TagsCallback extends Callback
                $this->repo = $repo;
        }
        
-       function __invoke($json, $links = null) {
+       protected function exec($json, $links = null) {
                settype($this->repo->tags, "object");
                foreach ($json as $tag) {
                        $name = $tag->name;
                        settype($this->repo->tags->$name, "object");
                        $this->repo->tags->$name->tag = $tag;
                }
+               return $json;
        }
 }