Browse Source

Passe de phpcs & phpcbf avec --standard=SPIP40

master
bricebou 10 months ago
parent
commit
314d226d9f
  1. 5
      .gitignore
  2. 9
      composer.json
  3. 256
      composer.lock
  4. 138
      formulaires/configurer_optimages.php
  5. 43
      optimages_pipelines.php
  6. 2
      vendor/composer/autoload_psr4.php
  7. 13
      vendor/composer/autoload_static.php
  8. 270
      vendor/composer/installed.json
  9. 40
      vendor/composer/installed.php

5
.gitignore vendored

@ -0,0 +1,5 @@
vendor/bin
vendor/dealerdirect
vendor/phpcompatibility
vendor/spip
vendor/squizlabs

9
composer.json

@ -1,5 +1,14 @@
{
"require": {
"spatie/image-optimizer": "^1.6"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
"spip/coding-standards": "^1.2"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}

256
composer.lock generated

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "8a03f7b6d12b9387b036c8bc352c4389",
"content-hash": "36ac4106ab74ea813b3bc419c7ea683e",
"packages": [
{
"name": "psr/log",
@ -256,7 +256,259 @@
"time": "2022-01-30T18:16:22+00:00"
}
],
"packages-dev": [],
"packages-dev": [
{
"name": "dealerdirect/phpcodesniffer-composer-installer",
"version": "v0.7.2",
"source": {
"type": "git",
"url": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer.git",
"reference": "1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Dealerdirect/phpcodesniffer-composer-installer/zipball/1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db",
"reference": "1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db",
"shasum": ""
},
"require": {
"composer-plugin-api": "^1.0 || ^2.0",
"php": ">=5.3",
"squizlabs/php_codesniffer": "^2.0 || ^3.1.0 || ^4.0"
},
"require-dev": {
"composer/composer": "*",
"php-parallel-lint/php-parallel-lint": "^1.3.1",
"phpcompatibility/php-compatibility": "^9.0"
},
"type": "composer-plugin",
"extra": {
"class": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin"
},
"autoload": {
"psr-4": {
"Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Franck Nijhof",
"email": "franck.nijhof@dealerdirect.com",
"homepage": "http://www.frenck.nl",
"role": "Developer / IT Manager"
},
{
"name": "Contributors",
"homepage": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer/graphs/contributors"
}
],
"description": "PHP_CodeSniffer Standards Composer Installer Plugin",
"homepage": "http://www.dealerdirect.com",
"keywords": [
"PHPCodeSniffer",
"PHP_CodeSniffer",
"code quality",
"codesniffer",
"composer",
"installer",
"phpcbf",
"phpcs",
"plugin",
"qa",
"quality",
"standard",
"standards",
"style guide",
"stylecheck",
"tests"
],
"support": {
"issues": "https://github.com/dealerdirect/phpcodesniffer-composer-installer/issues",
"source": "https://github.com/dealerdirect/phpcodesniffer-composer-installer"
},
"time": "2022-02-04T12:51:07+00:00"
},
{
"name": "phpcompatibility/php-compatibility",
"version": "9.3.5",
"source": {
"type": "git",
"url": "https://github.com/PHPCompatibility/PHPCompatibility.git",
"reference": "9fb324479acf6f39452e0655d2429cc0d3914243"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/9fb324479acf6f39452e0655d2429cc0d3914243",
"reference": "9fb324479acf6f39452e0655d2429cc0d3914243",
"shasum": ""
},
"require": {
"php": ">=5.3",
"squizlabs/php_codesniffer": "^2.3 || ^3.0.2"
},
"conflict": {
"squizlabs/php_codesniffer": "2.6.2"
},
"require-dev": {
"phpunit/phpunit": "~4.5 || ^5.0 || ^6.0 || ^7.0"
},
"suggest": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically.",
"roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues."
},
"type": "phpcodesniffer-standard",
"notification-url": "https://packagist.org/downloads/",
"license": [
"LGPL-3.0-or-later"
],
"authors": [
{
"name": "Wim Godden",
"homepage": "https://github.com/wimg",
"role": "lead"
},
{
"name": "Juliette Reinders Folmer",
"homepage": "https://github.com/jrfnl",
"role": "lead"
},
{
"name": "Contributors",
"homepage": "https://github.com/PHPCompatibility/PHPCompatibility/graphs/contributors"
}
],
"description": "A set of sniffs for PHP_CodeSniffer that checks for PHP cross-version compatibility.",
"homepage": "http://techblog.wimgodden.be/tag/codesniffer/",
"keywords": [
"compatibility",
"phpcs",
"standards"
],
"support": {
"issues": "https://github.com/PHPCompatibility/PHPCompatibility/issues",
"source": "https://github.com/PHPCompatibility/PHPCompatibility"
},
"time": "2019-12-27T09:44:58+00:00"
},
{
"name": "spip/coding-standards",
"version": "1.2.1",
"source": {
"type": "git",
"url": "https://github.com/JamesRezo/spip-coding-standards.git",
"reference": "a1bf55f9dbe56019c53e39c584542df789463552"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/JamesRezo/spip-coding-standards/zipball/a1bf55f9dbe56019c53e39c584542df789463552",
"reference": "a1bf55f9dbe56019c53e39c584542df789463552",
"shasum": ""
},
"require": {
"ext-mbstring": "*",
"php": ">=7.0",
"phpcompatibility/php-compatibility": "^9.3",
"squizlabs/php_codesniffer": "^3.6"
},
"require-dev": {
"phpunit/phpunit": "^9.5"
},
"suggest": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically."
},
"type": "phpcodesniffer-standard",
"extra": {
"branch-alias": {
"dev-main": "1.2.x-dev"
}
},
"autoload": {
"psr-4": {
"Spip\\CodingStandards\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "JamesRezo",
"email": "james@rezo.net"
}
],
"description": "SPIP Coding Standards",
"keywords": [
"phpcs",
"spip"
],
"support": {
"issues": "https://github.com/JamesRezo/spip-coding-standards/issues",
"source": "https://github.com/JamesRezo/spip-coding-standards/tree/1.2.1"
},
"time": "2021-08-26T06:16:00+00:00"
},
{
"name": "squizlabs/php_codesniffer",
"version": "3.6.2",
"source": {
"type": "git",
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
"reference": "5e4e71592f69da17871dba6e80dd51bce74a351a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/5e4e71592f69da17871dba6e80dd51bce74a351a",
"reference": "5e4e71592f69da17871dba6e80dd51bce74a351a",
"shasum": ""
},
"require": {
"ext-simplexml": "*",
"ext-tokenizer": "*",
"ext-xmlwriter": "*",
"php": ">=5.4.0"
},
"require-dev": {
"phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
},
"bin": [
"bin/phpcs",
"bin/phpcbf"
],
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.x-dev"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Greg Sherwood",
"role": "lead"
}
],
"description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
"homepage": "https://github.com/squizlabs/PHP_CodeSniffer",
"keywords": [
"phpcs",
"standards"
],
"support": {
"issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues",
"source": "https://github.com/squizlabs/PHP_CodeSniffer",
"wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki"
},
"time": "2021-12-12T21:44:58+00:00"
}
],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": [],

