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