Covivo/mobicoop

View on GitHub

Showing 158 of 1,621 total issues

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

class PaymentProfile
{
    public const STATUS_INACTIVE = 0;
    public const STATUS_ACTIVE = 1;

Severity: Minor
Found in api/src/Payment/Entity/PaymentProfile.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

      ShortDistanceJourney has 33 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class ShortDistanceJourney extends Journey
      {
          public const RPC_NUMBER_STATUS = 'OK';
      
          /**
      Severity: Minor
      Found in api/src/Incentive/Entity/ShortDistanceJourney.php - About 4 hrs to fix

        ValidationDocument has 33 functions (exceeds 20 allowed). Consider refactoring.
        Open

        class ValidationDocument
        {
            public const DEFAULT_ID = '999999999999';
            public const OUT_OF_DATE = 1;
            public const UNDERAGE_PERSON = 2;
        Severity: Minor
        Found in api/src/Payment/Ressource/ValidationDocument.php - About 4 hrs to fix

          AdManager has 33 functions (exceeds 20 allowed). Consider refactoring.
          Open

          class AdManager
          {
              public const AUTHORIZED_MATCHING_ALGORITHMS = [Ad::MATCHING_ALGORITHM_V2, Ad::MATCHING_ALGORITHM_V3];
          
              private $entityManager;
          Severity: Minor
          Found in api/src/Carpool/Service/AdManager.php - About 4 hrs to fix

            PTLeg has 33 functions (exceeds 20 allowed). Consider refactoring.
            Open

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

              IdentityProof has 33 functions (exceeds 20 allowed). Consider refactoring.
              Open

              class IdentityProof
              {
                  public const STATUS_NONE = 0;
                  public const STATUS_PENDING = 1;
                  public const STATUS_ACCEPTED = 2;
              Severity: Minor
              Found in api/src/User/Entity/IdentityProof.php - About 4 hrs to fix

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

                class Message implements ResourceInterface
                {
                    /**
                     * @var int the id of this message
                     *
                Severity: Minor
                Found in client/src/MobicoopBundle/Communication/Entity/Message.php - About 4 hrs to fix

                  DataProvider has 32 functions (exceeds 20 allowed). Consider refactoring.
                  Open

                  class DataProvider
                  {
                      public const SERIALIZER_ENCODER = 'json';
                  
                      // possible file properties and associated getter, used for multipart/form-data
                  Severity: Minor
                  Found in client/src/MobicoopBundle/Api/Service/DataProvider.php - About 4 hrs to fix

                    ProfileSummary has 31 functions (exceeds 20 allowed). Consider refactoring.
                    Open

                    class ProfileSummary implements ResourceInterface, \JsonSerializable
                    {
                        public const PHONE_DISPLAY_RESTRICTED = 1;
                        public const PHONE_DISPLAY_ALL = 2;
                    
                    
                    Severity: Minor
                    Found in client/src/MobicoopBundle/User/Entity/ProfileSummary.php - About 3 hrs to fix

                      ProfileSummary has 31 functions (exceeds 20 allowed). Consider refactoring.
                      Open

                      class ProfileSummary
                      {
                          public const PHONE_DISPLAY_RESTRICTED = 1;
                          public const PHONE_DISPLAY_ALL = 2;
                      
                      
                      Severity: Minor
                      Found in api/src/User/Ressource/ProfileSummary.php - About 3 hrs to fix

                        BankAccount has 30 functions (exceeds 20 allowed). Consider refactoring.
                        Open

                        class BankAccount implements ResourceInterface, \JsonSerializable
                        {
                            public const STATUS_INACTIVE = 0;
                            public const STATUS_ACTIVE = 1;
                        
                        
                        Severity: Minor
                        Found in client/src/MobicoopBundle/Payment/Entity/BankAccount.php - About 3 hrs to fix

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

                          class GratuityCampaign
                          {
                              public const STATUS_INACTIVE = 0;
                              public const STATUS_ACTIVE = 1;
                          
                          
                          Severity: Minor
                          Found in api/src/Gratuity/Entity/GratuityCampaign.php - About 3 hrs to fix

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

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

                              Notified has 29 functions (exceeds 20 allowed). Consider refactoring.
                              Open

                              class Notified
                              {
                                  public const STATUS_SENT = 1;
                                  public const STATUS_RECEIVED = 2;
                                  public const STATUS_READ = 3;
                              Severity: Minor
                              Found in api/src/Communication/Entity/Notified.php - About 3 hrs to fix

                                Proof has 28 functions (exceeds 20 allowed). Consider refactoring.
                                Open

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

                                  Territory has 28 functions (exceeds 20 allowed). Consider refactoring.
                                  Open

                                  class Territory
                                  {
                                      /**
                                       * @var int the id of this territory
                                       *
                                  Severity: Minor
                                  Found in api/src/Geography/Entity/Territory.php - About 3 hrs to fix

                                    Direction has 28 functions (exceeds 20 allowed). Consider refactoring.
                                    Open

                                    class Direction
                                    {
                                        /**
                                         * @var int The id of this direction.
                                         */
                                    Severity: Minor
                                    Found in client/src/MobicoopBundle/Geography/Entity/Direction.php - About 3 hrs to fix

                                      WeekSchedule has 28 functions (exceeds 20 allowed). Consider refactoring.
                                      Open

                                      class WeekSchedule
                                      {
                                          /*
                                          * WARNING : For now, Mobicoop only use the outward timeDelta and ignore the time delta of specific days
                                          */
                                      Severity: Minor
                                      Found in api/src/RdexPlus/Entity/WeekSchedule.php - About 3 hrs to fix

                                        Need has 28 functions (exceeds 20 allowed). Consider refactoring.
                                        Open

                                        class Need
                                        {
                                            
                                            /**
                                             * @var int The id of this need.
                                        Severity: Minor
                                        Found in api/src/Solidary/Entity/Need.php - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language