private static function initProvider($credentials = [])
    {
        return new Unsplash([
            'clientId' => isset($credentials['applicationId']) ? $credentials['applicationId'] : null,
            'clientSecret' => isset($credentials['secret']) ? $credentials['secret'] : null,
            'redirectUri' => isset($credentials['callbackUrl']) ? $credentials['callbackUrl'] : null
        ]);
    }
private static function initProvider($credentials = [])
    {
        return new Unsplash([
            'clientId' => isset($credentials['applicationId']) ? $credentials['applicationId'] : null,
            'clientSecret' => isset($credentials['secret']) ? $credentials['secret'] : null,
            'redirectUri' => isset($credentials['callbackUrl']) ? $credentials['callbackUrl'] : null
        ]);
    }
private static function initProvider ( $ credentials = [ ] ) { return new Unsplash ( [ 'clientId' => isset ( $ credentials [ 'applicationId' ] ) ? $ credentials [ 'applicationId' ] : null , 'clientSecret' => isset ( $ credentials [ 'secret' ] ) ? $ credentials [ 'secret' ] : null , 'redirectUri' => isset ( $ credentials [ 'callbackUrl' ] ) ? $ credentials [ 'callbackUrl' ] : null ] ) ; }
Create an unsplash provider from the credentials provided by the user.
If only the `applicationId` is set, non-public scoped permissions
won't work since access tokens can't be created without the secret and callback url

@param array $credentials
@return Unsplash Provider object used for the authentication
@see HttpClient::init documentation
Create an unsplash provider from the credentials provided by the user . If only the applicationId is set non - public scoped permissions won t work since access tokens can t be created without the secret and callback url