PHP 7.2 and PSR-2 compliance (#170)
* Add PHP Code Sniffer, clean up composer.json, ignore node_modules * Initial PSR2 flash. * Declare strict types, add file comments, remove copyright notices. * Fix SQL code indentation. * Smaller visual code changes. * Modify / remove invalid or unnecessary code. * Add some variable data fail safes. * Move logging into lib and introduce Poduptime namespace.
Showing
... | ... | @@ -5,16 +5,24 @@ |
} | ||
}, | ||
"require": { | ||
"php" : "^7.2", | ||
"php": "^7.2", | ||
"gabordemooij/redbean": "^5.0", | ||
"nesbot/carbon": "^1.31", | ||
"commerceguys/enum": "^1.0", | ||
"noplanman/xec": "0.1.0", | ||
"jaybizzle/crawler-detect" :"1.*", | ||
"jaybizzle/crawler-detect": "1.*", | ||
"twbs/bootstrap": "^4.1.0", | ||
"patrickschur/language-detection": "^3.3" | ||
}, | ||
"require-dev": { | ||
"squizlabs/php_codesniffer": "^3.3" | ||
}, | ||
"autoload": { | ||
"classmap": ["lib"] | ||
}, | ||
"scripts": { | ||
"check-code": [ | ||
"vendor/bin/phpcs --standard=PSR2 -snp --encoding=utf-8 --report-width=150 lib *.php" | ||
] | ||
} | ||
} |