Skip to content

Commit

Permalink
fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Hannaford committed Apr 11, 2016
1 parent 37ed3c9 commit cfd0d12
Show file tree
Hide file tree
Showing 52 changed files with 61 additions and 58 deletions.
2 changes: 1 addition & 1 deletion src/Common/Api/AbstractApi.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types = 1);
<?php declare (strict_types = 1);

namespace OpenCloud\Common\Api;

Expand Down
4 changes: 2 additions & 2 deletions src/Common/Api/AbstractParams.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Api;

Expand Down Expand Up @@ -97,4 +97,4 @@ public function sortKey(): array
'description' => "Sorts by one or more sets of attribute and sort direction combinations.",
];
}
}
}
2 changes: 1 addition & 1 deletion src/Common/Api/ApiInterface.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Api;

Expand Down
4 changes: 2 additions & 2 deletions src/Common/Api/Operation.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Api;

Expand Down Expand Up @@ -131,4 +131,4 @@ public function validate(array $userValues): bool

return true;
}
}
}
2 changes: 1 addition & 1 deletion src/Common/Api/OperatorInterface.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Api;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/Api/OperatorTrait.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Api;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/Api/Parameter.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Api;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/ArrayAccessTrait.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/Auth/AuthHandler.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Auth;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/Auth/Catalog.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Auth;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/Auth/IdentityService.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Auth;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/Auth/Token.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Auth;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/Error/BadResponseError.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Error;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/Error/BaseError.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Error;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/Error/Builder.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Error;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/Error/NotImplementedError.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Error;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/Error/UserInputError.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Error;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/HydratorStrategyTrait.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/JsonPath.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types = 1);
<?php declare (strict_types = 1);

namespace OpenCloud\Common;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/JsonSchema/JsonPatch.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\JsonSchema;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/JsonSchema/Schema.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\JsonSchema;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/Resource/AbstractResource.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Resource;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/Resource/Creatable.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Resource;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/Resource/Deletable.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Resource;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/Resource/HasMetadata.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Resource;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/Resource/HasWaiterTrait.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Resource;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/Resource/Iterator.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Resource;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/Resource/Listable.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Resource;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/Resource/OperatorResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,4 @@ public function model(string $class, $data = null): ResourceInterface

return $model;
}
}
}
2 changes: 1 addition & 1 deletion src/Common/Resource/ResourceInterface.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Resource;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/Resource/Retrievable.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Resource;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/Resource/Updateable.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Resource;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/Service/AbstractService.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Service;

Expand Down
4 changes: 2 additions & 2 deletions src/Common/Service/Builder.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types = 1);
<?php declare (strict_types = 1);

namespace OpenCloud\Common\Service;

Expand Down Expand Up @@ -160,4 +160,4 @@ private function mergeOptions(array $serviceOptions): array

return $options;
}
}
}
2 changes: 1 addition & 1 deletion src/Common/Service/ServiceInterface.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Service;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/Transport/HandlerStack.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Transport;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/Transport/JsonSerializer.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Transport;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/Transport/Middleware.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Transport;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/Transport/RequestSerializer.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Transport;

Expand Down
2 changes: 1 addition & 1 deletion src/Common/Transport/Serializable.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ interface Serializable
* @return string
*/
public function serialize(): \stdClass;
}
}
2 changes: 1 addition & 1 deletion src/Common/Transport/Utils.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php declare (strict_types=1);

namespace OpenCloud\Common\Transport;

Expand Down
3 changes: 1 addition & 2 deletions tests/integration/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,11 @@ private function getTest($service, $version, $test, $verbosity)

public function runServices()
{
list ($serviceOpt, $versionOpt, $moduleOpt, $testMethodOpt, $verbosityOpt) = $this->getOpts();
list($serviceOpt, $versionOpt, $moduleOpt, $testMethodOpt, $verbosityOpt) = $this->getOpts();

foreach ($this->getRunnableServices($serviceOpt, $versionOpt, $moduleOpt) as $serviceName => $serviceArray) {
foreach ($serviceArray as $versionName => $versionArray) {
foreach ($versionArray as $testName) {

$this->logger->info(str_repeat('=', 49));
$this->logger->info("Starting %s %v %m integration test(s)", [
'%s' => $serviceName,
Expand Down
8 changes: 5 additions & 3 deletions tests/unit/Common/Auth/AuthHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ public function test_it_should_generate_a_new_token_if_the_current_token_is_eith
class FakeToken implements Token
{
public function getId(): string
{}
{
}

public function hasExpired(): bool
{}
}
{
}
}
2 changes: 1 addition & 1 deletion tests/unit/Common/JsonSchema/SchemaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@ public function test_it_checks_validity()

$this->schema->isValid();
}
}
}
3 changes: 2 additions & 1 deletion tests/unit/Common/Resource/OperatorResourceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,4 +195,5 @@ public function testBaseUri()
}

class Server extends OperatorResource
{}
{
}
2 changes: 1 addition & 1 deletion tests/unit/Common/Service/BuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,4 @@ public function authenticate(array $options): array
{
return [];
}
}
}
2 changes: 1 addition & 1 deletion tests/unit/Common/Service/Fixtures/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

class Api extends AbstractApi
{
}
}
2 changes: 1 addition & 1 deletion tests/unit/Common/Service/Fixtures/Identity/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

class Api extends AbstractApi
{
}
}
2 changes: 1 addition & 1 deletion tests/unit/Common/Service/Fixtures/Identity/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

class Service extends AbstractService
{
}
}
2 changes: 1 addition & 1 deletion tests/unit/Common/Service/Fixtures/Models/Foo.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ public function testGetService()
{
return $this->getService();
}
}
}
2 changes: 1 addition & 1 deletion tests/unit/Common/Service/Fixtures/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

class Service extends AbstractService
{
}
}
3 changes: 2 additions & 1 deletion tests/unit/Common/Transport/JsonSerializerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,5 @@ class SubResource extends AbstractResource
}

class NonSerializableResource
{}
{
}

0 comments on commit cfd0d12

Please sign in to comment.