Skip to content

Commit

Permalink
Reindent .json and .yml files to 2 spaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryJones committed Jul 2, 2015
1 parent c84e8a2 commit cf9b8a9
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 53 deletions.
48 changes: 24 additions & 24 deletions .travis.yml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -10,38 +10,38 @@ language: php


# Declare versions of PHP to use. Use one decimal max. # Declare versions of PHP to use. Use one decimal max.
php: php:
- 5.2 - 5.2
- 5.6 - 5.6
- hhvm - hhvm


matrix: matrix:
allow_failures: allow_failures:
- php: hhvm - php: hhvm


before_script: before_script:
- export PHPCS_DIR=/tmp/phpcs - export PHPCS_DIR=/tmp/phpcs
- export WPCS_DIR=/tmp/wpcs - export WPCS_DIR=/tmp/wpcs
# Install CodeSniffer for WordPress Coding Standards checks. # Install CodeSniffer for WordPress Coding Standards checks.
# 2.3.1 breaks PHP 5.2 on Travis due to use of Phar class. # 2.3.1 breaks PHP 5.2 on Travis due to use of Phar class.
- git clone -b 2.3.0 --depth 1 https://github.com/squizlabs/PHP_CodeSniffer.git $PHPCS_DIR - git clone -b 2.3.0 --depth 1 https://github.com/squizlabs/PHP_CodeSniffer.git $PHPCS_DIR
# Install WordPress Coding Standards. # Install WordPress Coding Standards.
- git clone -b master --depth 1 https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git $WPCS_DIR - git clone -b master --depth 1 https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git $WPCS_DIR
# Set install path for WordPress Coding Standards. # Set install path for WordPress Coding Standards.
# @link https://github.com/squizlabs/PHP_CodeSniffer/blob/4237c2fc98cc838730b76ee9cee316f99286a2a7/CodeSniffer.php#L1941 # @link https://github.com/squizlabs/PHP_CodeSniffer/blob/4237c2fc98cc838730b76ee9cee316f99286a2a7/CodeSniffer.php#L1941
- $PHPCS_DIR/scripts/phpcs --config-set installed_paths $WPCS_DIR - $PHPCS_DIR/scripts/phpcs --config-set installed_paths $WPCS_DIR
# After CodeSniffer install you should refresh your path. # After CodeSniffer install you should refresh your path.
- phpenv rehash - phpenv rehash


# Run test script commands. # Run test script commands.
# All commands must exit with code 0 on success. Anything else is considered failure. # All commands must exit with code 0 on success. Anything else is considered failure.
script: script:
# Search for PHP syntax errors. # Search for PHP syntax errors.
- find . \( -name '*.php' \) -exec php -lf {} \; - find . \( -name '*.php' \) -exec php -lf {} \;
# WordPress Coding Standards # WordPress Coding Standards
# @link https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards # @link https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards
# @link https://github.com/squizlabs/PHP_CodeSniffer # @link https://github.com/squizlabs/PHP_CodeSniffer
# All of the usual config flags are held in phpcs.xml # All of the usual config flags are held in phpcs.xml
- $PHPCS_DIR/scripts/phpcs - $PHPCS_DIR/scripts/phpcs


notifications: notifications:
email: false email: false
58 changes: 29 additions & 29 deletions composer.json
Original file line number Original file line Diff line number Diff line change
@@ -1,34 +1,34 @@
{ {
"name": "tgmpa/tgm-plugin-activation", "name": "tgmpa/tgm-plugin-activation",
"description": "TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins).", "description": "TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins).",
"homepage": "http://tgmpluginactivation.com", "homepage": "http://tgmpluginactivation.com",
"keywords": ["wordpress","plugins", "theme", "library", "activation"], "keywords": ["wordpress","plugins", "theme", "library", "activation"],
"license": "GPL-2.0+", "license": "GPL-2.0+",
"authors": [ "authors": [
{ {
"name": "Thomas Griffin", "name": "Thomas Griffin",
"homepage": "http://thomasgriffinmedia.com", "homepage": "http://thomasgriffinmedia.com",
"role": "Developer" "role": "Developer"
},
{
"name": "Gary Jones",
"homepage": "https://github.com/GaryJones",
"role": "Developer"
},
{
"name": "Juliette Reinders Folmer",
"homepage": "https://github.com/jrfnl",
"role": "Developer"
}
],
"support": {
"issues": "https://github.com/TGMPA/TGM-Plugin-Activation/issues",
"source": "https://github.com/TGMPA/TGM-Plugin-Activation"
}, },
"require": { {
"php": ">=5.2" "name": "Gary Jones",
"homepage": "https://github.com/GaryJones",
"role": "Developer"
}, },
"autoload": { {
"files": ["class-tgm-plugin-activation.php"] "name": "Juliette Reinders Folmer",
"homepage": "https://github.com/jrfnl",
"role": "Developer"
} }
],
"support": {
"issues": "https://github.com/TGMPA/TGM-Plugin-Activation/issues",
"source": "https://github.com/TGMPA/TGM-Plugin-Activation"
},
"require": {
"php": ">=5.2"
},
"autoload": {
"files": ["class-tgm-plugin-activation.php"]
}
} }

0 comments on commit cf9b8a9

Please sign in to comment.