Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ if (file_exists(__DIR__.'/../.env')) {
}

$app = new Application();
$app->add(new FetchContributorsCommand());
$app->add(new FetchPullRequestsMergedCommand());
$app->add(new FetchRepositoriesCommand());
$app->add(new GenerateNewContributorsCommand());
$app->add(new GenerateTopCompaniesCommand());
$app->addCommand(new FetchContributorsCommand());
$app->addCommand(new FetchPullRequestsMergedCommand());
$app->addCommand(new FetchRepositoriesCommand());
$app->addCommand(new GenerateNewContributorsCommand());
$app->addCommand(new GenerateTopCompaniesCommand());
$app->run();
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
}
},
"require-dev": {
"phpstan/phpstan": "^2.1"
"phpstan/phpstan": "^2.1",
"phpstan/phpstan-symfony": "^2.0"
}
}
79 changes: 75 additions & 4 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ parameters:
-
identifier: missingType.iterableValue
path: src/Service/Github.php
count: 3
count: 3
includes:
- vendor/phpstan/phpstan-symfony/extension.neon
- vendor/phpstan/phpstan-symfony/rules.neon
2 changes: 1 addition & 1 deletion src/Command/FetchContributorsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ protected function configure(): void
null,
InputOption::VALUE_OPTIONAL,
'',
$_ENV['GH_TOKEN'] ?? null
isset($_ENV['GH_TOKEN']) ? (string) $_ENV['GH_TOKEN'] : null
)
->addOption('repository', 'r', InputOption::VALUE_OPTIONAL, 'GitHub repository')
->addOption('config', 'c', InputOption::VALUE_OPTIONAL, '', 'config.dist.yml')
Expand Down
2 changes: 1 addition & 1 deletion src/Command/FetchPullRequestsMergedCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ protected function configure(): void
null,
InputOption::VALUE_OPTIONAL,
'',
$_ENV['GH_TOKEN'] ?? null
isset($_ENV['GH_TOKEN']) ? (string) $_ENV['GH_TOKEN'] : null
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Command/FetchRepositoriesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ protected function configure(): void
null,
InputOption::VALUE_OPTIONAL,
'',
$_ENV['GH_TOKEN'] ?? null
isset($_ENV['GH_TOKEN']) ? (string) $_ENV['GH_TOKEN'] : null
)
->addOption('config', 'c', InputOption::VALUE_OPTIONAL, '', 'config.dist.yml')
;
Expand Down
2 changes: 1 addition & 1 deletion src/Command/GenerateTopCompaniesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected function configure(): void
null,
InputOption::VALUE_OPTIONAL,
'',
$_ENV['GH_TOKEN'] ?? null
isset($_ENV['GH_TOKEN']) ? (string) $_ENV['GH_TOKEN'] : null
)
->addOption('config', 'c', InputOption::VALUE_OPTIONAL, '', 'config.dist.yml');
}
Expand Down