chore(deps): Dependency update, codestyle fixes

This commit is contained in:
2023-05-10 02:34:54 +03:00
parent 557e906acf
commit 45927b0171
12 changed files with 323 additions and 242 deletions

View File

@@ -7,8 +7,8 @@
#
# 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
name: 'Dependency Review'
on: [pull_request]
name: "Dependency Review"
on: [ pull_request ]
permissions:
contents: read
@@ -17,7 +17,7 @@ jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
- name: "Checkout Repository"
uses: actions/checkout@v3
- name: 'Dependency Review'
- name: "Dependency Review"
uses: actions/dependency-review-action@v3

View File

@@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ '8.1' ]
php: [ "8.1" ]
steps:
- name: Checkout
uses: actions/checkout@v3
@@ -61,7 +61,7 @@ jobs:
runs-on: ubuntu-latest
name: Publish the PHAR
needs:
- 'build-phar'
- "build-phar"
if: github.event_name == 'release'
steps:
- uses: actions/download-artifact@v3

0
.yamlignore Normal file
View File

View File

@@ -3,7 +3,9 @@
</h1>
<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>
</p>
@@ -16,7 +18,7 @@
public GitHub Branches and Packagist branch
download statistics to determine are branches
safe to delete.
</p>
</p>
## License

View File

@@ -46,7 +46,7 @@ class CheckCommand extends Command
$versions = collect($pkg->versions ?? [])
->keys()
// Filter actual versions out.
->filter(fn($version) => \str_starts_with($version, 'dev-'))
->filter(fn ($version) => \str_starts_with($version, 'dev-'))
->sort();
$this->totalBranches = $versions->count();
@@ -59,7 +59,7 @@ class CheckCommand extends Command
);
$statistics = collect($versions)
->mapWithKeys(fn($branch) => $this->getStatistics($branch))
->mapWithKeys(fn ($branch) => $this->getStatistics($branch))
->toArray();
$this->info('Downloaded statistics...');

View File

@@ -34,9 +34,7 @@ class InspireCommand extends Command
<<<'HTML'
<div class="py-1 ml-2">
<div class="px-1 bg-blue-300 text-black">Laravel Zero</div>
<em class="ml-1">
Simplicity is the ultimate sophistication.
</em>
<em class="ml-1">Simplicity is the ultimate sophistication.</em>
</div>
HTML
);

View File

@@ -1,5 +1,9 @@
<?php
/**
* Application bootstrap
*/
/**
* Create The Application
*
@@ -8,7 +12,7 @@
* the IoC container for the system binding all of the various parts.
*/
$app = new LaravelZero\Framework\Application(
dirname( __DIR__ )
dirname(__DIR__)
);
/**

View File

@@ -1,19 +1,19 @@
{
"chmod": "0755",
"directories": [
"app",
"bootstrap",
"config",
"vendor"
],
"files": [
"composer.json"
],
"exclude-composer-files": false,
"exclude-dev-files": false,
"compression": "GZ",
"compactors": [
"KevinGH\\Box\\Compactor\\Php",
"KevinGH\\Box\\Compactor\\Json"
]
"chmod": "0755",
"directories": [
"app",
"bootstrap",
"config",
"vendor"
],
"files": [
"composer.json"
],
"exclude-composer-files": false,
"exclude-dev-files": false,
"compression": "GZ",
"compactors": [
"KevinGH\\Box\\Compactor\\Php",
"KevinGH\\Box\\Compactor\\Json"
]
}

489
composer.lock generated

File diff suppressed because it is too large Load Diff

8
phpcs.xml Normal file
View 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>

View File

@@ -13,7 +13,7 @@ trait CreatesApplication
*/
public function createApplication()
{
$app = require __DIR__.'/../bootstrap/app.php';
$app = require __DIR__ . '/../bootstrap/app.php';
$app->make(Kernel::class)->bootstrap();