purekid / mongodm

MongoDB ORM that includes support for references,embed and multilevel inheritance.
MIT License
200 stars 47 forks source link

[Insight] PHP code should follow PSR-1 basic coding standard #65

Closed jrschumacher closed 10 years ago

jrschumacher commented 10 years ago

in src/Purekid/Mongodm/Model.php, line 658

Method names should be declared in camelCase. You should rename this class to comply with PSR-1.

     *
     * @param boolean $with_namespaces with namespaces
     *
     * @return string Name of class with namespaces stripped
     */
    public static function get_class_name($with_namespaces = true)
    {
        $class_name = get_called_class();
        if($with_namespaces) return $class_name;
        $class = explode('\\',  $class_name);

Posted from SensioLabsInsight