Skip to content

Commit

Permalink
style patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Redjik committed Dec 24, 2015
1 parent 1b7ad37 commit f3ccecd
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 18 deletions.
1 change: 0 additions & 1 deletion Model/Test/SecondTestEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
namespace Spira\Core\Model\Test;

use Spira\Core\Model\Model\BaseModel;
use Spira\Core\Model\Model\IndexedModel;
use Spira\Core\Model\Model\LocalizableModelInterface;
use Spira\Core\Model\Model\LocalizableModelTrait;

Expand Down
8 changes: 4 additions & 4 deletions tests/ArrayHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public function testRecursiveMerge()
'one' => 'one',
],
'noSuchValue' => [
'no'
]
'no',
],
],
'secondInner' => [],

Expand All @@ -43,8 +43,8 @@ public function testRecursiveMerge()
'two' => 'two',
],
'noSuchValue' => [
'no'
]
'no',
],
],
'secondInner' => [
'three',
Expand Down
19 changes: 9 additions & 10 deletions tests/ElasticSearchTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function setUp()
{
parent::setUp();

if(!TestEntity::indexExists()){
if (! TestEntity::indexExists()) {
TestEntity::createIndex();
}

Expand All @@ -34,7 +34,7 @@ public function setUp()
public function testIndexExist()
{
$this->assertTrue(TestEntity::indexExists());
$this->assertTrue((bool)TestEntity::deleteIndex());
$this->assertTrue((bool) TestEntity::deleteIndex());
$this->assertFalse(TestEntity::indexExists());
}

Expand All @@ -45,13 +45,12 @@ public function testCountIndex()

$data = $entity->countIndex();
$result = [
"count" => 0,
"_shards" =>
[
"total" => 5,
"successful" => 5,
"failed" => 0
]
'count' => 0,
'_shards' => [
'total' => 5,
'successful' => 5,
'failed' => 0,
],
];
$this->assertEquals($result, $data);
}
Expand Down Expand Up @@ -79,7 +78,7 @@ public function testElasticSearchAddToIndex()

/**
* No abstract static methods
* So we make small coverage hack here
* So we make small coverage hack here.
*/
public function testCoverageStatic()
{
Expand Down
1 change: 0 additions & 1 deletion tests/Services/DatasetsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public function testCountries()

public function testCountriesServiceUnavailable()
{

$this->setExpectedExceptionRegExp(
ServiceUnavailableException::class,
'/unavailable/i',
Expand Down
3 changes: 1 addition & 2 deletions tests/TransformerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ public function testNullItem()
public function testGetTransformer()
{
$service = $this->transformer->getService();
$getTransformer = function()
{
$getTransformer = function () {
return $this->getTransformer();
};

Expand Down

0 comments on commit f3ccecd

Please sign in to comment.