Skip to content

Commit 68d2a45

Browse files
committed
Merge pull request #11 from mattsches/master
Upgrade dependencies for Symfony 3
2 parents e273382 + 771ff33 commit 68d2a45

21 files changed

+76
-76
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
"require": {
1313
"php": ">=5.4",
14-
"symfony/console": "~2.4",
14+
"symfony/console": "2.4 - 3",
1515
"phpdocumentor/reflection-docblock": "~2.0",
1616
"egeloen/http-adapter": "~0.8",
17-
"symfony/event-dispatcher": "~2.7",
17+
"symfony/event-dispatcher": "2.7 - 3",
1818
"mattketmo/camel": "~1.1",
19-
"rybakit/arguments-resolver": "1.0.x-dev@dev",
19+
"rybakit/arguments-resolver": "~0.5.0",
2020
"ramsey/array_column": "~1.1"
2121
},
2222
"require-dev": {

spec/Console/CommandFactorySpec.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function it_generates_a_runnable_command()
8484
$result['services:ping']->getName()->shouldBe('services:ping');
8585
$result['services:ping']->run(new ArrayInput([]), $output);
8686

87-
expect($output->fetch())->toBe(<<<EOS
87+
expect($output->fetch())->toBe(<<<'EOS'
8888
pong
8989

9090
EOS
@@ -136,7 +136,7 @@ public function getMatchers()
136136
'onlyContainCommandInstances' => function ($subject) {
137137
foreach ($subject as $command) {
138138
if (!$command instanceof Command) {
139-
throw new FailureException('"' . get_class($command) . '" is not a subtype of Symfony\Component\Console\Command\Command');
139+
throw new FailureException('"'.get_class($command).'" is not a subtype of Symfony\Component\Console\Command\Command');
140140
}
141141
}
142142

spec/Output/GithubSpec.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function it_prints_a_boolean_on_sync()
1818

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

21-
expect($output->fetch())->toBe(<<<EOS
21+
expect($output->fetch())->toBe(<<<'EOS'
2222
OK
2323

2424
EOS
@@ -31,7 +31,7 @@ public function it_prints_a_boolean_on_delete()
3131

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

34-
expect($output->fetch())->toBe(<<<EOS
34+
expect($output->fetch())->toBe(<<<'EOS'
3535
failure
3636

3737
EOS
@@ -44,7 +44,7 @@ public function it_prints_a_boolean_on_hook()
4444

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

47-
expect($output->fetch())->toBe(<<<EOS
47+
expect($output->fetch())->toBe(<<<'EOS'
4848
failure
4949

5050
EOS
@@ -56,7 +56,7 @@ public function it_prints_a_table_on_repos()
5656
$output = new BufferedOutput();
5757
$this->repos($output, ['repos' => [['fullname' => 'digitalkaoz/versioneye-php', 'language' => 'php', 'description' => 'wrapper around versioneye api', 'owner_login' => 'digitalkaoz', 'fork' => false, 'foo' => 'bazz']]]);
5858

59-
expect($output->fetch())->toBe(<<<EOS
59+
expect($output->fetch())->toBe(<<<'EOS'
6060
+----------------------------+----------+-------------------------------+-------------+------+
6161
| Name | Language | Description | Owner | Fork |
6262
+----------------------------+----------+-------------------------------+-------------+------+
@@ -81,7 +81,7 @@ public function it_prints_a_list_on_import()
8181
'git_url' => '[email protected]:digitalkaoz/versioneye-php.git',
8282
]]);
8383

84-
expect($output->fetch())->toBe(<<<EOS
84+
expect($output->fetch())->toBe(<<<'EOS'
8585
Name : digitalkaoz/versioneye-php
8686
Homepage : http://digitalkaoz.github.io/versioneye-php
8787
Language : php
@@ -109,7 +109,7 @@ public function it_prints_a_list_on_show()
109109
'git_url' => '[email protected]:digitalkaoz/versioneye-php.git',
110110
]]);
111111

112-
expect($output->fetch())->toBe(<<<EOS
112+
expect($output->fetch())->toBe(<<<'EOS'
113113
Name : digitalkaoz/versioneye-php
114114
Homepage : http://digitalkaoz.github.io/versioneye-php
115115
Language : php

spec/Output/MeSpec.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function it_prints_a_list_on_profile()
2323
'notifications' => ['new' => 10, 'total' => 100],
2424
]);
2525

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

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

58-
expect($output->fetch())->toBe(<<<EOS
58+
expect($output->fetch())->toBe(<<<'EOS'
5959
+----------------------------+----------+---------+----------+
6060
| Name | Language | Version | Type |
6161
+----------------------------+----------+---------+----------+
@@ -77,7 +77,7 @@ public function it_prints_a_table_on_comments()
7777
],
7878
]]);
7979

80-
expect($output->fetch())->toBe(<<<EOS
80+
expect($output->fetch())->toBe(<<<'EOS'
8181
+----------------------------+----------+---------+----------+------------+---------+
8282
| Name | Language | Version | Type | Date | Comment |
8383
+----------------------------+----------+---------+----------+------------+---------+

spec/Output/ProductsSpec.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function it_prints_a_table_on_search()
2424
],
2525
]]);
2626

27-
expect($output->fetch())->toBe(<<<EOS
27+
expect($output->fetch())->toBe(<<<'EOS'
2828
+----------------------------+----------+---------+----------+
2929
| Name | Language | Version | Type |
3030
+----------------------------+----------+---------+----------+
@@ -49,7 +49,7 @@ public function it_prints_a_table_on_versions()
4949
],
5050
]);
5151

52-
expect($output->fetch())->toBe(<<<EOS
52+
expect($output->fetch())->toBe(<<<'EOS'
5353
Name : digitalkaoz/versioneye-php
5454
Language : php
5555
Key : 2
@@ -78,7 +78,7 @@ public function it_prints_a_table_on_references()
7878
],
7979
]]);
8080

81-
expect($output->fetch())->toBe(<<<EOS
81+
expect($output->fetch())->toBe(<<<'EOS'
8282
+----------------------------+----------+---------+----------+
8383
| Name | Language | Version | Type |
8484
+----------------------------+----------+---------+----------+
@@ -108,7 +108,7 @@ public function it_prints_a_list_on_show()
108108
],
109109
]);
110110

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

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

