Covivo/mobicoop

View on GitHub

Showing 157 of 1,619 total issues

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

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

    class PaymentManager
    {
        public const MIN_WEEK = 1;
        public const MAX_WEEK = 52;
        public const MIN_YEAR = 1970;
    Severity: Minor
    Found in api/src/Payment/Service/PaymentManager.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

        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 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

            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

              MangoPayProvider has 23 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

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

                class MobConnectAuth
                {
                    /**
                     * @var int The user subscription ID
                     *
                Severity: Minor
                Found in api/src/Incentive/Entity/MobConnectAuth.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

                      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

                        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

                          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

                            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

                              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

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

                                class RelayPointType
                                {
                                    /**
                                     * @var int The id of this relay point type.
                                     *
                                Severity: Minor
                                Found in api/src/RelayPoint/Entity/RelayPointType.php - About 2 hrs to fix

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

                                  class Candidate
                                  {
                                      /**
                                       * @var int the id of this candidate
                                       */
                                  Severity: Minor
                                  Found in api/src/Match/Entity/Candidate.php - About 2 hrs to fix

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

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

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

                                      class Animation implements MessagerInterface
                                      {
                                          /**
                                           * @var int The id of this animation.
                                           */
                                      Severity: Minor
                                      Found in api/src/Action/Entity/Animation.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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language