From 1c15d249b3dfa6284d550f6ddbcbf85124e4f520 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Wed, 14 Nov 2018 22:05:21 +0100 Subject: [PATCH 01/12] replace specific php7 code --- .../lib/classes/Swift/Mime/Headers/ParameterizedHeader.php | 2 +- .../swiftmailer/lib/classes/Swift/Mime/SimpleMessage.php | 2 +- .../swiftmailer/lib/classes/Swift/Mime/SimpleMimeEntity.php | 2 +- .../swiftmailer/lib/classes/Swift/Plugins/DecoratorPlugin.php | 2 +- .../swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/includes/swiftmailer/lib/classes/Swift/Mime/Headers/ParameterizedHeader.php b/htdocs/includes/swiftmailer/lib/classes/Swift/Mime/Headers/ParameterizedHeader.php index b4a0ddf1224..228946a5ee9 100644 --- a/htdocs/includes/swiftmailer/lib/classes/Swift/Mime/Headers/ParameterizedHeader.php +++ b/htdocs/includes/swiftmailer/lib/classes/Swift/Mime/Headers/ParameterizedHeader.php @@ -97,7 +97,7 @@ class Swift_Mime_Headers_ParameterizedHeader extends Swift_Mime_Headers_Unstruct { $params = $this->getParameters(); - return $params[$parameter] ?? null; + return isset($params[$parameter]) ? $params[$parameter] : null; } /** diff --git a/htdocs/includes/swiftmailer/lib/classes/Swift/Mime/SimpleMessage.php b/htdocs/includes/swiftmailer/lib/classes/Swift/Mime/SimpleMessage.php index 768de07f812..f8667954bcf 100644 --- a/htdocs/includes/swiftmailer/lib/classes/Swift/Mime/SimpleMessage.php +++ b/htdocs/includes/swiftmailer/lib/classes/Swift/Mime/SimpleMessage.php @@ -493,7 +493,7 @@ class Swift_Mime_SimpleMessage extends Swift_Mime_MimePart '%[1-5]' ); - return $priority ?? 3; + return isset($priority) ? $priority : 3; } /** diff --git a/htdocs/includes/swiftmailer/lib/classes/Swift/Mime/SimpleMimeEntity.php b/htdocs/includes/swiftmailer/lib/classes/Swift/Mime/SimpleMimeEntity.php index 2d1a9b47d56..a434729f613 100644 --- a/htdocs/includes/swiftmailer/lib/classes/Swift/Mime/SimpleMimeEntity.php +++ b/htdocs/includes/swiftmailer/lib/classes/Swift/Mime/SimpleMimeEntity.php @@ -293,7 +293,7 @@ class Swift_Mime_SimpleMimeEntity implements Swift_Mime_CharsetObserver, Swift_M public function setChildren(array $children, $compoundLevel = null) { // TODO: Try to refactor this logic - $compoundLevel = $compoundLevel ?? $this->getCompoundLevel($children); + $compoundLevel = isset($compoundLevel) ? $compoundLevel : $this->getCompoundLevel($children); $immediateChildren = array(); $grandchildren = array(); $newContentType = $this->userContentType; diff --git a/htdocs/includes/swiftmailer/lib/classes/Swift/Plugins/DecoratorPlugin.php b/htdocs/includes/swiftmailer/lib/classes/Swift/Plugins/DecoratorPlugin.php index 9d5feefb92c..745ee879003 100644 --- a/htdocs/includes/swiftmailer/lib/classes/Swift/Plugins/DecoratorPlugin.php +++ b/htdocs/includes/swiftmailer/lib/classes/Swift/Plugins/DecoratorPlugin.php @@ -159,7 +159,7 @@ class Swift_Plugins_DecoratorPlugin implements Swift_Events_SendListener, Swift_ return $this->replacements->getReplacementsFor($address); } - return $this->replacements[$address] ?? null; + return isset($this->replacements[$address]) ? $this->replacements[$address] : null; } /** diff --git a/htdocs/includes/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php b/htdocs/includes/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php index 7eb7ef33086..56d9c748769 100644 --- a/htdocs/includes/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php +++ b/htdocs/includes/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php @@ -208,7 +208,7 @@ class Swift_Transport_EsmtpTransport extends Swift_Transport_AbstractSmtpTranspo */ public function getSourceIp() { - return $this->params['sourceIp'] ?? null; + return isset($this->params['sourceIp']) ? $this->params['sourceIp'] : null; } /** From e544f47a05daaa18a260c1f601afbfb83d992de9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Wed, 14 Nov 2018 22:08:07 +0100 Subject: [PATCH 02/12] replace specific php7 code --- .travis.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 17c25da09b8..41464821967 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,7 @@ # from Dolibarr GitHub repository. # For syntax, see http://about.travis-ci.org/docs/user/languages/php/ -# We use dist: trusty to have php 5.4+ available +# We use dist: trusty to have php 5.4+ available dist: trusty sudo: required @@ -20,7 +20,7 @@ addons: # To use the last version of pgloader, we add repo of postgresql - postgresql - sourceline: 'deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main' - - key_url: 'https://www.postgresql.org/media/keys/ACCC4CF8.asc' + - key_url: 'https://www.postgresql.org/media/keys/ACCC4CF8.asc' packages: # We need a webserver to test the webservices # Let's install Apache with. @@ -105,7 +105,7 @@ before_install: pgloader --version echo fi - + install: - | echo "Updating Composer" @@ -199,7 +199,7 @@ before_script: mysql --version | head - mysql -e "SELECT VERSION();" | head - echo - + - | echo "Setting up database" if [ "$DB" = 'mysql' ] || [ "$DB" = 'mariadb' ] || [ "$DB" = 'postgresql' ]; then @@ -207,7 +207,7 @@ before_script: mysql -e 'DROP DATABASE IF EXISTS travis;' mysql -e 'CREATE DATABASE IF NOT EXISTS travis;' mysql -e 'GRANT ALL PRIVILEGES ON travis.* TO travis@127.0.0.1;' - mysql -e 'FLUSH PRIVILEGES;' + mysql -e 'FLUSH PRIVILEGES;' mysql -D travis < dev/initdemo/mysqldump_dolibarr_3.5.0.sql fi if [ "$DB" = 'postgresql' ]; then @@ -288,7 +288,8 @@ script: echo "Checking PHP syntax errors" # Ensure we catch errors set -e - parallel-lint --exclude htdocs/includes --blame . + #parallel-lint --exclude htdocs/includes --blame . + parallel-lint --blame . set +e echo @@ -347,7 +348,7 @@ script: #cat $TRAVIS_BUILD_DIR/upgrade500600-3.log #cat $TRAVIS_BUILD_DIR/upgrade600700-2.log cat /tmp/dolibarr_install.log - + - | echo "Unit testing" # Ensure we catch errors. Set this to +e if you want to go to the end to see dolibarr.log file. From b13ad8170ffe3e4cef722c8902302da6bc44404c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Wed, 14 Nov 2018 22:42:09 +0100 Subject: [PATCH 03/12] correctly check intl extension --- .../EmailValidator/Validation/SpoofCheckValidation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/includes/swiftmailer/egulias/email-validator/EmailValidator/Validation/SpoofCheckValidation.php b/htdocs/includes/swiftmailer/egulias/email-validator/EmailValidator/Validation/SpoofCheckValidation.php index dd270556e8a..4721f0d8c98 100644 --- a/htdocs/includes/swiftmailer/egulias/email-validator/EmailValidator/Validation/SpoofCheckValidation.php +++ b/htdocs/includes/swiftmailer/egulias/email-validator/EmailValidator/Validation/SpoofCheckValidation.php @@ -13,10 +13,10 @@ class SpoofCheckValidation implements EmailValidation * @var InvalidEmail */ private $error; - + public function __construct() { - if (!class_exists(Spoofchecker::class)) { + if (!extension_loaded('intl')) { throw new \LogicException(sprintf('The %s class requires the Intl extension.', __CLASS__)); } } From fabaddb02a2826c1e3c6542293b2103f0fb53e6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Wed, 14 Nov 2018 22:57:00 +0100 Subject: [PATCH 04/12] exclude some for php-parallel-lint --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 41464821967..0c2645df066 100644 --- a/.travis.yml +++ b/.travis.yml @@ -289,7 +289,7 @@ script: # Ensure we catch errors set -e #parallel-lint --exclude htdocs/includes --blame . - parallel-lint --blame . + parallel-lint --exclude htdocs/includes/sabre/sabre/event/tests --exclude htdocs/includes/sabre/sabre/event/examples --exclude htdocs/includes/sabre/sabre/dav/tests --exclude htdocs/includes/sabre/sabre/vobject/tests --exclude htdocs/includes/jakub-onderka/php-parallel-lint/tests --exclude htdocs/includes/mike42/escpos-php/example --exclude htdocs/includes/phpunit/php-token-stream/tests --blame . set +e echo From 0729dfd3788176a3654ab27a842c45a0b33637b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Wed, 14 Nov 2018 23:17:53 +0100 Subject: [PATCH 05/12] exclude some for php-parallel-lint --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 0c2645df066..bc11265c0c8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -289,7 +289,7 @@ script: # Ensure we catch errors set -e #parallel-lint --exclude htdocs/includes --blame . - parallel-lint --exclude htdocs/includes/sabre/sabre/event/tests --exclude htdocs/includes/sabre/sabre/event/examples --exclude htdocs/includes/sabre/sabre/dav/tests --exclude htdocs/includes/sabre/sabre/vobject/tests --exclude htdocs/includes/jakub-onderka/php-parallel-lint/tests --exclude htdocs/includes/mike42/escpos-php/example --exclude htdocs/includes/phpunit/php-token-stream/tests --blame . + parallel-lint --exclude htdocs/includes/sabre/sabre/event/tests --exclude htdocs/includes/sabre/sabre/event/examples --exclude htdocs/includes/sabre/sabre/dav/tests --exclude htdocs/includes/sabre/sabre/vobject/tests --exclude htdocs/includes/jakub-onderka/php-parallel-lint/tests --exclude htdocs/includes/mike42/escpos-php/example --exclude htdocs/includes/phpunit/php-token-stream/tests --exclude htdocs/includes/sabre/composer/autoload_static.php --exclude htdocs/includes/composer/autoload_static.php --blame . set +e echo From 92cda2a75ca81f27bfd2aa0be52ebc01c53ba364 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Wed, 14 Nov 2018 23:29:24 +0100 Subject: [PATCH 06/12] fix cant use method return value --- .../EmailValidator/Validation/NoRFCWarningsValidation.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/includes/swiftmailer/egulias/email-validator/EmailValidator/Validation/NoRFCWarningsValidation.php b/htdocs/includes/swiftmailer/egulias/email-validator/EmailValidator/Validation/NoRFCWarningsValidation.php index e4bf0cc4df9..f3656b35a52 100644 --- a/htdocs/includes/swiftmailer/egulias/email-validator/EmailValidator/Validation/NoRFCWarningsValidation.php +++ b/htdocs/includes/swiftmailer/egulias/email-validator/EmailValidator/Validation/NoRFCWarningsValidation.php @@ -22,7 +22,8 @@ class NoRFCWarningsValidation extends RFCValidation return false; } - if (empty($this->getWarnings())) { + $ret = $this->getWarnings(); + if (empty($ret)) { return true; } From caa080f10332887bcf6f7735ef6c517f636c8dc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Thu, 15 Nov 2018 20:32:51 +0100 Subject: [PATCH 07/12] replace php > 5.4 code --- .../swiftmailer/lib/classes/Swift/Signers/SMimeSigner.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/includes/swiftmailer/lib/classes/Swift/Signers/SMimeSigner.php b/htdocs/includes/swiftmailer/lib/classes/Swift/Signers/SMimeSigner.php index eea2648c9e9..e2231151993 100644 --- a/htdocs/includes/swiftmailer/lib/classes/Swift/Signers/SMimeSigner.php +++ b/htdocs/includes/swiftmailer/lib/classes/Swift/Signers/SMimeSigner.php @@ -278,7 +278,7 @@ class Swift_Signers_SMimeSigner implements Swift_Signers_BodySigner $args[] = $this->extraCerts; } - if (!openssl_pkcs7_sign(...$args)) { + if (!call_user_func_array('openssl_pkcs7_sign', $args)) { throw new Swift_IoException(sprintf('Failed to sign S/Mime message. Error: "%s".', openssl_error_string())); } From 482c6efdd92795016ce4fc8499b9f3a7ce554392 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Thu, 15 Nov 2018 20:35:40 +0100 Subject: [PATCH 08/12] replace php > 5.4 code --- .../lib/classes/Swift/CharacterStream/ArrayCharacterStream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/includes/swiftmailer/lib/classes/Swift/CharacterStream/ArrayCharacterStream.php b/htdocs/includes/swiftmailer/lib/classes/Swift/CharacterStream/ArrayCharacterStream.php index fbfbceb01d1..e43bd2ed510 100644 --- a/htdocs/includes/swiftmailer/lib/classes/Swift/CharacterStream/ArrayCharacterStream.php +++ b/htdocs/includes/swiftmailer/lib/classes/Swift/CharacterStream/ArrayCharacterStream.php @@ -172,7 +172,7 @@ class Swift_CharacterStream_ArrayCharacterStream implements Swift_CharacterStrea } $this->offset += ($i - $this->offset); // Limit function calls - return array_merge(...$arrays); + return call_user_func_array('array_merge', $arrays); } /** From 7c241620c0b9fc15212485234504334e25d533f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Thu, 15 Nov 2018 21:17:59 +0100 Subject: [PATCH 09/12] replace random_bytes --- .../lib/classes/Swift/Mime/IdGenerator.php | 2 +- .../classes/Swift/Mime/SimpleMimeEntity.php | 6 +++--- .../Transport/Esmtp/Auth/NTLMAuthenticator.php | 18 +++++++++++++++++- 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/htdocs/includes/swiftmailer/lib/classes/Swift/Mime/IdGenerator.php b/htdocs/includes/swiftmailer/lib/classes/Swift/Mime/IdGenerator.php index 6e98ee8975d..8d9452bd0f0 100644 --- a/htdocs/includes/swiftmailer/lib/classes/Swift/Mime/IdGenerator.php +++ b/htdocs/includes/swiftmailer/lib/classes/Swift/Mime/IdGenerator.php @@ -46,7 +46,7 @@ class Swift_Mime_IdGenerator implements Swift_IdGenerator */ public function generateId() { - $idLeft = bin2hex(random_bytes(16)); // set 32 hex values + $idLeft = md5(getmypid().'.'.time().'.'.uniqid(mt_rand(), true)); return $idLeft.'@'.$this->idRight; } diff --git a/htdocs/includes/swiftmailer/lib/classes/Swift/Mime/SimpleMimeEntity.php b/htdocs/includes/swiftmailer/lib/classes/Swift/Mime/SimpleMimeEntity.php index a434729f613..980f1cedc1c 100644 --- a/htdocs/includes/swiftmailer/lib/classes/Swift/Mime/SimpleMimeEntity.php +++ b/htdocs/includes/swiftmailer/lib/classes/Swift/Mime/SimpleMimeEntity.php @@ -92,7 +92,7 @@ class Swift_Mime_SimpleMimeEntity implements Swift_Mime_CharsetObserver, Swift_M */ public function __construct(Swift_Mime_SimpleHeaderSet $headers, Swift_Mime_ContentEncoder $encoder, Swift_KeyCache $cache, Swift_IdGenerator $idGenerator) { - $this->cacheKey = bin2hex(random_bytes(16)); // set 32 hex values + $this->cacheKey = md5(getmypid().'.'.time().'.'.uniqid(mt_rand(), true)); $this->cache = $cache; $this->headers = $headers; $this->idGenerator = $idGenerator; @@ -420,7 +420,7 @@ class Swift_Mime_SimpleMimeEntity implements Swift_Mime_CharsetObserver, Swift_M public function getBoundary() { if (!isset($this->boundary)) { - $this->boundary = '_=_swift_'.time().'_'.bin2hex(random_bytes(16)).'_=_'; + $this->boundary = '_=_swift_'.time().'_'.md5(getmypid().'.'.time().'.'.uniqid(mt_rand(), true)).'_=_'; } return $this->boundary; @@ -813,7 +813,7 @@ class Swift_Mime_SimpleMimeEntity implements Swift_Mime_CharsetObserver, Swift_M { $this->headers = clone $this->headers; $this->encoder = clone $this->encoder; - $this->cacheKey = bin2hex(random_bytes(16)); // set 32 hex values + $this->cacheKey = md5(getmypid().'.'.time().'.'.uniqid(mt_rand(), true)); $children = array(); foreach ($this->children as $pos => $child) { $children[$pos] = clone $child; diff --git a/htdocs/includes/swiftmailer/lib/classes/Swift/Transport/Esmtp/Auth/NTLMAuthenticator.php b/htdocs/includes/swiftmailer/lib/classes/Swift/Transport/Esmtp/Auth/NTLMAuthenticator.php index fa5d2110041..b640c1c1d1d 100644 --- a/htdocs/includes/swiftmailer/lib/classes/Swift/Transport/Esmtp/Auth/NTLMAuthenticator.php +++ b/htdocs/includes/swiftmailer/lib/classes/Swift/Transport/Esmtp/Auth/NTLMAuthenticator.php @@ -58,7 +58,7 @@ class Swift_Transport_Esmtp_Auth_NTLMAuthenticator implements Swift_Transport_Es // extra parameters for our unit cases $timestamp = func_num_args() > 3 ? func_get_arg(3) : $this->getCorrectTimestamp(bcmul(microtime(true), '1000')); - $client = func_num_args() > 4 ? func_get_arg(4) : random_bytes(8); + $client = func_num_args() > 4 ? func_get_arg(4) : $this->getRandomBytes(8); // Message 3 response $this->sendMessage3($response, $username, $password, $timestamp, $client, $agent); @@ -548,6 +548,22 @@ class Swift_Transport_Esmtp_Auth_NTLMAuthenticator implements Swift_Transport_Es return $byte; } + /** + * Create random bytes. + * + * @param $length + * + * @return string + */ + protected function getRandomBytes($length) : string + { + $bytes = openssl_random_pseudo_bytes($length, $strong); + if (false !== $bytes && true === $strong) { + return $bytes; + } + throw new RuntimeException('OpenSSL did not produce a secure random number.'); + } + /** ENCRYPTION ALGORITHMS */ /** From 532ce34c539fbc7a060b278305c89fa5954d12b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Thu, 15 Nov 2018 21:29:28 +0100 Subject: [PATCH 10/12] i put the sword under the carpet --- .travis.yml | 2 +- .../classes/Swift/Transport/Esmtp/Auth/NTLMAuthenticator.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index bc11265c0c8..4ecc4d5623b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -289,7 +289,7 @@ script: # Ensure we catch errors set -e #parallel-lint --exclude htdocs/includes --blame . - parallel-lint --exclude htdocs/includes/sabre/sabre/event/tests --exclude htdocs/includes/sabre/sabre/event/examples --exclude htdocs/includes/sabre/sabre/dav/tests --exclude htdocs/includes/sabre/sabre/vobject/tests --exclude htdocs/includes/jakub-onderka/php-parallel-lint/tests --exclude htdocs/includes/mike42/escpos-php/example --exclude htdocs/includes/phpunit/php-token-stream/tests --exclude htdocs/includes/sabre/composer/autoload_static.php --exclude htdocs/includes/composer/autoload_static.php --blame . + parallel-lint --exclude htdocs/includes/sabre --exclude htdocs/includes/jakub-onderka/php-parallel-lint/tests --exclude htdocs/includes/mike42/escpos-php/example --exclude htdocs/includes/phpunit/php-token-stream/tests --exclude htdocs/includes/sabre/composer/autoload_static.php --exclude htdocs/includes/composer/autoload_static.php --blame . set +e echo diff --git a/htdocs/includes/swiftmailer/lib/classes/Swift/Transport/Esmtp/Auth/NTLMAuthenticator.php b/htdocs/includes/swiftmailer/lib/classes/Swift/Transport/Esmtp/Auth/NTLMAuthenticator.php index b640c1c1d1d..7b8608d4a1b 100644 --- a/htdocs/includes/swiftmailer/lib/classes/Swift/Transport/Esmtp/Auth/NTLMAuthenticator.php +++ b/htdocs/includes/swiftmailer/lib/classes/Swift/Transport/Esmtp/Auth/NTLMAuthenticator.php @@ -555,7 +555,7 @@ class Swift_Transport_Esmtp_Auth_NTLMAuthenticator implements Swift_Transport_Es * * @return string */ - protected function getRandomBytes($length) : string + protected function getRandomBytes($length) { $bytes = openssl_random_pseudo_bytes($length, $strong); if (false !== $bytes && true === $strong) { From fd9d9d3a7164626b3db90cdc30c0194343b904c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Thu, 15 Nov 2018 21:38:27 +0100 Subject: [PATCH 11/12] clean again --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 4ecc4d5623b..7f9e907de40 100644 --- a/.travis.yml +++ b/.travis.yml @@ -289,7 +289,7 @@ script: # Ensure we catch errors set -e #parallel-lint --exclude htdocs/includes --blame . - parallel-lint --exclude htdocs/includes/sabre --exclude htdocs/includes/jakub-onderka/php-parallel-lint/tests --exclude htdocs/includes/mike42/escpos-php/example --exclude htdocs/includes/phpunit/php-token-stream/tests --exclude htdocs/includes/sabre/composer/autoload_static.php --exclude htdocs/includes/composer/autoload_static.php --blame . + parallel-lint --exclude htdocs/includes/sabre --exclude htdocs/includes/jakub-onderka/php-parallel-lint/tests --exclude htdocs/includes/mike42/escpos-php/example --exclude htdocs/includes/phpunit/php-token-stream/tests --exclude htdocs/includes/composer/autoload_static.php --blame . set +e echo From def49641889845c5018bdeb9e0ad711daa2a3b65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Mon, 19 Nov 2018 20:10:09 +0100 Subject: [PATCH 12/12] wip --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 07b1b41b295..e7895e21cb0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -289,7 +289,7 @@ script: # Ensure we catch errors set -e #parallel-lint --exclude htdocs/includes --blame . - parallel-lint --exclude htdocs/includes/sabre --exclude htdocs/includes/jakub-onderka/php-parallel-lint/tests --exclude htdocs/includes/mike42/escpos-php/example --exclude htdocs/includes/phpunit/php-token-stream/tests --exclude htdocs/includes/composer/autoload_static.php --blame . + parallel-lint --exclude htdocs/includes/sabre --exclude htdocs/includes/squizlabs/php_codesniffer/tests --exclude htdocs/includes/jakub-onderka/php-parallel-lint/tests --exclude htdocs/includes/mike42/escpos-php/example --exclude htdocs/includes/phpunit/php-token-stream/tests --exclude htdocs/includes/composer/autoload_static.php --blame . set +e echo