diff options
author | Andrey Vystavkin <jujav4ik@gmail.com> | 2016-10-30 16:20:47 +0200 |
---|---|---|
committer | Andrey Vystavkin <jujav4ik@gmail.com> | 2016-10-30 16:20:47 +0200 |
commit | 8a726eda5dce3166eb9154d823d1e97b61dd1917 (patch) | |
tree | de4e3d95e283584e4f90f48ae3f810489582c461 | |
parent | fa781c14e34b512c1492d6c34379ef71d4ef9b9b (diff) | |
download | TwoFactorAuth-8a726eda5dce3166eb9154d823d1e97b61dd1917.zip TwoFactorAuth-8a726eda5dce3166eb9154d823d1e97b61dd1917.tar.gz TwoFactorAuth-8a726eda5dce3166eb9154d823d1e97b61dd1917.tar.bz2 |
switching to PSR-4 autoloading standard
-rw-r--r-- | .editorconfig | 18 | ||||
-rw-r--r-- | composer.json | 19 |
2 files changed, 32 insertions, 5 deletions
diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..7061901 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,18 @@ +; This file is for unifying the coding style for different editors and IDEs. +; More information at http://editorconfig.org + +root = true + +[*] +indent_style = space +indent_size = 4 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.bat] +end_of_line = crlf + +[*.yml] +indent_style = space +indent_size = 2 diff --git a/composer.json b/composer.json index 6254d0e..a67b51f 100644 --- a/composer.json +++ b/composer.json @@ -17,12 +17,21 @@ "issues": "https://github.com/RobThree/TwoFactorAuth/issues", "source": "https://github.com/RobThree/TwoFactorAuth" }, - "autoload": { - "classmap": [ - "lib/" - ] - }, "require": { "php": ">=5.3.0" + }, + "require-dev": { + "phpunit/phpunit": "@stable", + "cakephp/cakephp-codesniffer": "^2.0" + }, + "autoload": { + "psr-4": { + "RobThree\\Auth\\": "lib" + } + }, + "autoload-dev": { + "psr-4": { + "RobThree\\Auth\\Test\\": "tests" + } } } |