lib/GitHub/Receiver/Activity/Watching.php
public function listSubscriptions(string $username = null): array
    {
        if (null !== $username) {
            return $this->getApi()->request($this->getApi()->sprintf('/users/:username/subscriptions',
                $this->getActivity()->getOwner(), $this->getActivity()->getRepo(), $username));
        }

        return $this->getApi()->request($this->getApi()
                                             ->sprintf('/user/subscriptions', $this->getActivity()->getOwner(),
                                                 $this->getActivity()->getRepo()));
    }
public function listSubscriptions(string $username = null): array
    {
        if (null !== $username) {
            return $this->getApi()->request($this->getApi()->sprintf('/users/:username/subscriptions',
                $this->getActivity()->getOwner(), $this->getActivity()->getRepo(), $username));
        }

        return $this->getApi()->request($this->getApi()
                                             ->sprintf('/user/subscriptions', $this->getActivity()->getOwner(),
                                                 $this->getActivity()->getRepo()));
    }
public function listSubscriptions ( string $ username = null ) : array { if ( null !== $ username ) { return $ this -> getApi ( ) -> request ( $ this -> getApi ( ) -> sprintf ( '/users/:username/subscriptions' , $ this -> getActivity ( ) -> getOwner ( ) , $ this -> getActivity ( ) -> getRepo ( ) , $ username ) ) ; } return $ this -> getApi ( ) -> request ( $ this -> getApi ( ) -> sprintf ( '/user/subscriptions' , $ this -> getActivity ( ) -> getOwner ( ) , $ this -> getActivity ( ) -> getRepo ( ) ) ) ; }
List repositories being watched

@link https://developer.github.com/v3/activity/watching/#list-repositories-being-watched

@param string $username

@return array
List repositories being watched