postgresqltypebundle's People
Forkers
garakpostgresqltypebundle's Issues
[Insight] The composer.json file should not raise warnings
No license specified, it is recommended to do so. For closed-source software you may use "proprietary" as license.
Posted from SensioLabsInsight
[Insight] The Doctrine Entity Manager should not be passed as an argument
in FLEPostgresqlTypeBundle.php, line 17
A Doctrine entity manager has been found as an argument.
{
$em = $this->container->get('doctrine.orm.default_entity_manager');
$this->defineType($em);
}
public function defineType (EntityManager $em)
{
$conn = $em->getConnection();
if (!Type::hasType('cidr')) {
Type::addType('cidr', 'FLE\Bundle\PostgresqlTypeBundle\Doctrine\DBAL\Types\Cidr');
Posted from SensioLabsInsight
[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
andDoctrine/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] Unused use statement should be avoided
in Doctrine/DBAL/Types/DateInterval.php, line 5
The class
Doctrine\DBAL\Types\ConversionException
is declared but never used. You should remove theuse
statement.
<?php
namespace FLE\Bundle\PostgresqlTypeBundle\Doctrine\DBAL\Types;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Types\ConversionException;
use Doctrine\DBAL\Types\Type;
class DateInterval extends Type
{
const INTERVAL = 'interval';
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.