<?php

namespace RIPS\Connector\Requests;

class SourceRequests extends BaseRequest
{
    /**
     * Build a uri for the request
     *
     * @return string
     */
    protected function uri()
    {
        return '/sources';
    }

    /**
     * Get all directories from the root source directory
     *
     * @param array $queryParams
     * @return \stdClass[]
     */
    public function getAll(array $queryParams = [])
    {
        $response = $this->client->get($this->uri(), [
            'query' => $queryParams,
        ]);

        return $this->handleResponse($response);
    }
}

<?php

namespace RIPS\Connector\Requests;

class SourceRequests extends BaseRequest
{
    /**
     * Build a uri for the request
     *
     * @return string
     */
    protected function uri()
    {
        return '/sources';
    }

    /**
     * Get all directories from the root source directory
     *
     * @param array $queryParams
     * @return string
     */
    public function getAll(array $queryParams = [])
    {
        $response = $this->client->get($this->uri(), [
            'query' => $queryParams,
        ]);

        return $this->handleResponse($response, true);
    }
}

Make source requests return raw response
Make source requests return raw response
