korytoff / php-timehelper Goto Github PK
View Code? Open in Web Editor NEWphp class helper for formatting datetime
License: MIT License
php class helper for formatting datetime
License: MIT License
The method parse() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10.
https://codeclimate.com/github/korytoff/PHP-TimeHelper/TimeHelper.php#issue_58999cd7c89846000100000c
Привет!
Подключил твой в проект yii2 через композер.
Класс скачивается в папку /vendor/korytoff/timehelper
а неймспейс в классе namespace korytoff\helpers;
Когда хочу использовать твой класс указываю use korytoff\helpers\TimeHelper;
но автолоадер не работает.
Удалось запустить через автолоадер, только если переименовать папку timehelper в helpers =
/vendor/korytoff/helpers
и прописал алиас в настройку приложения '@korytoff' => '@vendor/korytoff/'
Мне кажется, что если что-то где-то поправить, то все заработает само, но я не очень силен во всех этих PSR...
Вообщем, это мне у себя что-то править или можно что-то сделать в репозитории, чтобы автолоадер работал?
The variable $M is not named in camelCase.
https://codeclimate.com/github/korytoff/PHP-TimeHelper/TimeHelper.php#issue_58999cd7c898460001000017
The class TimeHelper has an overall complexity of 55 which is very high. The configured complexity threshold is 50.
https://codeclimate.com/github/korytoff/PHP-TimeHelper/TimeHelper.php#issue_58999cd7c898460001000008
The variable $N is not named in camelCase.
https://codeclimate.com/github/korytoff/PHP-TimeHelper/TimeHelper.php#issue_58999cd7c898460001000028
The variable $N is not named in camelCase.
https://codeclimate.com/github/korytoff/PHP-TimeHelper/TimeHelper.php#issue_58999cd7c898460001000029
The variable $N is not named in camelCase.
https://codeclimate.com/github/korytoff/PHP-TimeHelper/TimeHelper.php#issue_58999cd7c89846000100002a
The method parse() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10.
https://codeclimate.com/github/korytoff/PHP-TimeHelper/TimeHelper.php#issue_58999cd7c89846000100000c
The variable $M is not named in camelCase.
https://codeclimate.com/github/korytoff/PHP-TimeHelper/TimeHelper.php#issue_58999cd7c898460001000024
The class TimeHelper has 18 public methods. Consider refactoring TimeHelper to keep number of public methods under 10.
https://codeclimate.com/github/korytoff/PHP-TimeHelper/TimeHelper.php#issue_58999cd7c898460001000007
The property $_dateTime is not named in camelCase.
https://codeclimate.com/github/korytoff/PHP-TimeHelper/TimeHelper.php#issue_58999cd7c898460001000009
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.