ringmaster/dicecalc — pull request #2 by sergej-kurakin (2014-07-07 20:29:23+00:00)
Title: Little re-factoring

Hi,

I've re-factored a bit your classes to fit PSR1/PSR2 standards (class per file, added namespaces), added a composer.json file (please, fix the "name", if you accept the change). Also I've added some tests according to project description to make development of library easier. More over, I've added hpUnit, php code sniffer, php code style fixer and php mess detector as development requirements.

To install dependencies jus clone/update the project and run: `php -f composer.phar install` in command line.

To run code sniffer run: `./vendor/bin/phpcs --standard=PSR1,PSR2 ./src/` in command line.
To run code style fixer run: `./vendor/bin/php-cs-fixer fix ./src/ --level=all` in command line.
To run mess detector run: `vendor/bin/phpmd src/ text codesize,controversial,design,naming,unusedcode` in command line. I'm not sure we need to obey to all phpmd rules, but you might be interested, but if you are not - just ignore it.