138
formulaires/configurer_optimages.php

@ -9,128 +9,128 @@ function optimages_command_exists($command_name) {
return (null === shell_exec("$test_method $command_name")) ? false : true;
}
function formulaires_configurer_optimages_saisies_dist(){
$saisies = array(
array(
function formulaires_configurer_optimages_saisies_dist() {
$saisies = [
[
'saisie' => 'case',
'options' => array(
'options' => [
'nom' => 'sauvegarde',
'label_case' => '<:optimages:configurer_sauvegarde_label_case:>',
'conteneur_class' => 'pleine_largeur'
)
),
array(
]
],
[
'saisie' => 'fieldset',
'options' => array(
'options' => [
'nom' => 'optimizers',
'label' => '<:optimages:configurer_optimizers_label:>',
),
'saisies' => array(
],
'saisies' => [
// JPEG
array(
[
'saisie' => 'fieldset',
'options' => array(
'options' => [
'nom' => 'jpegoptim',
'label' => '<:optimages:configurer_jpegoptim_label:>',
),
'saisies' => array(
array(
],
'saisies' => [
[
'saisie' => 'case',
'options' => array(
'options' => [
'nom' => 'jpegoptim_activer',
'label_case' => '<:optimages:configurer_jpegoptim_activer_label_case:>'
)
),
array(
]
],
[
'saisie' => 'input',
'options' => array(
'options' => [
'nom' => 'jpegoptim_options',
'label' => '<:optimages:configurer_jpegoptim_options_label:>',
'explication' => '<:optimages:configurer_jpegoptim_options_explication:>',
'afficher_si' => '@jpegoptim_activer@=="on"',
'defaut' => '\'-m85\', \'--strip-all\', \'--all-progressive\'',
)
),
)
),
'defaut' => '\'-m85\', \'--strip-all\', \'--all-progressive\'',
]
],
]
],
// PNG
array(
[
'saisie' => 'fieldset',
'options' => array(
'options' => [
'nom' => 'png',
'label' => '<:optimages:configurer_png_label:>',
'attention' => '<:optimages:configurer_png_attention:>',
'explication' => '<:optimages:configurer_png_explication:>',
),
'saisies' => array(
array(
],
'saisies' => [
[
'saisie' => 'case',
'options' => array(
'options' => [
'nom' => 'pngquant_activer',
'label_case' => '<:optimages:configurer_pngquant_activer_label_case:>'
)
),
array(
]
],
[
'saisie' => 'input',
'options' => array(
'options' => [
'nom' => 'pngquant_options',
'label' => '<:optimages:configurer_pngquant_options_label:>',
'explication' => '<:optimages:configurer_pngquant_options_explication:>',
'afficher_si' => '@pngquant_activer@=="on"',
'defaut' => '\'--force\'',
)
),
array(
'defaut' => '\'--force\'',
]
],
[
'saisie' => 'case',
'options' => array(
'options' => [
'nom' => 'optipng_activer',
'label_case' => '<:optimages:configurer_optipng_activer_label_case:>'
)
),
array(
]
],
[
'saisie' => 'input',
'options' => array(
'options' => [
'nom' => 'optipng_options',
'label' => '<:optimages:configurer_optipng_options_label:>',
'explication' => '<:optimages:configurer_optipng_options_explication:>',
'afficher_si' => '@optipng_activer@=="on"',
'defaut' => '\'-i0\', \'-o2\'',
)
),
)
),
'defaut' => '\'-i0\', \'-o2\'',
]
],
]
],
// GIF
array(
[
'saisie' => 'fieldset',
'options' => array(
'options' => [
'nom' => 'gifsicle',
'label' => '<:optimages:configurer_gifsicle_label:>',
'attention' => '<:optimages:configurer_gifsicle_attention:>',
),
'saisies' => array(
array(
],
'saisies' => [
[
'saisie' => 'case',
'options' => array(
'options' => [
'nom' => 'gifsicle_activer',
'label_case' => '<:optimages:configurer_gifsicle_activer_label_case:>'
)
),
array(
]
],
[
'saisie' => 'input',
'options' => array(
'options' => [
'nom' => 'gifsicle_options',
'label' => '<:optimages:configurer_gifsicle_options_label:>',
'explication' => '<:optimages:configurer_gifsicle_options_explication:>',
'afficher_si' => '@gifsicle_activer@=="on"',
'defaut' => '\'-O3\'',
)
),
)
),
)
)
);
'defaut' => '\'-O3\'',
]
],
]
],
]
]
];
// Affichage conditionné à la présence de jpegoptim
if (optimages_command_exists('jpegoptim')) {
@ -168,5 +168,5 @@ function formulaires_configurer_optimages_saisies_dist(){
$saisies[1]['saisies'][2]['saisies'][0]['options']['disable'] = 'true';
}
return $saisies;
}
return $saisies;
}

43
optimages_pipelines.php

@ -4,23 +4,24 @@ if (!defined('_ECRIRE_INC_VERSION')) {
return;
}
include_once _DIR_PLUGIN_OPTIMAGES.'vendor/autoload.php';
include_once _DIR_PLUGIN_OPTIMAGES . 'vendor/autoload.php';
use Spatie\ImageOptimizer\OptimizerChain;
use Spatie\ImageOptimizer\Optimizers\Jpegoptim;
use Spatie\ImageOptimizer\Optimizers\Pngquant;
use Spatie\ImageOptimizer\Optimizers\Optipng;
use Spatie\ImageOptimizer\Optimizers\Jpegoptim;
use Spatie\ImageOptimizer\Optimizers\Pngquant;
use Spatie\ImageOptimizer\Optimizers\Optipng;
use Spatie\ImageOptimizer\Optimizers\Gifsicle;
/**
*
*
* @param $flux
* @return mixed
*/
function optimages_post_edition($flux) {
if (is_array($flux) && isset($flux['args']['operation']) && ($flux['args']['operation'] == 'ajouter_document')
if (
is_array($flux) && isset($flux['args']['operation']) && ($flux['args']['operation'] == 'ajouter_document')
and ($document = sql_fetsel('*', 'spip_documents', 'id_document=' . intval($flux['args']['id_objet'])))
) {
if (in_array($document['extension'], array('jpg', 'png', 'gif'))) {
if (in_array($document['extension'], ['jpg', 'png', 'gif'])) {
include_spip('inc/documents');
$fichier = get_spip_doc($document['fichier']);
$id_document = $document['id_document'];
@ -32,59 +33,59 @@ function optimages_post_edition($flux) {
copy($fichier, $clone);
}
$optimizerChain = (new OptimizerChain);
$optimizer_chain = (new OptimizerChain());
$jpegoptim = lire_config('optimages/jpegoptim_activer') ?? '';
$jpegoptim_opt= lire_config('optimages/jpegoptim_options') ?? '';
$jpegoptim_opt = lire_config('optimages/jpegoptim_options') ?? '';
if ($jpegoptim === 'on') {
$optimizerChain->addOptimizer(new Jpegoptim([
$optimizer_chain->addOptimizer(new Jpegoptim([
$jpegoptim_opt
]));
}
$pngquant = lire_config('optimages/pngquant_activer') ?? '';
$pngquant_opt= lire_config('optimages/pngquant_options') ?? '';
$pngquant_opt = lire_config('optimages/pngquant_options') ?? '';
if ($pngquant === 'on') {
$optimizerChain->addOptimizer(new Pngquant([
$optimizer_chain->addOptimizer(new Pngquant([
$pngquant_opt
]));
}
$optipng = lire_config('optimages/optipng_activer') ?? '';
$optipng_opt= lire_config('optimages/optipng_options') ?? '';
$optipng_opt = lire_config('optimages/optipng_options') ?? '';
if ($optipng === 'on') {
$optimizerChain->addOptimizer(new Optipng([
$optimizer_chain->addOptimizer(new Optipng([
$optipng_opt
]));
}
$gifsicle = lire_config('optimages/gifsicle_activer') ?? '';
$gifsicle_opt= lire_config('optimages/gifsicle_options') ?? '';
$gifsicle_opt = lire_config('optimages/gifsicle_options') ?? '';
if ($gifsicle === 'on') {
$optimizerChain->addOptimizer(new Gifsicle([
$optimizer_chain->addOptimizer(new Gifsicle([
$gifsicle_opt
]));
}
$optimizerChain->optimize($fichier);
$optimizer_chain->optimize($fichier);
$poids = filesize($fichier);
sql_updateq('spip_documents', array('taille' => $poids), 'id_document=' . intval($id_document));
sql_updateq('spip_documents', ['taille' => $poids], 'id_document=' . intval($id_document));
}
}
if (is_array($flux) && isset($flux['args']['operation']) && ($flux['args']['operation'] == 'supprimer_document')) {
$document = $flux['args']['document'];
if (in_array($document['extension'], array('jpg', 'png', 'gif'))) {
if (in_array($document['extension'], ['jpg', 'png', 'gif'])) {
$fichier = $flux['args']['document']['fichier'];
$clone = $fichier . '.back';
if (file_exists(_DIR_IMG . $clone)) {
unlink(_DIR_IMG . $clone);
}
}
}
}
return $flux;
}
}

2
vendor/composer/autoload_psr4.php vendored

@ -8,6 +8,8 @@ $baseDir = dirname($vendorDir);
return array(
'Symfony\\Polyfill\\Php80\\' => array($vendorDir . '/symfony/polyfill-php80'),
'Symfony\\Component\\Process\\' => array($vendorDir . '/symfony/process'),
'Spip\\CodingStandards\\' => array($vendorDir . '/spip/coding-standards/src'),
'Spatie\\ImageOptimizer\\' => array($vendorDir . '/spatie/image-optimizer/src'),
'Psr\\Log\\' => array($vendorDir . '/psr/log/Psr/Log'),
'Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' => array($vendorDir . '/dealerdirect/phpcodesniffer-composer-installer/src'),
);

13
vendor/composer/autoload_static.php vendored

@ -15,12 +15,17 @@ class ComposerStaticInitbde56dc108744ed67c3619f6292bf580
array (
'Symfony\\Polyfill\\Php80\\' => 23,
'Symfony\\Component\\Process\\' => 26,
'Spip\\CodingStandards\\' => 21,
'Spatie\\ImageOptimizer\\' => 22,
),
'P' =>
array (
'Psr\\Log\\' => 8,
),
'D' =>
array (
'Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' => 55,
),
);
public static $prefixDirsPsr4 = array (
@ -32,6 +37,10 @@ class ComposerStaticInitbde56dc108744ed67c3619f6292bf580
array (
0 => __DIR__ . '/..' . '/symfony/process',
),
'Spip\\CodingStandards\\' =>
array (
0 => __DIR__ . '/..' . '/spip/coding-standards/src',
),
'Spatie\\ImageOptimizer\\' =>
array (
0 => __DIR__ . '/..' . '/spatie/image-optimizer/src',
@ -40,6 +49,10 @@ class ComposerStaticInitbde56dc108744ed67c3619f6292bf580
array (
0 => __DIR__ . '/..' . '/psr/log/Psr/Log',
),
'Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\' =>
array (
0 => __DIR__ . '/..' . '/dealerdirect/phpcodesniffer-composer-installer/src',
),
);
public static $classMap = array (

270
vendor/composer/installed.json vendored

@ -1,5 +1,148 @@
{
"packages": [
{
"name": "dealerdirect/phpcodesniffer-composer-installer",
"version": "v0.7.2",
"version_normalized": "0.7.2.0",
"source": {
"type": "git",
"url": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer.git",
"reference": "1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Dealerdirect/phpcodesniffer-composer-installer/zipball/1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db",
"reference": "1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db",
"shasum": ""
},
"require": {
"composer-plugin-api": "^1.0 || ^2.0",
"php": ">=5.3",
"squizlabs/php_codesniffer": "^2.0 || ^3.1.0 || ^4.0"
},
"require-dev": {
"composer/composer": "*",
"php-parallel-lint/php-parallel-lint": "^1.3.1",
"phpcompatibility/php-compatibility": "^9.0"
},
"time": "2022-02-04T12:51:07+00:00",
"type": "composer-plugin",
"extra": {
"class": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin"
},
"installation-source": "dist",
"autoload": {
"psr-4": {
"Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Franck Nijhof",
"email": "franck.nijhof@dealerdirect.com",
"homepage": "http://www.frenck.nl",
"role": "Developer / IT Manager"
},
{
"name": "Contributors",
"homepage": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer/graphs/contributors"
}
],
"description": "PHP_CodeSniffer Standards Composer Installer Plugin",
"homepage": "http://www.dealerdirect.com",
"keywords": [
"PHPCodeSniffer",
"PHP_CodeSniffer",
"code quality",
"codesniffer",
"composer",
"installer",
"phpcbf",
"phpcs",
"plugin",
"qa",
"quality",
"standard",
"standards",
"style guide",
"stylecheck",
"tests"
],
"support": {
"issues": "https://github.com/dealerdirect/phpcodesniffer-composer-installer/issues",
"source": "https://github.com/dealerdirect/phpcodesniffer-composer-installer"
},
"install-path": "../dealerdirect/phpcodesniffer-composer-installer"
},
{
"name": "phpcompatibility/php-compatibility",
"version": "9.3.5",
"version_normalized": "9.3.5.0",
"source": {
"type": "git",
"url": "https://github.com/PHPCompatibility/PHPCompatibility.git",
"reference": "9fb324479acf6f39452e0655d2429cc0d3914243"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/9fb324479acf6f39452e0655d2429cc0d3914243",
"reference": "9fb324479acf6f39452e0655d2429cc0d3914243",
"shasum": ""
},
"require": {
"php": ">=5.3",
"squizlabs/php_codesniffer": "^2.3 || ^3.0.2"
},
"conflict": {
"squizlabs/php_codesniffer": "2.6.2"
},
"require-dev": {
"phpunit/phpunit": "~4.5 || ^5.0 || ^6.0 || ^7.0"
},
"suggest": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically.",
"roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues."
},
"time": "2019-12-27T09:44:58+00:00",
"type": "phpcodesniffer-standard",
"installation-source": "dist",
"notification-url": "https://packagist.org/downloads/",
"license": [
"LGPL-3.0-or-later"
],
"authors": [
{
"name": "Wim Godden",
"homepage": "https://github.com/wimg",
"role": "lead"
},
{
"name": "Juliette Reinders Folmer",
"homepage": "https://github.com/jrfnl",
"role": "lead"
},
{
"name": "Contributors",
"homepage": "https://github.com/PHPCompatibility/PHPCompatibility/graphs/contributors"
}
],
"description": "A set of sniffs for PHP_CodeSniffer that checks for PHP cross-version compatibility.",
"homepage": "http://techblog.wimgodden.be/tag/codesniffer/",
"keywords": [
"compatibility",
"phpcs",
"standards"
],
"support": {
"issues": "https://github.com/PHPCompatibility/PHPCompatibility/issues",
"source": "https://github.com/PHPCompatibility/PHPCompatibility"
},
"install-path": "../phpcompatibility/php-compatibility"
},
{
"name": "psr/log",
"version": "1.1.4",
@ -110,6 +253,126 @@
},
"install-path": "../spatie/image-optimizer"
},
{
"name": "spip/coding-standards",
"version": "1.2.1",
"version_normalized": "1.2.1.0",
"source": {
"type": "git",
"url": "https://github.com/JamesRezo/spip-coding-standards.git",
"reference": "a1bf55f9dbe56019c53e39c584542df789463552"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/JamesRezo/spip-coding-standards/zipball/a1bf55f9dbe56019c53e39c584542df789463552",
"reference": "a1bf55f9dbe56019c53e39c584542df789463552",
"shasum": ""
},
"require": {
"ext-mbstring": "*",
"php": ">=7.0",
"phpcompatibility/php-compatibility": "^9.3",
"squizlabs/php_codesniffer": "^3.6"
},
"require-dev": {
"phpunit/phpunit": "^9.5"
},
"suggest": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically."
},
"time": "2021-08-26T06:16:00+00:00",
"type": "phpcodesniffer-standard",
"extra": {
"branch-alias": {
"dev-main": "1.2.x-dev"
}
},
"installation-source": "dist",
"autoload": {
"psr-4": {
"Spip\\CodingStandards\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "JamesRezo",
"email": "james@rezo.net"
}
],
"description": "SPIP Coding Standards",
"keywords": [
"phpcs",
"spip"
],
"support": {
"issues": "https://github.com/JamesRezo/spip-coding-standards/issues",
"source": "https://github.com/JamesRezo/spip-coding-standards/tree/1.2.1"
},
"install-path": "../spip/coding-standards"
},
{
"name": "squizlabs/php_codesniffer",
"version": "3.6.2",
"version_normalized": "3.6.2.0",
"source": {
"type": "git",
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
"reference": "5e4e71592f69da17871dba6e80dd51bce74a351a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/5e4e71592f69da17871dba6e80dd51bce74a351a",
"reference": "5e4e71592f69da17871dba6e80dd51bce74a351a",
"shasum": ""
},
"require": {
"ext-simplexml": "*",
"ext-tokenizer": "*",
"ext-xmlwriter": "*",
"php": ">=5.4.0"
},
"require-dev": {
"phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
},
"time": "2021-12-12T21:44:58+00:00",
"bin": [
"bin/phpcs",
"bin/phpcbf"
],
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.x-dev"
}
},
"installation-source": "dist",
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Greg Sherwood",
"role": "lead"
}
],
"description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
"homepage": "https://github.com/squizlabs/PHP_CodeSniffer",
"keywords": [
"phpcs",
"standards"
],
"support": {
"issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues",
"source": "https://github.com/squizlabs/PHP_CodeSniffer",
"wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki"
},
"install-path": "../squizlabs/php_codesniffer"
},
{
"name": "symfony/polyfill-php80",
"version": "v1.25.0",
@ -263,5 +526,10 @@
}
],
"dev": true,
"dev-package-names": []
"dev-package-names": [
"dealerdirect/phpcodesniffer-composer-installer",
"phpcompatibility/php-compatibility",
"spip/coding-standards",
"squizlabs/php_codesniffer"
]
}

40
vendor/composer/installed.php vendored

@ -5,7 +5,7 @@
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
'reference' => '243df5248c82470c344f805636d70375f404c9e7',
'reference' => '17a1f0a0158e189043cc20c61b20b9c7927b61aa',
'name' => '__root__',
'dev' => true,
),
@ -16,9 +16,27 @@
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
'reference' => '243df5248c82470c344f805636d70375f404c9e7',
'reference' => '17a1f0a0158e189043cc20c61b20b9c7927b61aa',
'dev_requirement' => false,
),
'dealerdirect/phpcodesniffer-composer-installer' => array(
'pretty_version' => 'v0.7.2',
'version' => '0.7.2.0',
'type' => 'composer-plugin',
'install_path' => __DIR__ . '/../dealerdirect/phpcodesniffer-composer-installer',
'aliases' => array(),
'reference' => '1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db',
'dev_requirement' => true,
),
'phpcompatibility/php-compatibility' => array(
'pretty_version' => '9.3.5',
'version' => '9.3.5.0',
'type' => 'phpcodesniffer-standard',
'install_path' => __DIR__ . '/../phpcompatibility/php-compatibility',
'aliases' => array(),
'reference' => '9fb324479acf6f39452e0655d2429cc0d3914243',
'dev_requirement' => true,
),
'psr/log' => array(
'pretty_version' => '1.1.4',
'version' => '1.1.4.0',
@ -37,6 +55,24 @@
'reference' => '6db75529cbf8fa84117046a9d513f277aead90a0',
'dev_requirement' => false,
),
'spip/coding-standards' => array(
'pretty_version' => '1.2.1',
'version' => '1.2.1.0',
'type' => 'phpcodesniffer-standard',
'install_path' => __DIR__ . '/../spip/coding-standards',
'aliases' => array(),
'reference' => 'a1bf55f9dbe56019c53e39c584542df789463552',
'dev_requirement' => true,
),
'squizlabs/php_codesniffer' => array(
'pretty_version' => '3.6.2',
'version' => '3.6.2.0',
'type' => 'library',
'install_path' => __DIR__ . '/../squizlabs/php_codesniffer',
'aliases' => array(),
'reference' => '5e4e71592f69da17871dba6e80dd51bce74a351a',
'dev_requirement' => true,
),
'symfony/polyfill-php80' => array(
'pretty_version' => 'v1.25.0',
'version' => '1.25.0.0',

Loading…
Cancel
Save