Skip to content

Commit 43835c6

Browse files
committed
Scrutinizer token resolver
1 parent 185b76e commit 43835c6

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php declare(strict_types=1);
2+
3+
$keyFile = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'scrutinizer-token.php';
4+
5+
if (!file_exists($keyFile)) {
6+
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;
7+
exit(1);
8+
}
9+
10+
return require $keyFile;

scrutinizer-token.sample.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
3+
return ''; // <--- your access token from https://scrutinizer-ci.com/profile/applications

0 commit comments

Comments
 (0)