Covivo/mobicoop

View on GitHub

Showing 157 of 1,619 total issues

Journey has 46 functions (exceeds 20 allowed). Consider refactoring.
Open

class Journey
{
    const DEFAULT_ID = 999999999999;
    
    const FREQUENCY_PUNCTUAL = 1;
Severity: Minor
Found in api/src/Journey/Entity/Journey.php - About 6 hrs to fix

    Subscription has 46 functions (exceeds 20 allowed). Consider refactoring.
    Open

    abstract class Subscription
    {
        public const TYPE_LONG = 'long';
        public const TYPE_SHORT = 'short';
    
    
    Severity: Minor
    Found in api/src/Incentive/Entity/Subscription.php - About 6 hrs to fix

      Message has 45 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class Message
      {
          public const TYPE_DIRECT = 'Direct';
          public const TYPE_CARPOOL = 'Carpool';
          public const TYPE_SOLIDARY = 'Solidary';
      Severity: Minor
      Found in api/src/Communication/Entity/Message.php - About 6 hrs to fix

        Journey has 45 functions (exceeds 20 allowed). Consider refactoring.
        Open

        class Journey
        {
            const DEFAULT_ID = "999999999999";
        
            const TYPE_PLANNED = "planned";
        Severity: Minor
        Found in api/src/RdexPlus/Resource/Journey.php - About 6 hrs to fix

          Event has 42 functions (exceeds 20 allowed). Consider refactoring.
          Open

          class Event extends GamificationEntity implements ResourceInterface, \JsonSerializable
          {
              /**
               * @var int the id of this event
               */
          Severity: Minor
          Found in client/src/MobicoopBundle/Event/Entity/Event.php - About 5 hrs to fix

            Booking has 41 functions (exceeds 20 allowed). Consider refactoring.
            Open

            class Booking implements ResourceInterface, \JsonSerializable
            {
                public const DEFAULT_ID = 999999999999;
                public const RESOURCE_NAME = 'carpool_standard/bookings';
                public const INITIATED = 'INITIATED';
            Severity: Minor
            Found in client/src/MobicoopBundle/CarpoolStandard/Entity/Booking.php - About 5 hrs to fix

              Log has 41 functions (exceeds 20 allowed). Consider refactoring.
              Open

              class Log
              {
                  /**
                   * @var int the id of this log action
                   *
              Severity: Minor
              Found in api/src/Action/Entity/Log.php - About 5 hrs to fix

                MassPerson has 41 functions (exceeds 20 allowed). Consider refactoring.
                Open

                class MassPerson implements ResourceInterface
                {
                    /**
                     * @var int The id of this person.
                     */
                Severity: Minor
                Found in client/src/MobicoopBundle/Match/Entity/MassPerson.php - About 5 hrs to fix

                  PaymentItem has 41 functions (exceeds 20 allowed). Consider refactoring.
                  Open

                  class PaymentItem implements ResourceInterface, \JsonSerializable
                  {
                      const FREQUENCY_PUNCTUAL = 1;
                      const FREQUENCY_REGULAR = 2;
                  
                  
                  Severity: Minor
                  Found in client/src/MobicoopBundle/Payment/Entity/PaymentItem.php - About 5 hrs to fix

                    PaymentItem has 41 functions (exceeds 20 allowed). Consider refactoring.
                    Open

                    class PaymentItem
                    {
                        const DEFAULT_ID = 999999999999;
                    
                        const FREQUENCY_PUNCTUAL = 1;
                    Severity: Minor
                    Found in api/src/Payment/Ressource/PaymentItem.php - About 5 hrs to fix

                      Booking has 41 functions (exceeds 20 allowed). Consider refactoring.
                      Open

                      class Booking
                      {
                          public const DEFAULT_ID = 999999999999;
                          public const INITIATED = 'INITIATED';
                          public const WAITING_PASSENGER_CONFIRMATION = 'WAITING_PASSENGER_CONFIRMATION';
                      Severity: Minor
                      Found in api/src/CarpoolStandard/Entity/Booking.php - About 5 hrs to fix

                        Badge has 40 functions (exceeds 20 allowed). Consider refactoring.
                        Open

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

                          StructureProof has 39 functions (exceeds 20 allowed). Consider refactoring.
                          Open

                          class StructureProof
                          {
                              public const TYPE_REQUESTER = 1;
                              public const TYPE_VOLUNTEER = 2;
                          
                          
                          Severity: Minor
                          Found in api/src/Solidary/Entity/StructureProof.php - About 5 hrs to fix

                            Point has 38 functions (exceeds 20 allowed). Consider refactoring.
                            Open

                            class Point
                            {
                                /**
                                 * @var null|string the country
                                 *
                            Severity: Minor
                            Found in api/src/Geography/Ressource/Point.php - About 5 hrs to fix

                              CarpoolPayment has 37 functions (exceeds 20 allowed). Consider refactoring.
                              Open

                              class CarpoolPayment
                              {
                                  public const STATUS_INITIATED = 0;
                                  public const STATUS_SUCCESS = 1;
                                  public const STATUS_FAILURE = 2;
                              Severity: Minor
                              Found in api/src/Payment/Entity/CarpoolPayment.php - About 4 hrs to fix

                                ProposalManager has 36 functions (exceeds 20 allowed). Consider refactoring.
                                Open

                                class ProposalManager
                                {
                                    public const ROLE_DRIVER = 1;
                                    public const ROLE_PASSENGER = 2;
                                    public const ROLE_BOTH = 3;
                                Severity: Minor
                                Found in api/src/Carpool/Service/ProposalManager.php - About 4 hrs to fix

                                  ActionEvent has 35 functions (exceeds 20 allowed). Consider refactoring.
                                  Open

                                  class ActionEvent extends Event
                                  {
                                      public const NAME = 'action';
                                  
                                      private $action;
                                  Severity: Minor
                                  Found in api/src/Action/Event/ActionEvent.php - About 4 hrs to fix

                                    Dynamic has 35 functions (exceeds 20 allowed). Consider refactoring.
                                    Open

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

                                      EecInstance has 34 functions (exceeds 20 allowed). Consider refactoring.
                                      Open

                                      class EecInstance
                                      {
                                          public const DEFAULT_ID = '999999999999';
                                      
                                          /**
                                      Severity: Minor
                                      Found in api/src/Incentive/Resource/EecInstance.php - About 4 hrs to fix

                                        CommunityUser has 34 functions (exceeds 20 allowed). Consider refactoring.
                                        Open

                                        class CommunityUser
                                        {
                                            public const STATUS_PENDING = 0;
                                            public const STATUS_ACCEPTED_AS_MEMBER = 1;
                                            public const STATUS_ACCEPTED_AS_MODERATOR = 2;
                                        Severity: Minor
                                        Found in api/src/Community/Entity/CommunityUser.php - About 4 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language