Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Jul 27, 2023
1 parent 865dc4e commit 87894d7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/GraphApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ final class GraphApplication
* @throws \Safe\Exceptions\JsonException
*
* @throws \Safe\Exceptions\FilesystemException
*
* @api
*/
public function start(string $jsonGlob): int
{
Expand All @@ -24,6 +26,9 @@ public function start(string $jsonGlob): int
return 0;
}

/**
* @api
*/
public function help(): void
{
printf("USAGE: phpstan-baseline-graph '<glob-pattern>'");
Expand Down
5 changes: 5 additions & 0 deletions lib/TrendApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ public static function getAllowedOutputFormats(): array
* @throws \Safe\Exceptions\JsonException
*
* @throws \Safe\Exceptions\FilesystemException
*
* @api
*/
public function start(string $referenceFilePath, string $comparingFilePath, string $outputFormat): int
{
Expand All @@ -59,6 +61,9 @@ public function start(string $referenceFilePath, string $comparingFilePath, stri
return $this->createOutputText($reference, $comparing, $exitCode);
}

/**
* @api
*/
public function help(): void
{
printf('USAGE: phpstan-baseline-trend <reference-result.json> <comparing-result.json> [--format=json|text]');
Expand Down

0 comments on commit 87894d7

Please sign in to comment.