Coder Social home page Coder Social logo

ma-petite-moustache's People

Contributors

smash3d avatar tommydeniau avatar

Watchers

 avatar  avatar

ma-petite-moustache's Issues

[Insight] A Symfony application should be bootable

SensioLabsInsight was not able to boot your Symfony application. If you need to customize files or run commands to make it bootable, you can edit your SensioLabsInsight project configuration to override the default "pre_composer_script" and/or "post_composer_script" settings.

PDOException: SQLSTATE[HY000] [2002] Connection refused in /home/foobar/code/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:43
Stack trace:
#0 /home/foobar/code/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(43): PDO->__construct('mysql:host=127....', 'root', NULL, Array)
#1 /home/foobar/code/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php(41): Doctrine\DBAL\Driver\PDOConnection->__construct('mysql:host=127....', 'root', NULL, Array)
#2 /home/foobar/code/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(360): Doctrine\DBAL\Driver\PDOMySql\Driver->connect(Array, 'root', NULL, Array)
#3 /home/foobar/code/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): Doctrine\DBAL\Connection->connect()
#4 /home/foobar/code/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#5 /home/foobar/code/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()
#6 /home/foobar/code/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(763): Doctrine\DBAL\Connection->getDatabasePlatform()
#7 /home/foobar/code/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(616): Doctrine\ORM\Mapping\ClassMetadataFactory->getTargetPlatform()
#8 /home/foobar/code/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(174): Doctrine\ORM\Mapping\ClassMetadataFactory->completeIdGeneratorMapping(Object(Doctrine\ORM\Mapping\ClassMetadata))
#9 /home/foobar/code/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php(332

[Insight] Missing use statement should be avoided - in src/StatsBundle/Entity/Synonym.php, line 182

in src/StatsBundle/Entity/Synonym.php, line 182

The Real_Team type hint resolves to the StatsBundle\Entity\Real_Team class which PHP does not seem to be able to autoload.
Did you mean StatsBundle\Entity\RealTeam instead?

     *
     * @param \StatsBundle\Entity\Real_Team $team
     *
     * @return Synonym
     */
    public function setTeam(\StatsBundle\Entity\Real_Team $team = null)
    {
        $this->team = $team;

        return $this;
    }

Posted from SensioLabsInsight

[Insight] Files should not be executable

Your project contains files with permissive permissions. In order to avoid opening a security breach, you should restrict execution rights on following files:

  • src/.htaccess
  • src/AppBundle/AppBundle.php
  • src/AppBundle/Controller/DefaultController.php
  • src/StatsBundle/Controller/DefaultController.php
  • src/StatsBundle/Controller/PlayerController.php
  • src/StatsBundle/Controller/RealController.php
  • src/StatsBundle/Controller/RealLeagueController.php
  • src/StatsBundle/Controller/RealMatchController.php
  • src/StatsBundle/Entity/MpgLeague.php
  • src/StatsBundle/Entity/MpgMatch.php
  • src/StatsBundle/Entity/MpgPlayerMatch.php
  • src/StatsBundle/Entity/MpgTeam.php
  • src/StatsBundle/Repository/MpgLeagueRepository.php
  • src/StatsBundle/Repository/MpgMatchRepository.php
  • src/StatsBundle/Repository/MpgPlayerMatchRepository.php
  • src/StatsBundle/Repository/MpgTeamRepository.php
  • src/StatsBundle/Repository/PlayerRealMatchRepository.php
  • src/StatsBundle/Repository/PlayerRepository.php
  • src/StatsBundle/Repository/RealLeagueRepository.php
  • src/StatsBundle/Repository/RealMatchRepository.php
  • src/StatsBundle/Repository/RealTeamRepository.php
  • src/StatsBundle/Resources/config/doctrine/MpgLeague.orm.yml
  • src/StatsBundle/Resources/config/doctrine/MpgMatch.orm.yml
  • src/StatsBundle/Resources/config/doctrine/MpgPlayerMatch.orm.yml
  • src/StatsBundle/Resources/config/doctrine/MpgTeam.orm.yml
  • src/StatsBundle/Resources/config/doctrine/Player.orm.yml
  • src/StatsBundle/Resources/config/doctrine/PlayerRealMatch.orm.yml
  • src/StatsBundle/Resources/config/doctrine/RealLeague.orm.yml
  • src/StatsBundle/Resources/config/doctrine/RealMatch.orm.yml
  • src/StatsBundle/Resources/config/doctrine/RealTeam.orm.yml
  • src/StatsBundle/Resources/config/routing.yml
  • src/StatsBundle/Resources/config/routing/player.yml
  • src/StatsBundle/Resources/config/routing/realleague.yml
  • src/StatsBundle/Resources/config/routing/realmatch.yml
  • src/StatsBundle/Resources/config/services.yml
  • src/StatsBundle/Re

[Insight] Boolean property should not be prefixed by "is" - in src/…/Service/SynonymManager.php, line 67

in src/StatsBundle/Service/SynonymManager.php, line 67

Boolean property accessor should not be setIsXXX nor getIsXXX but setXXX and isXXX.

     * @param string  $name       the name sent by the parser
     * @param integer $realTeamId the teamID
     *
     * @return null/string
     */
    public function getIsSynonymFor($name, $realTeamId)
    {
        $aka = null;
        $synonym = $this->_em
            ->getRepository('StatsBundle:Synonym')
            ->createQueryBuilder('s')

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.