mirror of
https://github.com/ivuorinen/branch-usage-checker.git
synced 2026-01-26 03:33:59 +00:00
chore(deps): Dependency update, codestyle fixes
This commit is contained in:
0
renovate.json → .github/renovate.json
vendored
0
renovate.json → .github/renovate.json
vendored
8
.github/workflows/dependency-review.yml
vendored
8
.github/workflows/dependency-review.yml
vendored
@@ -7,8 +7,8 @@
|
|||||||
#
|
#
|
||||||
# Source repository: https://github.com/actions/dependency-review-action
|
# Source repository: https://github.com/actions/dependency-review-action
|
||||||
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
|
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
|
||||||
name: 'Dependency Review'
|
name: "Dependency Review"
|
||||||
on: [pull_request]
|
on: [ pull_request ]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -17,7 +17,7 @@ jobs:
|
|||||||
dependency-review:
|
dependency-review:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: 'Checkout Repository'
|
- name: "Checkout Repository"
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: 'Dependency Review'
|
- name: "Dependency Review"
|
||||||
uses: actions/dependency-review-action@v3
|
uses: actions/dependency-review-action@v3
|
||||||
|
|||||||
4
.github/workflows/test-and-build.yml
vendored
4
.github/workflows/test-and-build.yml
vendored
@@ -14,7 +14,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
php: [ '8.1' ]
|
php: [ "8.1" ]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -61,7 +61,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Publish the PHAR
|
name: Publish the PHAR
|
||||||
needs:
|
needs:
|
||||||
- 'build-phar'
|
- "build-phar"
|
||||||
if: github.event_name == 'release'
|
if: github.event_name == 'release'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
|
|||||||
0
.yamlignore
Normal file
0
.yamlignore
Normal file
@@ -3,7 +3,9 @@
|
|||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<p style="text-align:center">
|
<p style="text-align:center">
|
||||||
<a href="https://packagist.org/packages/ivuorinen/branch-usage-checker"><img src="https://img.shields.io/packagist/v/ivuorinen/branch-usage-checker.svg?label=stable" alt="Latest Stable Version"></a>
|
<a href="https://packagist.org/packages/ivuorinen/branch-usage-checker">
|
||||||
|
<img src="https://img.shields.io/packagist/v/ivuorinen/branch-usage-checker.svg?label=stable" alt="Latest Stable Version">
|
||||||
|
</a>
|
||||||
<a href="https://packagist.org/packages/ivuorinen/branch-usage-checker"><img src="https://img.shields.io/packagist/l/ivuorinen/branch-usage-checker.svg" alt="License"></a>
|
<a href="https://packagist.org/packages/ivuorinen/branch-usage-checker"><img src="https://img.shields.io/packagist/l/ivuorinen/branch-usage-checker.svg" alt="License"></a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
@@ -16,7 +18,7 @@
|
|||||||
public GitHub Branches and Packagist branch
|
public GitHub Branches and Packagist branch
|
||||||
download statistics to determine are branches
|
download statistics to determine are branches
|
||||||
safe to delete.
|
safe to delete.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ class CheckCommand extends Command
|
|||||||
$versions = collect($pkg->versions ?? [])
|
$versions = collect($pkg->versions ?? [])
|
||||||
->keys()
|
->keys()
|
||||||
// Filter actual versions out.
|
// Filter actual versions out.
|
||||||
->filter(fn($version) => \str_starts_with($version, 'dev-'))
|
->filter(fn ($version) => \str_starts_with($version, 'dev-'))
|
||||||
->sort();
|
->sort();
|
||||||
|
|
||||||
$this->totalBranches = $versions->count();
|
$this->totalBranches = $versions->count();
|
||||||
@@ -59,7 +59,7 @@ class CheckCommand extends Command
|
|||||||
);
|
);
|
||||||
|
|
||||||
$statistics = collect($versions)
|
$statistics = collect($versions)
|
||||||
->mapWithKeys(fn($branch) => $this->getStatistics($branch))
|
->mapWithKeys(fn ($branch) => $this->getStatistics($branch))
|
||||||
->toArray();
|
->toArray();
|
||||||
|
|
||||||
$this->info('Downloaded statistics...');
|
$this->info('Downloaded statistics...');
|
||||||
|
|||||||
@@ -34,9 +34,7 @@ class InspireCommand extends Command
|
|||||||
<<<'HTML'
|
<<<'HTML'
|
||||||
<div class="py-1 ml-2">
|
<div class="py-1 ml-2">
|
||||||
<div class="px-1 bg-blue-300 text-black">Laravel Zero</div>
|
<div class="px-1 bg-blue-300 text-black">Laravel Zero</div>
|
||||||
<em class="ml-1">
|
<em class="ml-1">Simplicity is the ultimate sophistication.</em>
|
||||||
Simplicity is the ultimate sophistication.
|
|
||||||
</em>
|
|
||||||
</div>
|
</div>
|
||||||
HTML
|
HTML
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Application bootstrap
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create The Application
|
* Create The Application
|
||||||
*
|
*
|
||||||
@@ -8,7 +12,7 @@
|
|||||||
* the IoC container for the system binding all of the various parts.
|
* the IoC container for the system binding all of the various parts.
|
||||||
*/
|
*/
|
||||||
$app = new LaravelZero\Framework\Application(
|
$app = new LaravelZero\Framework\Application(
|
||||||
dirname( __DIR__ )
|
dirname(__DIR__)
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
34
box.json
34
box.json
@@ -1,19 +1,19 @@
|
|||||||
{
|
{
|
||||||
"chmod": "0755",
|
"chmod": "0755",
|
||||||
"directories": [
|
"directories": [
|
||||||
"app",
|
"app",
|
||||||
"bootstrap",
|
"bootstrap",
|
||||||
"config",
|
"config",
|
||||||
"vendor"
|
"vendor"
|
||||||
],
|
],
|
||||||
"files": [
|
"files": [
|
||||||
"composer.json"
|
"composer.json"
|
||||||
],
|
],
|
||||||
"exclude-composer-files": false,
|
"exclude-composer-files": false,
|
||||||
"exclude-dev-files": false,
|
"exclude-dev-files": false,
|
||||||
"compression": "GZ",
|
"compression": "GZ",
|
||||||
"compactors": [
|
"compactors": [
|
||||||
"KevinGH\\Box\\Compactor\\Php",
|
"KevinGH\\Box\\Compactor\\Php",
|
||||||
"KevinGH\\Box\\Compactor\\Json"
|
"KevinGH\\Box\\Compactor\\Json"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
489
composer.lock
generated
489
composer.lock
generated
File diff suppressed because it is too large
Load Diff
8
phpcs.xml
Normal file
8
phpcs.xml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<ruleset name="PHP_CodeSniffer">
|
||||||
|
<description>PHP_CodeSniffer configuration</description>
|
||||||
|
<rule ref="PSR12">
|
||||||
|
<exclude name="PSR12.Operators.OperatorSpacing"/>
|
||||||
|
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols"/>
|
||||||
|
</rule>
|
||||||
|
</ruleset>
|
||||||
@@ -13,7 +13,7 @@ trait CreatesApplication
|
|||||||
*/
|
*/
|
||||||
public function createApplication()
|
public function createApplication()
|
||||||
{
|
{
|
||||||
$app = require __DIR__.'/../bootstrap/app.php';
|
$app = require __DIR__ . '/../bootstrap/app.php';
|
||||||
|
|
||||||
$app->make(Kernel::class)->bootstrap();
|
$app->make(Kernel::class)->bootstrap();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user