diff --git a/composer.json b/composer.json index 0ac6c5d6f..129585279 100644 --- a/composer.json +++ b/composer.json @@ -50,7 +50,9 @@ "phpunit/phpunit": "~5.7", "lmc/steward": "^2.2", "behat/behat": "^3.3", - "behat/mink-selenium2-driver": "^1.3" + "behat/mink-selenium2-driver": "^1.3", + "squizlabs/php_codesniffer": "^2.2 || ^3.0.2", + "wimg/php-compatibility": "*" }, "autoload": { "psr-0": { @@ -87,5 +89,9 @@ "psr-4": { "Tests\\": "tests/" } + }, + "scripts": { + "post-install-cmd": "\"vendor/bin/phpcs\" --config-set installed_paths vendor/wimg/php-compatibility", + "post-update-cmd" : "\"vendor/bin/phpcs\" --config-set installed_paths vendor/wimg/php-compatibility" } } diff --git a/composer.lock b/composer.lock index 20f987248..cd92e0f83 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "content-hash": "3d2c777c037c3ca6d7e48ad3d6e0b1ef", + "content-hash": "09272e30ec880b324430ae1e42a4c5ae", "packages": [ { "name": "bshaffer/oauth2-server-php", @@ -66,7 +66,7 @@ "keywords": [ "js app ProcessMaker" ], - "time": "2017-08-11T21:55:11+00:00" + "time": "2017-08-11 21:55:11" }, { "name": "colosa/pmDynaform", @@ -74,7 +74,7 @@ "source": { "type": "git", "url": "git@bitbucket.org:colosa/pmdynaform.git", - "reference": "44cd5ff1c0f4fa421550e8c120293facb7108988" + "reference": "8710582804bb17b7940129982c5a0d710093d382" }, "type": "library", "description": "JS Library to render ProcessMaker Dynaforms", @@ -82,7 +82,7 @@ "keywords": [ "js lib ProcessMaker Dynaforms" ], - "time": "2017-08-14T13:05:06+00:00" + "time": "2017-08-21 21:20:20" }, { "name": "colosa/pmUI", @@ -98,7 +98,7 @@ "keywords": [ "js lib ProcessMaker UI" ], - "time": "2017-08-10T14:57:39+00:00" + "time": "2017-08-10 14:57:39" }, { "name": "dapphp/securimage", @@ -294,7 +294,7 @@ ], "description": "Generic Syntax Highlighter", "homepage": "http://qbnz.com/highlighter/", - "time": "2017-07-30T00:08:49+00:00" + "time": "2017-07-30 00:08:49" }, { "name": "google/apiclient", @@ -407,20 +407,20 @@ }, { "name": "laravel/framework", - "version": "v5.4.32", + "version": "v5.4.33", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "b8300578d159199b1195413b67318c79068cd24d" + "reference": "e53a81a2bf406f501cdf818ad949f8d6c8dabfc0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/b8300578d159199b1195413b67318c79068cd24d", - "reference": "b8300578d159199b1195413b67318c79068cd24d", + "url": "https://api.github.com/repos/laravel/framework/zipball/e53a81a2bf406f501cdf818ad949f8d6c8dabfc0", + "reference": "e53a81a2bf406f501cdf818ad949f8d6c8dabfc0", "shasum": "" }, "require": { - "doctrine/inflector": "~1.1.0", + "doctrine/inflector": "~1.1", "erusev/parsedown": "~1.6", "ext-mbstring": "*", "ext-openssl": "*", @@ -532,7 +532,7 @@ "framework", "laravel" ], - "time": "2017-08-03T12:59:42+00:00" + "time": "2017-08-14T20:17:41+00:00" }, { "name": "league/flysystem", @@ -1859,16 +1859,16 @@ }, { "name": "symfony/polyfill-mbstring", - "version": "v1.4.0", + "version": "v1.5.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "f29dca382a6485c3cbe6379f0c61230167681937" + "reference": "7c8fae0ac1d216eb54349e6a8baa57d515fe8803" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/f29dca382a6485c3cbe6379f0c61230167681937", - "reference": "f29dca382a6485c3cbe6379f0c61230167681937", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/7c8fae0ac1d216eb54349e6a8baa57d515fe8803", + "reference": "7c8fae0ac1d216eb54349e6a8baa57d515fe8803", "shasum": "" }, "require": { @@ -1880,7 +1880,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.4-dev" + "dev-master": "1.5-dev" } }, "autoload": { @@ -1914,7 +1914,7 @@ "portable", "shim" ], - "time": "2017-06-09T14:24:12+00:00" + "time": "2017-06-14T15:44:48+00:00" }, { "name": "symfony/process", @@ -4796,6 +4796,57 @@ "homepage": "https://github.com/sebastianbergmann/version", "time": "2016-10-03T07:35:21+00:00" }, + { + "name": "squizlabs/php_codesniffer", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", + "reference": "c7594a88ae75401e8f8d0bd4deb8431b39045c51" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/c7594a88ae75401e8f8d0bd4deb8431b39045c51", + "reference": "c7594a88ae75401e8f8d0bd4deb8431b39045c51", + "shasum": "" + }, + "require": { + "ext-simplexml": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": ">=5.4.0" + }, + "require-dev": { + "phpunit/phpunit": "~4.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": "http://www.squizlabs.com/php-codesniffer", + "keywords": [ + "phpcs", + "standards" + ], + "time": "2017-07-18T01:12:32+00:00" + }, { "name": "symfony/class-loader", "version": "v3.3.6", @@ -5240,6 +5291,58 @@ "validate" ], "time": "2016-11-23T20:04:58+00:00" + }, + { + "name": "wimg/php-compatibility", + "version": "8.0.1", + "source": { + "type": "git", + "url": "https://github.com/wimg/PHPCompatibility.git", + "reference": "4c4385fb891dff0501009670f988d4fe36785249" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wimg/PHPCompatibility/zipball/4c4385fb891dff0501009670f988d4fe36785249", + "reference": "4c4385fb891dff0501009670f988d4fe36785249", + "shasum": "" + }, + "require": { + "php": ">=5.3", + "squizlabs/php_codesniffer": "^2.2 || ^3.0.2" + }, + "conflict": { + "squizlabs/php_codesniffer": "2.6.2" + }, + "require-dev": { + "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0" + }, + "suggest": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.4.1" + }, + "type": "phpcodesniffer-standard", + "autoload": { + "psr-4": { + "PHPCompatibility\\": "PHPCompatibility/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0" + ], + "authors": [ + { + "name": "Wim Godden", + "role": "lead" + } + ], + "description": "A set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.", + "homepage": "http://techblog.wimgodden.be/tag/codesniffer/", + "keywords": [ + "compatibility", + "phpcs", + "standards" + ], + "time": "2017-08-07T19:39:05+00:00" } ], "aliases": [],