Skip to content

Commit

Permalink
Merge pull request #1 from mattsches/analysis-qJ2k5o
Browse files Browse the repository at this point in the history
Applied fixes from StyleCI
  • Loading branch information
mattsches committed Mar 23, 2016
2 parents 24f3862 + 32f862c commit 771ff33
Show file tree
Hide file tree
Showing 20 changed files with 73 additions and 73 deletions.
4 changes: 2 additions & 2 deletions spec/Console/CommandFactorySpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function it_generates_a_runnable_command()
$result['services:ping']->getName()->shouldBe('services:ping');
$result['services:ping']->run(new ArrayInput([]), $output);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
pong
EOS
Expand Down Expand Up @@ -136,7 +136,7 @@ public function getMatchers()
'onlyContainCommandInstances' => function ($subject) {
foreach ($subject as $command) {
if (!$command instanceof Command) {
throw new FailureException('"' . get_class($command) . '" is not a subtype of Symfony\Component\Console\Command\Command');
throw new FailureException('"'.get_class($command).'" is not a subtype of Symfony\Component\Console\Command\Command');
}
}

Expand Down
12 changes: 6 additions & 6 deletions spec/Output/GithubSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function it_prints_a_boolean_on_sync()

$this->sync($output, ['status' => 'done']);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
OK
EOS
Expand All @@ -31,7 +31,7 @@ public function it_prints_a_boolean_on_delete()

$this->delete($output, ['success' => 'failure']);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
failure
EOS
Expand All @@ -44,7 +44,7 @@ public function it_prints_a_boolean_on_hook()

$this->hook($output, ['success' => 'failure']);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
failure
EOS
Expand All @@ -56,7 +56,7 @@ public function it_prints_a_table_on_repos()
$output = new BufferedOutput();
$this->repos($output, ['repos' => [['fullname' => 'digitalkaoz/versioneye-php', 'language' => 'php', 'description' => 'wrapper around versioneye api', 'owner_login' => 'digitalkaoz', 'fork' => false, 'foo' => 'bazz']]]);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
+----------------------------+----------+-------------------------------+-------------+------+
| Name | Language | Description | Owner | Fork |
+----------------------------+----------+-------------------------------+-------------+------+
Expand All @@ -81,7 +81,7 @@ public function it_prints_a_list_on_import()
'git_url' => 'git@github.com:digitalkaoz/versioneye-php.git',
]]);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
Name : digitalkaoz/versioneye-php
Homepage : http://digitalkaoz.github.io/versioneye-php
Language : php
Expand Down Expand Up @@ -109,7 +109,7 @@ public function it_prints_a_list_on_show()
'git_url' => 'git@github.com:digitalkaoz/versioneye-php.git',
]]);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
Name : digitalkaoz/versioneye-php
Homepage : http://digitalkaoz.github.io/versioneye-php
Language : php
Expand Down
8 changes: 4 additions & 4 deletions spec/Output/MeSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function it_prints_a_list_on_profile()
'notifications' => ['new' => 10, 'total' => 100],
]);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
Fullname : Robert Schönthal
Username : digitalkaoz
Email : robert.schoenthal@gmail.com
Expand All @@ -39,7 +39,7 @@ public function it_prints_a_table_on_favorites()
$output = new BufferedOutput();
$this->favorites($output, ['favorites' => [['name' => 'digitalkaoz/versioneye-php', 'language' => 'php', 'version' => '1.0.0', 'prod_type' => 'composer']]]);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
+----------------------------+----------+---------+----------+
| Name | Language | Version | Type |
+----------------------------+----------+---------+----------+
Expand All @@ -55,7 +55,7 @@ public function it_prints_a_table_on_notifications()
$output = new BufferedOutput();
$this->notifications($output, ['notifications' => [['name' => 'digitalkaoz/versioneye-php', 'language' => 'php', 'version' => '1.0.0', 'prod_type' => 'composer']]]);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
+----------------------------+----------+---------+----------+
| Name | Language | Version | Type |
+----------------------------+----------+---------+----------+
Expand All @@ -77,7 +77,7 @@ public function it_prints_a_table_on_comments()
],
]]);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
+----------------------------+----------+---------+----------+------------+---------+
| Name | Language | Version | Type | Date | Comment |
+----------------------------+----------+---------+----------+------------+---------+
Expand Down
14 changes: 7 additions & 7 deletions spec/Output/ProductsSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function it_prints_a_table_on_search()
],
]]);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
+----------------------------+----------+---------+----------+
| Name | Language | Version | Type |
+----------------------------+----------+---------+----------+
Expand All @@ -49,7 +49,7 @@ public function it_prints_a_table_on_versions()
],
]);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
Name : digitalkaoz/versioneye-php
Language : php
Key : 2
Expand Down Expand Up @@ -78,7 +78,7 @@ public function it_prints_a_table_on_references()
],
]]);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
+----------------------------+----------+---------+----------+
| Name | Language | Version | Type |
+----------------------------+----------+---------+----------+
Expand Down Expand Up @@ -108,7 +108,7 @@ public function it_prints_a_list_on_show()
],
]);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
Name : digitalkaoz/versioneye-php
Description : a php wrapper around the versioneye api
Source : http://lolcat.com
Expand All @@ -135,7 +135,7 @@ public function it_prints_a_boolean_on_followStatus()

