Coder Social home page Coder Social logo

postgresqltypebundle's People

Contributors

flecomte avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

garak

postgresqltypebundle's Issues

[Insight] Text files should end with a newline character - in Doctrine/DBAL/Types/AbstractType.php, line 17

in Doctrine/DBAL/Types/AbstractType.php, line 17

This file ends with no newline character. It won't render properly on a terminal, and it's considered a bad practice. Add a simple line feed as the last character to fix it.

     */
    public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
    {
        return $platform->getDoctrineTypeMapping($this->getName());
    }
}

Posted from SensioLabsInsight

[Insight] Code should not be duplicated

in Doctrine/DBAL/Types/DateTime.php, line 12

The next 32 lines appear both in Doctrine/DBAL/Types/DateTime.php:12 and Doctrine/DBAL/Types/DateTimeTz.php:12.

class DateTime extends DateTimeType
{
    protected static $format = 'Y-m-d H:i:s.u';

    public function convertToDatabaseValue ($value, AbstractPlatform $platform)
    {
        if ($value === null) {
            return null;
        } elseif ($value instanceof \DateTime) {
            return $value->format(self::$format);

Posted from SensioLabsInsight

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

in Doctrine/DBAL/Types/ArrayMultiText.php, line 21

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

    public function getSQLDeclaration (array $fieldDeclaration, AbstractPlatform $platform)
    {
        return $platform->getDoctrineTypeMapping('text[]');
    }

    private function array_to_pg_array(array $array)
    {
        $convertArray = [];
        foreach ($array as $key => $value) {
            if (is_array($value)) {
                throw new \Exception('multidimentional array!');

Posted from SensioLabsInsight

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.