Covivo/mobicoop

View on GitHub

Showing 157 of 1,620 total issues

UserSubscriber has 25 functions (exceeds 20 allowed). Consider refactoring.
Open

class UserSubscriber implements EventSubscriberInterface
{
    private $notificationManager;
    private $userManager;
    private $adminUserManager;
Severity: Minor
Found in api/src/Communication/EventSubscriber/UserSubscriber.php - About 2 hrs to fix

    User has 25 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class User
    {
        public const DEFAULT_ID = 999999999999;
    
        public const GENDER_FEMALE = 1;
    Severity: Minor
    Found in api/src/User/Interoperability/Ressource/User.php - About 2 hrs to fix

      Editorial has 24 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class Editorial
      {
          const STATUS_ACTIVE = 1;
          const STATUS_INACTIVE = 0;
          /**
      Severity: Minor
      Found in api/src/Editorial/Entity/Editorial.php - About 2 hrs to fix

        MangoPayProvider has 24 functions (exceeds 20 allowed). Consider refactoring.
        Open

        class MangoPayProvider implements PaymentProviderInterface
        {
            public const SERVER_URL_SANDBOX = 'https://api.sandbox.mangopay.com/';
            public const SERVER_URL = 'https://api.mangopay.com/';
            public const LANDING_AFTER_PAYMENT = 'paiements/paye';
        Severity: Minor
        Found in api/src/DataProvider/Entity/MangoPayProvider.php - About 2 hrs to fix

          UserImport has 24 functions (exceeds 20 allowed). Consider refactoring.
          Open

          class UserImport
          {
              public const DEFAULT_ID = 999999999999;
          
              public const STATUS_IMPORTED = 0;          // the external user has been imported, no treatment has been made yet
          Severity: Minor
          Found in api/src/Import/Entity/UserImport.php - About 2 hrs to fix

            GratuityCampaign has 24 functions (exceeds 20 allowed). Consider refactoring.
            Open

            class GratuityCampaign
            {
                public const DEFAULT_ID = 999999999999;
            
                /**
            Severity: Minor
            Found in api/src/Gratuity/Resource/GratuityCampaign.php - About 2 hrs to fix

              Car has 24 functions (exceeds 20 allowed). Consider refactoring.
              Open

              class Car
              {
                  /**
                   * @var int $id The id of this car.
                   *
              Severity: Minor
              Found in api/src/User/Entity/Car.php - About 2 hrs to fix

                Article has 23 functions (exceeds 20 allowed). Consider refactoring.
                Open

                class Article
                {
                    const STATUS_PENDING = 0;
                    const STATUS_PUBLISHED = 1;
                    const NB_EXTERNAL_ARTICLES_DEFAULT = 3;
                Severity: Minor
                Found in api/src/Article/Entity/Article.php - About 2 hrs to fix

                  PTStep has 23 functions (exceeds 20 allowed). Consider refactoring.
                  Open

                  class PTStep
                  {
                      /**
                       * @var int The id of this step.
                       */
                  Severity: Minor
                  Found in client/src/MobicoopBundle/PublicTransport/Entity/PTStep.php - About 2 hrs to fix

                    PublicProfile has 23 functions (exceeds 20 allowed). Consider refactoring.
                    Open

                    class PublicProfile implements ResourceInterface, \JsonSerializable
                    {
                        public const SMOKE_NO = 0;
                        public const SMOKE_NOT_IN_CAR = 1;
                        public const SMOKE = 2;
                    Severity: Minor
                    Found in client/src/MobicoopBundle/User/Entity/PublicProfile.php - About 2 hrs to fix

                      MapsAd has 23 functions (exceeds 20 allowed). Consider refactoring.
                      Open

                      class MapsAd
                      {
                          /**
                           * @var Address
                           *
                      Severity: Minor
                      Found in api/src/Carpool/Entity/MapsAd/MapsAd.php - About 2 hrs to fix

                        Article has 23 functions (exceeds 20 allowed). Consider refactoring.
                        Open

                        class Article implements ResourceInterface, \JsonSerializable
                        {
                            const STATUS_PENDING = 0;
                            const STATUS_PUBLISHED = 1;
                            const NB_EXTERNAL_ARTICLES_DEFAULT = 3;
                        Severity: Minor
                        Found in client/src/MobicoopBundle/Article/Entity/Article.php - About 2 hrs to fix

                          CarpoolExport has 23 functions (exceeds 20 allowed). Consider refactoring.
                          Open

                          class CarpoolExport
                          {
                              public const DEFAULT_ID = 999999999999;
                          
                              public const ROLE_DRIVER = 1;
                          Severity: Minor
                          Found in api/src/Carpool/Entity/CarpoolExport.php - About 2 hrs to fix

                            CarpoolSubscriber has 23 functions (exceeds 20 allowed). Consider refactoring.
                            Open

                            class CarpoolSubscriber implements EventSubscriberInterface
                            {
                                use TranslatorTrait;
                            
                                private $notificationManager;
                            Severity: Minor
                            Found in api/src/Communication/EventSubscriber/CarpoolSubscriber.php - About 2 hrs to fix

                              SolidaryMatching has 23 functions (exceeds 20 allowed). Consider refactoring.
                              Open

                              class SolidaryMatching
                              {
                                  const DEFAULT_ID = 999999999999;
                                  
                                  /**
                              Severity: Minor
                              Found in api/src/Solidary/Entity/SolidaryMatching.php - About 2 hrs to fix

                                SsoConnection has 23 functions (exceeds 20 allowed). Consider refactoring.
                                Open

                                class SsoConnection
                                {
                                    public const DEFAULT_ID = 999999999999;
                                
                                    public const RETURN_URL = 'user/sso/login';
                                Severity: Minor
                                Found in api/src/User/Ressource/SsoConnection.php - About 2 hrs to fix

                                  Hydra has 22 functions (exceeds 20 allowed). Consider refactoring.
                                  Open

                                  class Hydra
                                  {
                                      
                                      /**
                                       * @var string $context The context of the collection.
                                  Severity: Minor
                                  Found in client/src/MobicoopBundle/JsonLD/Entity/Hydra.php - About 2 hrs to fix

                                    Subject has 22 functions (exceeds 20 allowed). Consider refactoring.
                                    Open

                                    class Subject
                                    {
                                        
                                        /**
                                         * @var int The id of this subject.
                                    Severity: Minor
                                    Found in api/src/Solidary/Entity/Subject.php - About 2 hrs to fix

                                      Waypoint has 22 functions (exceeds 20 allowed). Consider refactoring.
                                      Open

                                      class Waypoint
                                      {
                                          
                                          /**
                                           * @var float Waypoint's longitude
                                      Severity: Minor
                                      Found in api/src/RdexPlus/Entity/Waypoint.php - About 2 hrs to fix

                                        Search has 22 functions (exceeds 20 allowed). Consider refactoring.
                                        Open

                                        class Search implements \JsonSerializable
                                        {
                                            public const DEFAULT_SEATS_PASSENGER = 1;
                                            public const DEFAULT_SEATS_DRIVER = 3;
                                        
                                        
                                        Severity: Minor
                                        Found in api/src/Carpool/Entity/MobicoopMatcher/Search.php - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language