Skip to content

Commit

Permalink
PHPCBF: Fix coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantheon Robot committed Jul 18, 2024
1 parent 7e122a8 commit 34e0084
Show file tree
Hide file tree
Showing 2 changed files with 3,237 additions and 146 deletions.
281 changes: 135 additions & 146 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,155 +1,144 @@
{
"name": "pantheon-systems/wordpress-composer-managed",
"type": "project",
"license": "MIT",
"description": "Pantheon's recommended starting point for WordPress upstreams using the platform's Integrated Composer build process.",
"homepage": "https://pantheon.io/docs/guides/wordpress-composer",
"authors": [
{
"name": "Pantheon Systems",
"homepage": "https://pantheon.io"
"name": "pantheon-systems/wordpress-composer-managed",
"type": "project",
"license": "MIT",
"description": "Pantheon's recommended starting point for WordPress upstreams using the platform's Integrated Composer build process.",
"homepage": "https://pantheon.io/docs/guides/wordpress-composer",
"authors": [
{
"name": "Pantheon Systems",
"homepage": "https://pantheon.io"
},
{
"name": "John Spellman",
"email": "[email protected]",
"homepage": "https://github.com/jspellman814"
},
{
"name": "Chris Reynolds",
"email": "[email protected]",
"homepage": "https://github.com/jazzsequence"
},
{
"name": "Scott Walkinshaw",
"email": "[email protected]",
"homepage": "https://github.com/swalkinshaw"
},
{
"name": "Ben Word",
"email": "[email protected]",
"homepage": "https://github.com/retlehs"
}
],
"keywords": [
"bedrock",
"composer",
"roots",
"wordpress",
"wp",
"wp-config",
"pantheon"
],
"support": {
"issues": "https://github.com/pantheon-systems/wordpress-composer-managed/issues",
"docs": "https://pantheon.io/docs/guides/wordpress-composer",
"forum": "https://discuss.pantheon.io"
},
{
"name": "John Spellman",
"email": "[email protected]",
"homepage": "https://github.com/jspellman814"
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org",
"only": [
"wpackagist-plugin/*",
"wpackagist-theme/*"
]
},
{
"type": "path",
"url": "upstream-configuration"
}
],
"require": {
"php": ">=8.2",
"composer/installers": "^2.2",
"vlucas/phpdotenv": "^5.5",
"oscarotero/env": "^2.1",
"roots/bedrock-autoloader": "*",
"roots/bedrock-disallow-indexing": "*",
"roots/wordpress": "*",
"roots/wp-config": "*",
"roots/wp-password-bcrypt": "*",
"wpackagist-theme/twentytwentytwo": "^1.2",
"pantheon-systems/pantheon-mu-plugin": "*",
"pantheon-upstreams/upstream-configuration": "dev-main",
"wpackagist-plugin/pantheon-advanced-page-cache": "*",
"wpackagist-plugin/wp-native-php-sessions": "*",
"cweagans/composer-patches": "^1.7"
},
{
"name": "Chris Reynolds",
"email": "[email protected]",
"homepage": "https://github.com/jazzsequence"
"require-dev": {
"pantheon-systems/pantheon-wp-coding-standards": "*",
"roave/security-advisories": "dev-latest",
"assertwell/shellcheck": "^1.0"
},
{
"name": "Scott Walkinshaw",
"email": "[email protected]",
"homepage": "https://github.com/swalkinshaw"
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"process-timeout": 0,
"allow-plugins": {
"composer/installers": true,
"roots/wordpress-core-installer": true,
"cweagans/composer-patches": true,
"dealerdirect/phpcodesniffer-composer-installer": true
},
"platform": {
"php": "8.2.0"
}
},
{
"name": "Ben Word",
"email": "[email protected]",
"homepage": "https://github.com/retlehs"
}
],
"keywords": [
"bedrock", "composer", "roots", "wordpress", "wp", "wp-config", "pantheon"
],
"support": {
"issues": "https://github.com/pantheon-systems/wordpress-composer-managed/issues",
"docs": "https://pantheon.io/docs/guides/wordpress-composer",
"forum": "https://discuss.pantheon.io"
},
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org",
"only": ["wpackagist-plugin/*", "wpackagist-theme/*"]
"minimum-stability": "stable",
"prefer-stable": true,
"extra": {
"installer-paths": {
"web/app/mu-plugins/{$name}/": ["type:wordpress-muplugin"],
"web/app/plugins/{$name}/": ["type:wordpress-plugin"],
"web/app/themes/{$name}/": ["type:wordpress-theme"]
},
"wordpress-install-dir": "web/wp",
"build-env": {
"install-cms": [
"wp core install --title={site-name} --url={site-url} --admin_user={account-name} --admin_email={account-mail} --admin_password={account-pass}",
"wp option update permalink_structure '/%postname%/'"
]
},
"composer-scaffold": {
"locations": {
"web-root": "./"
}
},
"composer-exit-on-patch-failure": true,
"enable-patching": true
},
{
"type": "path",
"url": "upstream-configuration"
}
],
"require": {
"php": ">=8.0",
"composer/installers": "^2.2",
"vlucas/phpdotenv": "^5.5",
"oscarotero/env": "^2.1",
"roots/bedrock-autoloader": "*",
"roots/bedrock-disallow-indexing": "*",
"roots/wordpress": "*",
"roots/wp-config": "*",
"roots/wp-password-bcrypt": "*",
"wpackagist-theme/twentytwentytwo": "^1.2",
"pantheon-systems/pantheon-mu-plugin": "*",
"pantheon-upstreams/upstream-configuration": "dev-main",
"wpackagist-plugin/pantheon-advanced-page-cache": "*",
"wpackagist-plugin/wp-native-php-sessions": "*",
"cweagans/composer-patches": "^1.7"
},
"require-dev": {
"pantheon-systems/pantheon-wp-coding-standards": "*",
"roave/security-advisories": "dev-latest",
"assertwell/shellcheck": "^1.0"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"process-timeout": 0,
"allow-plugins": {
"composer/installers": true,
"roots/wordpress-core-installer": true,
"cweagans/composer-patches": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"minimum-stability": "stable",
"prefer-stable": true,
"extra": {
"installer-paths": {
"web/app/mu-plugins/{$name}/": ["type:wordpress-muplugin"],
"web/app/plugins/{$name}/": ["type:wordpress-plugin"],
"web/app/themes/{$name}/": ["type:wordpress-theme"]
},
"wordpress-install-dir": "web/wp",
"build-env": {
"install-cms": [
"wp core install --title={site-name} --url={site-url} --admin_user={account-name} --admin_email={account-mail} --admin_password={account-pass}",
"wp option update permalink_structure '/%postname%/'"
]
"autoload": {
"classmap": ["upstream-configuration/scripts/ComposerScripts.php"]
},
"composer-scaffold": {
"locations": {
"web-root": "./"
}
"scripts": {
"post-install-cmd": "@maybe-create-symlinks",
"pre-update-cmd": ["WordPressComposerManaged\\ComposerScripts::preUpdate"],
"install-sage": ["bash ./private/scripts/helpers.sh install_sage"],
"maybe-create-symlinks": ["bash ./private/scripts/helpers.sh maybe_create_symlinks"],
"lint": [
"@lint:php",
"@lint:phpcs",
"@lint:bash"
],
"lint:php": ["php -l web/wp/wp-settings.php"],
"lint:phpcs": ["vendor/bin/phpcs -s ."],
"lint:phpcbf": ["vendor/bin/phpcbf ."],
"lint:bash": ["shellcheck private/scripts/*.sh"],
"lint:devops": ["[ -d devops/scripts ] && shellcheck devops/scripts/*.sh"],
"test": [],
"post-update-cmd": ["WordPressComposerManaged\\ComposerScripts::postUpdate"]
},
"composer-exit-on-patch-failure": true,
"enable-patching": true
},
"autoload": {
"classmap": [
"upstream-configuration/scripts/ComposerScripts.php"
]
},
"scripts": {
"post-install-cmd": "@maybe-create-symlinks",
"pre-update-cmd": [
"WordPressComposerManaged\\ComposerScripts::preUpdate"
],
"install-sage": [
"bash ./private/scripts/helpers.sh install_sage"
],
"maybe-create-symlinks": [
"bash ./private/scripts/helpers.sh maybe_create_symlinks"
],
"lint": [
"@lint:php",
"@lint:phpcs",
"@lint:bash"
],
"lint:php": [
"php -l web/wp/wp-settings.php"
],
"lint:phpcs": [
"vendor/bin/phpcs -s ."
],
"lint:phpcbf": [
"vendor/bin/phpcbf ."
],
"lint:bash": [
"shellcheck private/scripts/*.sh"
],
"lint:devops": [
"[ -d devops/scripts ] && shellcheck devops/scripts/*.sh"
],
"test": [],
"upstream-require": [
"WordPressComposerManaged\\ComposerScripts::upstreamRequire"
]
},
"scripts-descriptions": {
"upstream-require": "Add a dependency to an upstream. See https://pantheon.io/docs/create-custom-upstream for information on creating custom upstreams."
},
"suggest": {
"pantheon-systems/upstream-management": "Composer plugin that provides commands for managing custom upstreams on Pantheon."
}
"suggest": {
"pantheon-systems/upstream-management": "Composer plugin that provides commands for managing custom upstreams on Pantheon."
}
}
Loading

0 comments on commit 34e0084

Please sign in to comment.