From 8a726eda5dce3166eb9154d823d1e97b61dd1917 Mon Sep 17 00:00:00 2001 From: Andrey Vystavkin Date: Sun, 30 Oct 2016 16:20:47 +0200 Subject: [PATCH] switching to PSR-4 autoloading standard --- .editorconfig | 18 ++++++++++++++++++ composer.json | 19 ++++++++++++++----- 2 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 .editorconfig 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" + } } }