-
Notifications
You must be signed in to change notification settings - Fork 3
Advanced examples #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Advanced examples #29
Conversation
…r starting with php
…t a fork, isn't empty, and has a .travis.yml
examples/resolve_travis-key.php
Outdated
$keyFile = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'travis-key.php'; | ||
|
||
if (!file_exists($keyFile)) { | ||
echo 'No key file find, copy key.sample.php to key.php and add access token from https://blog.travis-ci.com/2013-01-28-token-token-token/ to run examples.', PHP_EOL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line exceeds 120 characters; contains 169 characters
]); | ||
|
||
// Fetch the user/org given as first argument to this script | ||
$baseStream = unwrapObservableFromPromise($githubClient->user($argv[1])->then(function (UserInterface $user) use ($argv) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line exceeds 120 characters; contains 122 characters
examples/resolve_appveyor-key.php
Outdated
$keyFile = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'appveyor-key.php'; | ||
|
||
if (!file_exists($keyFile)) { | ||
echo 'No key file found, copy key.sample.php to key.php and add API token from https://ci.appveyor.com/api-token to run examples.', PHP_EOL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line exceeds 120 characters; contains 144 characters
return new Promise(function ($resolve, $reject) use ($command) { | ||
$repo = false; | ||
$this->appveyor->projects()->filter(function (ProjectInterface $project) use ($command) { | ||
return $project->repositoryType() === 'github' && $project->repositoryName() === $command->getRepository(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line exceeds 120 characters; contains 123 characters
|
||
// Fetch the user/org given as first argument to this script | ||
$baseStream = unwrapObservableFromPromise( | ||
$githubClient->user($argv[1] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected 0 spaces before closing bracket; newline found
// Fetch the user/org given as first argument to this script | ||
$baseStream = unwrapObservableFromPromise( | ||
$githubClient->user($argv[1] | ||
)->then(function (UserInterface $user) use ($argv) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Multi-line function call not indented correctly; expected 4 spaces but found 0
|
||
// Get all repositories for the given user | ||
return $user->repositories(); | ||
}))->filter(function (Repository $repository) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closing parenthesis of a multi-line function call must be on a line by itself
… clients to require-dev and suggest because the user might not need them
$keyFile = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'scrutinizer-token.php'; | ||
|
||
if (!file_exists($keyFile)) { | ||
echo 'No key file find, copy token.sample.php to token.php and add a token from https://scrutinizer-ci.com/profile/applications to run examples.', PHP_EOL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line exceeds 120 characters; contains 159 characters
No description provided.