From e7c381d651b09273aaf13dec2fc3b42f33937fa0 Mon Sep 17 00:00:00 2001 From: Gabriel Pedro Date: Mon, 22 Jul 2019 06:12:01 -0400 Subject: [PATCH] * added travisci to prevent mistype (#89) * feat: travis * feat: travis * feat: travis * feat: travis * feat: travis * fix: typo --- .travis.yml | 13 +++++++++++++ system/libs/pot/OTS_ServerStatus.php | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..cd111aae --- /dev/null +++ b/.travis.yml @@ -0,0 +1,13 @@ + +language: php +php: + - '5.6' + - '7.0' + - '7.1' + - '7.2' + +before_script: + - composer require jakub-onderka/php-parallel-lint --no-suggest --no-progress --no-interaction --no-ansi --quiet --optimize-autoloader + +script: + - php vendor/bin/parallel-lint --no-progress --no-colors --exclude vendor . diff --git a/system/libs/pot/OTS_ServerStatus.php b/system/libs/pot/OTS_ServerStatus.php index f5dcae30..b1275832 100644 --- a/system/libs/pot/OTS_ServerStatus.php +++ b/system/libs/pot/OTS_ServerStatus.php @@ -100,7 +100,7 @@ class OTS_ServerStatus /** * Server software info. */ - const REQUEST_SERVER_SOFTWARE_INFO = 0x23; + const RESPOND_SERVER_SOFTWARE_INFO = 0x23; /** * Server name. * @@ -278,7 +278,7 @@ class OTS_ServerStatus } break; - case self::REQUEST_SERVER_SOFTWARE_INFO: + case self::RESPOND_SERVER_SOFTWARE_INFO: $this->softwareName = $info->getString(); $this->softwareVersion = $info->getString(); $this->softwareProtocol = $info->getString();