$this->followStatus($output, ['follows' => false]);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
NO
EOS
Expand All @@ -148,7 +148,7 @@ public function it_prints_a_boolean_on_follow()

$this->follow($output, ['follows' => true]);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
OK
EOS
Expand All @@ -161,7 +161,7 @@ public function it_prints_a_boolean_on_unfollow()

$this->unfollow($output, ['follows' => false]);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
OK
EOS
Expand Down
14 changes: 7 additions & 7 deletions spec/Output/ProjectsSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function it_prints_a_table_on_all()
],
]);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
+------------------------------+----------------------------+----------+--------+--------------+----------+------------+--------------+------------------+
| Key | Name | Type | Public | Dependencies | Outdated | Updated At | Bad Licenses | Unknown Licenses |
+------------------------------+----------------------------+----------+--------+--------------+----------+------------+--------------+------------------+
Expand All @@ -53,7 +53,7 @@ public function it_prints_a_table_on_licenses()
]],
]]);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
+---------+----------------------------+
| license | name |
+---------+----------------------------+
Expand Down Expand Up @@ -86,7 +86,7 @@ public function it_prints_a_boolean_on_delete()

$this->delete($output, ['success' => true, 'message' => 'foo']);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
foo
EOS
Expand All @@ -99,7 +99,7 @@ public function it_prints_a_boolean_on_merge()

$this->merge($output, ['success' => true]);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
OK
EOS
Expand All @@ -112,7 +112,7 @@ public function it_prints_a_boolean_on_mergeGa()

$this->mergeGa($output, ['success' => true]);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
OK
EOS
Expand All @@ -125,7 +125,7 @@ public function it_prints_a_boolean_on_unmerge()

$this->unmerge($output, ['success' => false]);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
FAIL
EOS
Expand Down Expand Up @@ -156,7 +156,7 @@ private function defaultOutput($method)
]],
]);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
Name : digitalkaoz/versioneye-php
Key : digitalkaoz_versioneye-php_1
Type : composer
Expand Down
2 changes: 1 addition & 1 deletion spec/Output/ServicesSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function it_prints_a_boolean_on_follow()

$this->ping($output, ['success' => true, 'message' => 'pong']);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
pong
EOS
Expand Down
6 changes: 3 additions & 3 deletions spec/Output/SessionsSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function it_prints_a_list_on_show()
'email' => 'robert.schoenthal@gmail.com',
]);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
Fullname : Robert Schönthal
API Token : 1337
Expand All @@ -35,7 +35,7 @@ public function it_prints_a_boolean_on_open()

