Skip to content
This repository has been archived by the owner on May 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3 from findbrok/analysis-8PBb4e
Browse files Browse the repository at this point in the history
Applied fixes from StyleCI
  • Loading branch information
percymamedy authored Nov 5, 2016
2 parents 4b89432 + ffb47c3 commit 055e42b
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/AbstractEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ public function getCredentialName()
public function getCredentials()
{
return [
'username' => config('tradeoff-analytics.credentials.'.$this->getCredentialName().'.username'),
'password' => config('tradeoff-analytics.credentials.'.$this->getCredentialName().'.password'),
'url' => config('tradeoff-analytics.credentials.'.$this->getCredentialName().'.url'),
'username' => config('tradeoff-analytics.credentials.' . $this->getCredentialName() . '.username'),
'password' => config('tradeoff-analytics.credentials.' . $this->getCredentialName() . '.password'),
'url' => config('tradeoff-analytics.credentials.' . $this->getCredentialName() . '.url'),
];
}

Expand Down
2 changes: 1 addition & 1 deletion src/Engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function getDilemma(Problem $problem, $generateVisualization = true)
{
//Get Response from Watson
$response = $this->makeBridge()->post(
'v1/dilemmas?generate_visualization='.var_export($generateVisualization, true),
'v1/dilemmas?generate_visualization=' . var_export($generateVisualization, true),
$problem->statement()
);
//Get Response content
Expand Down
2 changes: 1 addition & 1 deletion src/TradeoffAnalyticsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,6 @@ public function registerDataCollections()
*/
public function ourConfigPath($fileName = '')
{
return __DIR__.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.$fileName;
return __DIR__ . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . $fileName;
}
}
2 changes: 1 addition & 1 deletion tests/TestDilemma.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected function getPackageProviders($app)
*/
public function getResolution()
{
return json_decode(file_get_contents(__DIR__.'/fixtures/resolution.json'), true);
return json_decode(file_get_contents(__DIR__ . '/fixtures/resolution.json'), true);
}

/**
Expand Down
6 changes: 3 additions & 3 deletions tests/TestEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function setUp()
{
parent::setUp();
//Setup our config path
$this->ourConfigPath = __DIR__.'/../src/config/tradeoff-analytics.php';
$this->ourConfigPath = __DIR__ . '/../src/config/tradeoff-analytics.php';
//Set up engine
$this->engine = app('FindBrok\TradeoffAnalytics\Contracts\TradeoffAnalyticsInterface');
//Mock Bridge
Expand Down Expand Up @@ -82,7 +82,7 @@ public function mockBridge()
*/
public function getProblem()
{
return json_decode(file_get_contents(__DIR__.'/fixtures/problem.json'), true);
return json_decode(file_get_contents(__DIR__ . '/fixtures/problem.json'), true);
}

/**
Expand All @@ -92,7 +92,7 @@ public function getProblem()
*/
public function getResolutionResponseBody()
{
return file_get_contents(__DIR__.'/fixtures/resolution.json');
return file_get_contents(__DIR__ . '/fixtures/resolution.json');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/TestMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ protected function getPackageProviders($app)
*/
public function getResolution()
{
return json_decode(file_get_contents(__DIR__.'/fixtures/resolution.json'), true);
return json_decode(file_get_contents(__DIR__ . '/fixtures/resolution.json'), true);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/TestSolution.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected function getPackageProviders($app)
*/
public function getResolution()
{
return json_decode(file_get_contents(__DIR__.'/fixtures/resolution.json'), true);
return json_decode(file_get_contents(__DIR__ . '/fixtures/resolution.json'), true);
}

/**
Expand Down

0 comments on commit 055e42b

Please sign in to comment.