Covivo/mobicoop

View on GitHub

Showing 157 of 1,620 total issues

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

class Direction
{
    public const DEFAULT_ID = 999999999999;

    /**
Severity: Major
Found in api/src/Geography/Entity/Direction.php - About 1 day to fix

    Ask has 64 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class Ask
    {
        public const STATUS_INITIATED = 1;
        public const STATUS_PENDING_AS_DRIVER = 2;
        public const STATUS_PENDING_AS_PASSENGER = 3;
    Severity: Major
    Found in api/src/Carpool/Entity/Ask.php - About 1 day to fix

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

      class Event
      {
          public const STATUS_PENDING = 0;
          public const STATUS_ACTIVE = 1;
          public const STATUS_INACTIVE = 2;
      Severity: Major
      Found in api/src/Event/Entity/Event.php - About 1 day to fix

        Mass has 61 functions (exceeds 20 allowed). Consider refactoring.
        Open

        class Mass implements ResourceInterface
        {
            const TYPE_ANONYMOUS = 0;
            const TYPE_QUALIFIED = 1;
        
        
        Severity: Major
        Found in client/src/MobicoopBundle/Match/Entity/Mass.php - About 1 day to fix

          Community has 61 functions (exceeds 20 allowed). Consider refactoring.
          Open

          class Community implements ResourceInterface, \JsonSerializable
          {
              public const AUTO_VALIDATION = 0;
              public const MANUAL_VALIDATION = 1;
              public const DOMAIN_VALIDATION = 2;
          Severity: Major
          Found in client/src/MobicoopBundle/Community/Entity/Community.php - About 1 day to fix

            LongDistanceSubscription has 61 functions (exceeds 20 allowed). Consider refactoring.
            Open

            class LongDistanceSubscription extends Subscription
            {
                public const INITIAL_COMMITMENT_PROOF_PATH = '/api/public/upload/eec-incentives/initial-commitment-proof';
                public const HONOUR_CERTIFICATE_PATH = '/api/public/upload/eec-incentives/long-distance-subscription/honour-certificate/';
            
            
            Severity: Major
            Found in api/src/Incentive/Entity/LongDistanceSubscription.php - About 1 day to fix

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

              class MassPerson
              {
                  /**
                   * @var int the id of this person
                   *
              Severity: Major
              Found in api/src/Match/Entity/MassPerson.php - About 1 day to fix

                CarpoolProof has 60 functions (exceeds 20 allowed). Consider refactoring.
                Open

                class CarpoolProof
                {
                    public const STATUS_INITIATED = 0;              // not ready to be sent, proof still under construction
                    public const STATUS_PENDING = 1;                // ready to be sent
                    public const STATUS_SENT = 2;                   // sent
                Severity: Major
                Found in api/src/Carpool/Entity/CarpoolProof.php - About 1 day to fix

                  CarpoolItem has 60 functions (exceeds 20 allowed). Consider refactoring.
                  Open

                  class CarpoolItem
                  {
                      public const STATUS_INITIALIZED = 0;               // carpool supposed to be done
                      public const STATUS_REALIZED = 1;                  // carpool confirmed
                      public const STATUS_NOT_REALIZED = 2;              // carpool invalidated (no carpool for this day)
                  Severity: Major
                  Found in api/src/Payment/Entity/CarpoolItem.php - About 1 day to fix

                    Address has 60 functions (exceeds 20 allowed). Consider refactoring.
                    Open

                    class Address implements ResourceInterface, \JsonSerializable
                    {
                        /**
                         * @var int the id of this address
                         * @Groups({"post","put"})
                    Severity: Major
                    Found in client/src/MobicoopBundle/Geography/Entity/Address.php - About 1 day to fix

                      MyAd has 59 functions (exceeds 20 allowed). Consider refactoring.
                      Open

                      class MyAd extends GamificationEntity implements ResourceInterface, \JsonSerializable
                      {
                          public const RESOURCE_NAME = 'my_carpools';
                      
                          public const PAYMENT_STATUS_NULL = -1;     // no payment for this ad
                      Severity: Major
                      Found in client/src/MobicoopBundle/Carpool/Entity/MyAd.php - About 1 day to fix

                        Campaign has 58 functions (exceeds 20 allowed). Consider refactoring.
                        Open

                        class Campaign
                        {
                            public const STATUS_PENDING = 0;   // when the campaign has not been tested yet
                            public const STATUS_CREATED = 1;   // when the campaign has been successfully tested
                            public const STATUS_SENT = 2;      // when the campaign was sent
                        Severity: Major
                        Found in api/src/MassCommunication/Entity/Campaign.php - About 1 day to fix

                          MyAd has 58 functions (exceeds 20 allowed). Consider refactoring.
                          Open

                          class MyAd
                          {
                              public const DEFAULT_ID = 999999999999;
                          
                              public const PAYMENT_STATUS_NULL = -1;     // no payment for this ad
                          Severity: Major
                          Found in api/src/Carpool/Ressource/MyAd.php - About 1 day to fix

                            ShortDistanceSubscription has 57 functions (exceeds 20 allowed). Consider refactoring.
                            Open

                            class ShortDistanceSubscription extends Subscription
                            {
                                public const INITIAL_COMMITMENT_PROOF_PATH = '/api/public/upload/eec-incentives/initial-commitment-proof';
                                public const HONOUR_CERTIFICATE_PATH = '/api/public/upload/eec-incentives/short-distance-subscription/honour-certificate/';
                            
                            
                            Severity: Major
                            Found in api/src/Incentive/Entity/ShortDistanceSubscription.php - About 1 day to fix

                              ArticleController has 54 functions (exceeds 20 allowed). Consider refactoring.
                              Open

                              class ArticleController extends AbstractController
                              {
                                  use HydraControllerTrait;
                              
                                  public const CGU = 1;
                              Severity: Major
                              Found in client/src/MobicoopBundle/Article/Controller/ArticleController.php - About 7 hrs to fix

                                Proposal has 53 functions (exceeds 20 allowed). Consider refactoring.
                                Open

                                class Proposal extends GamificationEntity implements ResourceInterface, \JsonSerializable
                                {
                                    const TYPE_ONE_WAY = 1;
                                    const TYPE_OUTWARD = 2;
                                    const TYPE_RETURN = 3;
                                Severity: Major
                                Found in client/src/MobicoopBundle/Carpool/Entity/Proposal.php - About 7 hrs to fix

                                  RelayPoint has 51 functions (exceeds 20 allowed). Consider refactoring.
                                  Open

                                  class RelayPoint implements ResourceInterface, \JsonSerializable
                                  {
                                      const STATUS_PENDING = 0;
                                      const STATUS_ACTIVE = 1;
                                      const STATUS_INACTIVE = 2;
                                  Severity: Major
                                  Found in client/src/MobicoopBundle/RelayPoint/Entity/RelayPoint.php - About 7 hrs to fix

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

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

                                      UserManager has 48 functions (exceeds 20 allowed). Consider refactoring.
                                      Open

                                      class UserManager
                                      {
                                          private $dataProvider;
                                          private $encoder;
                                          private $tokenStorage;
                                      Severity: Minor
                                      Found in client/src/MobicoopBundle/User/Service/UserManager.php - About 6 hrs to fix

                                        SolidaryBeneficiary has 47 functions (exceeds 20 allowed). Consider refactoring.
                                        Open

                                        class SolidaryBeneficiary
                                        {
                                            const DEFAULT_ID = 999999999999;
                                            const TYPE = "beneficiary";
                                            const AUTHORIZED_GENERIC_FILTERS = ['familyName','givenName','email'];
                                        Severity: Minor
                                        Found in api/src/Solidary/Entity/SolidaryBeneficiary.php - About 6 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language