$this->open($output, 'true');

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
OK
EOS
Expand All @@ -48,7 +48,7 @@ public function it_prints_a_boolean_on_close()

$this->close($output, ['message' => 'Session is closed now.']);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
OK
EOS
Expand Down
8 changes: 4 additions & 4 deletions spec/Output/UsersSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function it_prints_a_list_on_show()
'email' => 'robert.schoenthal@gmail.com',
]);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
Fullname : Robert Schönthal
Username : digitalkaoz
Expand All @@ -34,7 +34,7 @@ public function it_prints_a_table_on_favorites()
$output = new BufferedOutput();
$this->favorites($output, ['favorites' => [['name' => 'digitalkaoz/versioneye-php', 'language' => 'php', 'version' => '1.0.0', 'prod_type' => 'composer']]]);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
+----------------------------+----------+---------+----------+
| Name | Language | Version | Type |
+----------------------------+----------+---------+----------+
Expand All @@ -50,7 +50,7 @@ public function it_prints_a_table_on_notifications()
$output = new BufferedOutput();
$this->notifications($output, ['notifications' => [['name' => 'digitalkaoz/versioneye-php', 'language' => 'php', 'version' => '1.0.0', 'prod_type' => 'composer']]]);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
+----------------------------+----------+---------+----------+
| Name | Language | Version | Type |
+----------------------------+----------+---------+----------+
Expand All @@ -72,7 +72,7 @@ public function it_prints_a_table_on_comments()
],
]]);

expect($output->fetch())->toBe(<<<EOS
expect($output->fetch())->toBe(<<<'EOS'
+----------------------------+----------+---------+----------+------------+---------+
| Name | Language | Version | Type | Date | Comment |
+----------------------------+----------+---------+----------+------------+---------+
Expand Down
6 changes: 3 additions & 3 deletions src/Api/BaseApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ abstract class BaseApi
public function __construct(HttpClient $client, $token = null)
{
$this->client = $client;
$this->token = $token;
$this->token = $token;
}

/**
Expand Down Expand Up @@ -78,7 +78,7 @@ protected function transform($name)
private function sanitizeQuery($query)
{
$parts = parse_url($query);
$path = $parts['path'];
$path = $parts['path'];

if (!isset($parts['query'])) {
return $query;
Expand All @@ -101,7 +101,7 @@ private function sanitizeQuery($query)
}
}

return $path . '?' . http_build_query($final);
return $path.'?'.http_build_query($final);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Api/Github.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function sync()
*/
public function show($repository)
{
return $this->request('github/' . $this->transform($repository));
return $this->request('github/'.$this->transform($repository));
}

/**
Expand Down
6 changes: 3 additions & 3 deletions src/Api/Projects.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function all()
*/
public function show($project)
{
return $this->request('projects/' . $project);
return $this->request('projects/'.$project);
}

/**
Expand All @@ -42,7 +42,7 @@ public function show($project)
*/
public function delete($project)
{
return $this->request('projects/' . $project, 'DELETE');
return $this->request('projects/'.$project, 'DELETE');
}

/**
Expand All @@ -67,7 +67,7 @@ public function create($file)
*/
public function update($project, $file)
{
return $this->request('projects/' . $project, 'POST', ['project_file' => $file]);
return $this->request('projects/'.$project, 'POST', ['project_file' => $file]);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Api/Users.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Users extends BaseApi implements Api
*/
public function show($username)
{
return $this->request('users/' . $username);
return $this->request('users/'.$username);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Authentication/RubyConfigFileToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class RubyConfigFileToken implements Token
public function __construct($file = null)
{
if (null === $file) {
$file = $_SERVER['HOME'] . DIRECTORY_SEPARATOR . '.veye.rc';
$file = $_SERVER['HOME'].DIRECTORY_SEPARATOR.'.veye.rc';
}

$this->file = $file;
Expand Down
Loading

0 comments on commit 771ff33

Please sign in to comment.