Skip to content

Commit

Permalink
Fix cs.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephpy committed Jan 3, 2018
1 parent 1aae730 commit 6cc09d2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src/ClientInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace WakeOnWeb\SalesforceClient;

use WakeOnWeb\SalesforceClient\DTO;

interface ClientInterface
{
const ALL = true;
Expand Down
3 changes: 1 addition & 2 deletions src/DTO/SalesforceObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace WakeOnWeb\SalesforceClient\DTO;

/**
* SalesforceObject
* SalesforceObject.
*
* @author Stephane PY <[email protected]>
*/
Expand Down Expand Up @@ -65,5 +65,4 @@ public function hasField($key)
{
return array_key_exists($key, $this->fields);
}

}
7 changes: 5 additions & 2 deletions src/DTO/SalesforceObjectCreation.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace WakeOnWeb\SalesforceClient\DTO;

/**
* SalesforceObject
* SalesforceObject.
*
* @author Stephane PY <[email protected]>
*/
Expand All @@ -25,7 +25,10 @@ private function __construct(string $id, bool $success, array $errors = [], arra
public static function createFromArray(array $data)
{
return new self(
$data['id'], $data['success'], $data['errors'], $data['warnings']
$data['id'],
$data['success'],
$data['errors'],
$data['warnings']
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/DTO/SalesforceObjectResults.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace WakeOnWeb\SalesforceClient\DTO;

/**
* SalesforceObjectResults
* SalesforceObjectResults.
*
* @author Stephane PY <[email protected]>
*/
Expand Down
2 changes: 0 additions & 2 deletions src/REST/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ public function describeObjectMetadata(string $object, \DateTimeInterface $since
);
}


public function createObject(string $object, array $data): DTO\SalesforceObjectCreation
{
$data = $this->doAuthenticatedRequest(
Expand Down Expand Up @@ -135,7 +134,6 @@ public function searchSOQL(string $query, bool $all = self::NOT_ALL): DTO\Salesf
return DTO\SalesforceObjectResults::createFromArray(
$this->doAuthenticatedRequest(
new Request('GET', $url)

)
);
}
Expand Down

0 comments on commit 6cc09d2

Please sign in to comment.