Covivo/mobicoop

View on GitHub

Showing 157 of 1,620 total issues

CommunityManager has 27 functions (exceeds 20 allowed). Consider refactoring.
Open

class CommunityManager
{
    private $entityManager;
    private $logger;
    private $securityPath;
Severity: Minor
Found in api/src/Community/Service/CommunityManager.php - About 3 hrs to fix

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

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

      RetroactivelyRewardService has 27 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class RetroactivelyRewardService
      {
          public const GAMIFICATION_ACTION_DONE = [
              1 => 'hasEmailValidated',
              2 => 'hasPhoneValidated',
      Severity: Minor
      Found in api/src/Gamification/Service/RetroactivelyRewardService.php - About 3 hrs to fix

        ProposalRepository has 27 functions (exceeds 20 allowed). Consider refactoring.
        Open

        class ProposalRepository
        {
            private $bearing_range;                   // if used, only accept proposal where the bearing direction (cape) is not at the opposite, more or less the range degrees
            // for example, if the bearing is 0 (s->n), the proposals where the bearing is between 170 and 190 (~ n->s) are excluded
            private $passenger_proportion;           // minimum passenger distance relative to the driver distance, eg passenger distance should be at least 30% of the driver distance
        Severity: Minor
        Found in api/src/Carpool/Repository/ProposalRepository.php - About 3 hrs to fix

          PTJourney has 27 functions (exceeds 20 allowed). Consider refactoring.
          Open

          class PTJourney
          {
              public const DEFAULT_ID = 999999999999;
          
              /**
          Severity: Minor
          Found in api/src/PublicTransport/Entity/PTJourney.php - About 3 hrs to fix

            Notification has 26 functions (exceeds 20 allowed). Consider refactoring.
            Open

            class Notification
            {
                public const USER_REGISTERED_DELEGATE_PASSWORD_SEND_SMS = 65;
                public const PERMISSIVES = [
                    self::USER_REGISTERED_DELEGATE_PASSWORD_SEND_SMS,
            Severity: Minor
            Found in api/src/Communication/Entity/Notification.php - About 3 hrs to fix

              RelayPointMap has 26 functions (exceeds 20 allowed). Consider refactoring.
              Open

              class RelayPointMap implements ResourceInterface, \JsonSerializable
              {
                  /**
                   * @var int The id of this relay point map
                   */
              Severity: Minor
              Found in client/src/MobicoopBundle/RelayPoint/Entity/RelayPointMap.php - About 3 hrs to fix

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

                class CommunityUser extends GamificationEntity implements ResourceInterface, \JsonSerializable
                {
                    const STATUS_PENDING = 0;
                    const STATUS_ACCEPTED_AS_MEMBER = 1;
                    const STATUS_ACCEPTED_AS_MODERATOR = 2;
                Severity: Minor
                Found in client/src/MobicoopBundle/Community/Entity/CommunityUser.php - About 3 hrs to fix

                  SolidaryUserStructure has 26 functions (exceeds 20 allowed). Consider refactoring.
                  Open

                  class SolidaryUserStructure
                  {
                      const STATUS_PENDING = 0;
                      const STATUS_ACCEPTED = 1;
                      const STATUS_REFUSED = 2;
                  Severity: Minor
                  Found in api/src/Solidary/Entity/SolidaryUserStructure.php - About 3 hrs to fix

                    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

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

                      class MassPTJourney
                      {
                          /**
                           * @var int The id of this journey.
                           * @ORM\Id
                      Severity: Minor
                      Found in api/src/Match/Entity/MassPTJourney.php - About 2 hrs to fix

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

                        class SolidaryAsk
                        {
                            const STATUS_ASKED = 0;
                            const STATUS_REFUSED = 1;
                            const STATUS_PENDING = 2;
                        Severity: Minor
                        Found in api/src/Solidary/Entity/SolidaryAsk.php - About 2 hrs to fix

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

                          class BankTransfer
                          {
                              public const DEFAULT_ID = '999999999999';
                          
                              public const STATUS_INVALID = 0;
                          Severity: Minor
                          Found in api/src/Payment/Entity/BankTransfer.php - About 2 hrs to fix

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

                            class Tools
                            {
                                public const POSITION_ORIGIN = 'origin';
                                public const POSITION_DESTINATION = 'destination';
                            
                            
                            Severity: Minor
                            Found in api/src/DataProvider/Service/RPCv3/Tools.php - About 2 hrs to fix

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

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

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

                                class RelayPointMap
                                {
                                    public const DEFAULT_ID = 999999999999;
                                    public const IMAGE_PATH = 'relaypoints/images/versions';
                                    public const IMAGE_VERSION = 100;
                                Severity: Minor
                                Found in api/src/RelayPoint/Resource/RelayPointMap.php - About 2 hrs to fix

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

                                  class Action
                                  {
                                      const TYPE_AUTO = 0;
                                      const TYPE_TAKING_ACCOUNT_ASK = 1;
                                      const TYPE_SOLUTION_FINDING = 2;
                                  Severity: Minor
                                  Found in api/src/Action/Entity/Action.php - About 2 hrs to fix

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

                                    class SolidaryAnimation
                                    {
                                        const DEFAULT_ID = 999999999999;
                                    
                                        /**
                                    Severity: Minor
                                    Found in api/src/Solidary/Entity/SolidaryAnimation.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

                                        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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language