mirror of
https://github.com/cubixle/trustpilot-api-wrapper.git
synced 2026-04-30 02:08:43 +01:00
auto format.
This commit is contained in:
+6
-4
@@ -1,4 +1,6 @@
|
|||||||
<?php namespace LukeRodham\TrustPilot;
|
<?php
|
||||||
|
|
||||||
|
namespace LukeRodham\TrustPilot;
|
||||||
|
|
||||||
use GuzzleHttp\Client;
|
use GuzzleHttp\Client;
|
||||||
use LukeRodham\TrustPilot\Exceptions\InvalidApiCredentialsException;
|
use LukeRodham\TrustPilot\Exceptions\InvalidApiCredentialsException;
|
||||||
@@ -40,9 +42,9 @@ class ApiWrapper
|
|||||||
*/
|
*/
|
||||||
public function __construct($apiKey, $businessUnitId = '', $email = '', $password = '')
|
public function __construct($apiKey, $businessUnitId = '', $email = '', $password = '')
|
||||||
{
|
{
|
||||||
$this->apiKey = $apiKey;
|
$this->apiKey = $apiKey;
|
||||||
$this->email = $email;
|
$this->email = $email;
|
||||||
$this->password = $password;
|
$this->password = $password;
|
||||||
$this->businessUnitId = $businessUnitId;
|
$this->businessUnitId = $businessUnitId;
|
||||||
|
|
||||||
$this->client = new Client(['base_uri' => $this->baseUri]);
|
$this->client = new Client(['base_uri' => $this->baseUri]);
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
<?php namespace LukeRodham\TrustPilot\Exceptions;
|
<?php
|
||||||
|
|
||||||
|
namespace LukeRodham\TrustPilot\Exceptions;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
<?php namespace LukeRodham\TrustPilot\Sections;
|
<?php
|
||||||
|
|
||||||
|
namespace LukeRodham\TrustPilot\Sections;
|
||||||
|
|
||||||
use LukeRodham\TrustPilot\ApiWrapper;
|
use LukeRodham\TrustPilot\ApiWrapper;
|
||||||
use LukeRodham\TrustPilot\Transformers\ReviewTransformer;
|
use LukeRodham\TrustPilot\Transformers\ReviewTransformer;
|
||||||
|
|||||||
@@ -115,7 +115,6 @@ class ReviewTransformer
|
|||||||
$transformedData = [];
|
$transformedData = [];
|
||||||
|
|
||||||
foreach ($reviews['reviews'] as $review) {
|
foreach ($reviews['reviews'] as $review) {
|
||||||
|
|
||||||
$transformedData[] = $this->transform($review);
|
$transformedData[] = $this->transform($review);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
-1
@@ -1,4 +1,6 @@
|
|||||||
<?php namespace LukeRodham\TrustPilot;
|
<?php
|
||||||
|
|
||||||
|
namespace LukeRodham\TrustPilot;
|
||||||
|
|
||||||
use LukeRodham\TrustPilot\Sections\Reviews;
|
use LukeRodham\TrustPilot\Sections\Reviews;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user