-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Update packages (#346)
- phpstan/phpdoc-parser updated from 1.29.0 to 1.29.1 patch See changes: phpstan/phpdoc-parser@1.29.0...1.29.1 Release notes: https://github.com/phpstan/phpdoc-parser/releases/tag/1.29.1 - phpstan/phpstan updated from 1.11.2 to 1.11.3 patch See changes: phpstan/phpstan@1.11.2...1.11.3 Release notes: https://github.com/phpstan/phpstan/releases/tag/1.11.3 - roave/security-advisories updated from dev-latest@0ec6bad to dev-latest@255803f See changes: Roave/SecurityAdvisories@0ec6bad...255803f - spaze/phpcs-phar updated from 3.10.1 to 3.10.1.1 patch See changes: spaze/phpcs-phar@3.10.1...3.10.1.1 Release notes: https://github.com/spaze/phpcs-phar/releases/tag/3.10.1.1 - symfony/cache updated from v7.0.7 to v7.1.0 minor See changes: symfony/cache@v7.0.7...v7.1.0 Release notes: https://github.com/symfony/cache/releases/tag/v7.1.0 - symfony/config updated from v7.0.7 to v7.1.0 minor See changes: symfony/config@v7.0.7...v7.1.0 Release notes: https://github.com/symfony/config/releases/tag/v7.1.0 - symfony/filesystem updated from v7.0.7 to v7.1.0 minor See changes: symfony/filesystem@v7.0.7...v7.1.0 Release notes: https://github.com/symfony/filesystem/releases/tag/v7.1.0 - symfony/translation updated from v7.0.7 to v7.1.0 minor See changes: symfony/translation@v7.0.7...v7.1.0 Release notes: https://github.com/symfony/translation/releases/tag/v7.1.0 - symfony/var-exporter updated from v7.0.7 to v7.1.0 minor See changes: symfony/var-exporter@v7.0.7...v7.1.0 Release notes: https://github.com/symfony/var-exporter/releases/tag/v7.1.0 - texy/texy updated from v3.2.1 to v3.2.2 patch See changes: dg/texy@v3.2.1...v3.2.2 Release notes: https://github.com/dg/texy/releases/tag/v3.2.2
- Loading branch information
Showing
89 changed files
with
709 additions
and
479 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
-----BEGIN PGP SIGNATURE----- | ||
|
||
iQIzBAABCgAdFiEEynwsejDI6OEnSoR2UcZzBf/C5cAFAmZQlJ4ACgkQUcZzBf/C | ||
5cDlwBAAj3ya2zqDT/zNrlDojBaTP0dOnCe4/caxUXlGiwjadGLYDiJBSTx01XQx | ||
VayI1rDWh9XZ90Lo9CxP2hG6y3yQ/fBD9Z5QP/Zt/YLG03m91pUVn65do6U0D/ff | ||
SXD8G50j3i763Kysb5MxlJXQ3RZrFh+6teGcNkzkU2rI39XVBdeGN/QJ56kJXsqj | ||
gb4a9FKMF6kkVJ1kWohI4g0iTvJ/Jgu1io5hoA6z39Ly2LH9Rx/HRpqQm6iTZz66 | ||
ycBmPZC3K+XmeoIuM6vMeTSJ3qHUzu2MNa8vWQpsXCqnMakwef5Frf+TN6iZcPlr | ||
MTQQdKIjpwSjgzV0KNa/2T8rd/yMBl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uzyPCgneU | ||
Ce4Fe1BDumB5Lx4c4chqOnD4FH/xp57RPNzKUXrM4pcc3axLjM865I1/MW4+pjnV | ||
/RxGSy5hd+kCPPc5bV84YDY38/ZLGBkgCa7EY5h0RK7sEkNngeg= | ||
=tbKK | ||
-----END PGP SIGNATURE----- |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
declare(strict_types = 1); | ||
|
||
namespace Spaze\PHPCSPhar; | ||
|
||
use Phar; | ||
|
||
class Autoloader | ||
{ | ||
|
||
public static function load(): void | ||
{ | ||
$autoloadFiles = [ | ||
__DIR__ . '/../vendor/autoload.php', | ||
__DIR__ . '/../../../autoload.php', | ||
]; | ||
|
||
$autoloadLoaded = false; | ||
foreach ($autoloadFiles as $autoloadFile) { | ||
if (is_file($autoloadFile)) { | ||
require_once $autoloadFile; | ||
$autoloadLoaded = true; | ||
break; | ||
} | ||
} | ||
|
||
if (!$autoloadLoaded) { | ||
fwrite(STDERR, "Install packages using Composer.\n"); | ||
exit(254); | ||
} | ||
|
||
Phar::loadPhar(__DIR__ . '/../phpcs.phar', 'phpcs.phar'); | ||
require_once 'phar://phpcs.phar/autoload.php'; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
declare(strict_types = 1); | ||
|
||
namespace Spaze\PHPCSPhar; | ||
|
||
use Composer\InstalledVersions; | ||
use PHP_CodeSniffer\Config; | ||
|
||
class StandardsInstaller | ||
{ | ||
|
||
public static function install(): void | ||
{ | ||
if (!Config::getConfigData('installed_paths')) { | ||
$packages = InstalledVersions::getInstalledPackagesByType('phpcodesniffer-standard'); | ||
$packages = array_unique($packages); | ||
sort($packages); | ||
$paths = []; | ||
foreach ($packages as $package) { | ||
$paths[] = InstalledVersions::getInstallPath($package); | ||
} | ||
Config::setConfigData('installed_paths', implode(',', $paths), true); | ||
} | ||
} | ||
|
||
} |
Oops, something went wrong.