Skip to content

Commit

Permalink
PSR-2 Compliant
Browse files Browse the repository at this point in the history
  • Loading branch information
fruitl00p committed Nov 9, 2015
1 parent 337b61b commit 4f51012
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 10 deletions.
5 changes: 2 additions & 3 deletions src/Communibase/Connector.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
class Connector implements ConnectorInterface
{

/**
* The official service URI; can be overridden via the constructor
*
Expand Down Expand Up @@ -313,7 +312,6 @@ public function destroy($entityType, $id)
*/
public function getBinary($id)
{

if (empty($this->apiKey)) {
throw new Exception('Use of connector not possible without API key', Exception::INVALID_API_KEY);
}
Expand Down Expand Up @@ -657,7 +655,8 @@ protected function getClient()
*
* @see https://github.com/guzzle/guzzle/issues/1297
*/
private function addHostToRequestOptions($options = []) {
private function addHostToRequestOptions($options = [])
{
if (isset($this->extraHeaders['host'])) {
$options['headers']['Host'] = $this->extraHeaders['host'];
}
Expand Down
1 change: 0 additions & 1 deletion src/Communibase/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/
class Exception extends \Exception
{

/**
* a defined constant when the API is is invalid (or empty)
*/
Expand Down
1 change: 0 additions & 1 deletion src/Communibase/Logging/DebugStack.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*/
class DebugStack implements QueryLogger
{

/**
* Executed queries.
*
Expand Down
1 change: 0 additions & 1 deletion src/Communibase/Logging/EchoQueryLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*/
class EchoQueryLogger implements QueryLogger
{

/**
* {@inheritdoc}
*/
Expand Down
1 change: 0 additions & 1 deletion src/Communibase/Logging/QueryLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*/
interface QueryLogger
{

/**
* Logs a Query somewhere.
*
Expand Down
1 change: 0 additions & 1 deletion test/Communibase/ConnectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/
class ConnectorTest extends \PHPUnit_Framework_TestCase
{

public function testGenerateIdIsValid()
{
$connector = new \Communibase\Connector('', '');
Expand Down
1 change: 0 additions & 1 deletion test/Communibase/FinalizeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/
class FinalizeTest extends \PHPUnit_Framework_TestCase
{

/**
* @TODO Test schould also check the reversed.
* @expectedException Exception
Expand Down
1 change: 0 additions & 1 deletion test/Communibase/Logging/DebugStackTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/
class DebugStackTest extends \PHPUnit_Framework_TestCase
{

/**
*
*/
Expand Down

0 comments on commit 4f51012

Please sign in to comment.