138-
expect($output->fetch())->toBe(<<<EOS
138+
expect($output->fetch())->toBe(<<<'EOS'
139139
NO
140140

141141
EOS
@@ -148,7 +148,7 @@ public function it_prints_a_boolean_on_follow()
148148

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

151-
expect($output->fetch())->toBe(<<<EOS
151+
expect($output->fetch())->toBe(<<<'EOS'
152152
OK
153153

154154
EOS
@@ -161,7 +161,7 @@ public function it_prints_a_boolean_on_unfollow()
161161

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

164-
expect($output->fetch())->toBe(<<<EOS
164+
expect($output->fetch())->toBe(<<<'EOS'
165165
OK
166166

167167
EOS

spec/Output/ProjectsSpec.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function it_prints_a_table_on_all()
3030
],
3131
]);
3232

33-
expect($output->fetch())->toBe(<<<EOS
33+
expect($output->fetch())->toBe(<<<'EOS'
3434
+------------------------------+----------------------------+----------+--------+--------------+----------+------------+--------------+------------------+
3535
| Key | Name | Type | Public | Dependencies | Outdated | Updated At | Bad Licenses | Unknown Licenses |
3636
+------------------------------+----------------------------+----------+--------+--------------+----------+------------+--------------+------------------+
@@ -53,7 +53,7 @@ public function it_prints_a_table_on_licenses()
5353
]],
5454
]]);
5555

