From 3d2616fcf7af2637746e68f82620021442a6e9f8 Mon Sep 17 00:00:00 2001 From: Willian Keller Date: Mon, 28 Jan 2019 16:52:24 -0200 Subject: [PATCH] Improve methods and run cs --- .travis.yml | 7 ------- Model/AccountManagement.php | 3 +-- composer.json | 8 ++++++-- 3 files changed, 7 insertions(+), 11 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 125579d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -language: php -php: - - 7.0 - - 7.1 -install: composer install --no-interaction --prefer-source -script: - - vendor/bin/phpunit vendor/squizlabs/php_codesniffer/tests/AllTests.php \ No newline at end of file diff --git a/Model/AccountManagement.php b/Model/AccountManagement.php index 15a8f31..b3f7407 100644 --- a/Model/AccountManagement.php +++ b/Model/AccountManagement.php @@ -244,9 +244,8 @@ private function getAuthentication() return \Magento\Framework\App\ObjectManager::getInstance()->get( \Magento\Customer\Model\AuthenticationInterface::class ); - } else { - return $this->authentication; } + return $this->authentication; } /** diff --git a/composer.json b/composer.json index 28e28b4..3501cd0 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,6 @@ "OSL-3.0" ], "version": "1.0.0", - "minimum-stability": "dev", "authors": [ { "name": "Willian Keller", @@ -26,7 +25,12 @@ "issues": "https://github.com/magestat/magento2-sign-in-with-phone-number/issues/" }, "require": { - "php": "~7.0.0|~7.1.0" + "php": "7.0.2|7.0.4|~7.0.6|~7.1.0" + }, + "require-dev": { + "phpmd/phpmd": "@stable", + "phpspec/phpspec": "^2.5", + "squizlabs/php_codesniffer": "3.0.1" }, "autoload": { "files": [