public function getAllLabels()
    {
        $result = $this->get('labels');

        $status = $result->getStatusCode();
        if (204 === $status) {
            return [];
        }
        if (200 === $status) {
            return json_decode($result->getBody()->getContents());
        }

        return false;
    }
public function getAllLabels()
    {
        $result = $this->get('labels');

        $status = $result->getStatusCode();
        if (204 === $status) {
            return [];
        }
        if (200 === $status) {
            return json_decode($result->getBody()->getContents());
        }

        return false;
    }
public function getAllLabels ( ) { $ result = $ this -> get ( 'labels' ) ; $ status = $ result -> getStatusCode ( ) ; if ( 204 === $ status ) { return [ ] ; } if ( 200 === $ status ) { return json_decode ( $ result -> getBody ( ) -> getContents ( ) ) ; } return false ; }
Get all labels.

@return array|bool Array with all labels (can be empty), or false on failure.
Get all labels .