56-
expect($output->fetch())->toBe(<<<EOS
56+
expect($output->fetch())->toBe(<<<'EOS'
5757
+---------+----------------------------+
5858
| license | name |
5959
+---------+----------------------------+
@@ -86,7 +86,7 @@ public function it_prints_a_boolean_on_delete()
8686

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

89-
expect($output->fetch())->toBe(<<<EOS
89+
expect($output->fetch())->toBe(<<<'EOS'
9090
foo
9191

9292
EOS
@@ -99,7 +99,7 @@ public function it_prints_a_boolean_on_merge()
9999

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

102-
expect($output->fetch())->toBe(<<<EOS
102+
expect($output->fetch())->toBe(<<<'EOS'
103103
OK
104104

105105
EOS
@@ -112,7 +112,7 @@ public function it_prints_a_boolean_on_mergeGa()
112112

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

115-
expect($output->fetch())->toBe(<<<EOS
115+
expect($output->fetch())->toBe(<<<'EOS'
116116
OK
117117

118118
EOS
@@ -125,7 +125,7 @@ public function it_prints_a_boolean_on_unmerge()
125125

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

128-
expect($output->fetch())->toBe(<<<EOS
128+
expect($output->fetch())->toBe(<<<'EOS'
129129
FAIL
130130

131131
EOS
@@ -156,7 +156,7 @@ private function defaultOutput($method)
156156
]],
157157
]);
158158

159-
expect($output->fetch())->toBe(<<<EOS
159+
expect($output->fetch())->toBe(<<<'EOS'
160160
Name : digitalkaoz/versioneye-php
161161
Key : digitalkaoz_versioneye-php_1
162162
Type : composer

spec/Output/ServicesSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function it_prints_a_boolean_on_follow()
1818

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

21-
expect($output->fetch())->toBe(<<<EOS
21+
expect($output->fetch())->toBe(<<<'EOS'
2222
pong
2323

2424
EOS

spec/Output/SessionsSpec.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function it_prints_a_list_on_show()
2121
'email' => '[email protected]',
2222
]);
2323

24-
expect($output->fetch())->toBe(<<<EOS
24+
expect($output->fetch())->toBe(<<<'EOS'
2525
Fullname : Robert Schönthal
2626
API Token : 1337
2727

@@ -35,7 +35,7 @@ public function it_prints_a_boolean_on_open()
3535

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

38-
expect($output->fetch())->toBe(<<<EOS
38+
expect($output->fetch())->toBe(<<<'EOS'
3939
OK
4040

4141
EOS
@@ -48,7 +48,7 @@ public function it_prints_a_boolean_on_close()
4848

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

51-
expect($output->fetch())->toBe(<<<EOS
51+
expect($output->fetch())->toBe(<<<'EOS'
5252
OK
5353

5454
EOS

spec/Output/UsersSpec.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function it_prints_a_list_on_show()
2121
'email' => '[email protected]',
2222
]);
2323

24-
expect($output->fetch())->toBe(<<<EOS
24+
expect($output->fetch())->toBe(<<<'EOS'
2525
Fullname : Robert Schönthal
2626
Username : digitalkaoz
2727

@@ -34,7 +34,7 @@ public function it_prints_a_table_on_favorites()
3434
$output = new BufferedOutput();
3535
$this->favorites($output, ['favorites' => [['name' => 'digitalkaoz/versioneye-php', 'language' => 'php', 'version' => '1.0.0', 'prod_type' => 'composer']]]);
3636

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

53-
expect($output->fetch())->toBe(<<<EOS
53+
expect($output->fetch())->toBe(<<<'EOS'
5454
+----------------------------+----------+---------+----------+
5555
| Name | Language | Version | Type |
5656
+----------------------------+----------+---------+----------+
@@ -72,7 +72,7 @@ public function it_prints_a_table_on_comments()
7272
],
7373
]]);
7474

75-
expect($output->fetch())->toBe(<<<EOS
75+
expect($output->fetch())->toBe(<<<'EOS'
7676
+----------------------------+----------+---------+----------+------------+---------+
7777
| Name | Language | Version | Type | Date | Comment |
7878
+----------------------------+----------+---------+----------+------------+---------+

src/Api/BaseApi.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ abstract class BaseApi
2525
public function __construct(HttpClient $client, $token = null)
2626
{
2727
$this->client = $client;
28-
$this->token = $token;
28+
$this->token = $token;
2929
}
3030

3131
/**
@@ -78,7 +78,7 @@ protected function transform($name)
7878
private function sanitizeQuery($query)
7979
{
8080
$parts = parse_url($query);
81-
$path = $parts['path'];
81+
$path = $parts['path'];
8282

8383
if (!isset($parts['query'])) {
8484
return $query;
@@ -101,7 +101,7 @@ private function sanitizeQuery($query)
101101
}
102102
}
103103

104-
return $path . '?' . http_build_query($final);
104+
return $path.'?'.http_build_query($final);
105105
}
106106

107107
/**

0 commit comments

Comments
 (0)