Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
benr77 committed Aug 26, 2022
1 parent 0107897 commit 2727c7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/GitlabApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ public function lint(): array
$yamlEncoder = new YamlEncoder();
$jsonEncoder = new JsonEncoder();

if (!file_exists($this->configFile))
{
if (! file_exists($this->configFile)) {
throw GitlabLinterException::fileNotFound($this->configFile);
}

Expand Down
2 changes: 1 addition & 1 deletion test/integration/GitlabLintTaskTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class GitlabLintTaskTest extends TestCase

private const INVALID_GITLAB_CI_YML = '../fixtures/invalid-gitlab-ci.yml';

const GITLAB_TEST_TOKEN = 'glpat-M8-Lb3zhAxa7RG6oVBox'; // Token from a test Gitlab account!
private const GITLAB_TEST_TOKEN = 'glpat-M8-Lb3zhAxa7RG6oVBox'; // Token from a test Gitlab account!

public function test_handles_missing_file(): void
{
Expand Down

0 comments on commit 2727c7f

Please sign in to comment.