Covivo/mobicoop

View on GitHub

Showing 157 of 1,619 total issues

User has 184 functions (exceeds 20 allowed). Consider refactoring.
Open

class User extends GamificationEntity implements ResourceInterface, UserInterface, EquatableInterface, \JsonSerializable
{
    public const MAX_DEVIATION_TIME = 600;
    public const MAX_DEVIATION_DISTANCE = 10000;

Severity: Major
Found in client/src/MobicoopBundle/User/Entity/User.php - About 3 days to fix

    Solidary has 168 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class Solidary
    {
        public const DEFAULT_ID = 999999999999;
    
        // status for a solidary record
    Severity: Major
    Found in api/src/Solidary/Entity/Solidary.php - About 3 days to fix

      Ad has 134 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class Ad
      {
          public const DEFAULT_ID = 999999999999;
      
          public const ROLE_DRIVER = 1;
      Severity: Major
      Found in api/src/Carpool/Ressource/Ad.php - About 2 days to fix

        Structure has 123 functions (exceeds 20 allowed). Consider refactoring.
        Open

        class Structure
        {
            /**
             * @var int the id of this structure
             *
        Severity: Major
        Found in api/src/Solidary/Entity/Structure.php - About 2 days to fix

          Image has 118 functions (exceeds 20 allowed). Consider refactoring.
          Open

          class Image
          {
              /**
               * @var int the id of this image
               *
          Severity: Major
          Found in api/src/Image/Entity/Image.php - About 2 days to fix

            Ad has 118 functions (exceeds 20 allowed). Consider refactoring.
            Open

            class Ad extends GamificationEntity implements ResourceInterface, \JsonSerializable
            {
                public const ROLE_DRIVER = 1;
                public const ROLE_PASSENGER = 2;
                public const ROLE_DRIVER_OR_PASSENGER = 3;
            Severity: Major
            Found in client/src/MobicoopBundle/Carpool/Entity/Ad.php - About 2 days to fix

              Result has 115 functions (exceeds 20 allowed). Consider refactoring.
              Open

              class Result
              {
                  public const DEFAULT_ID = 999999999999;
                  public const RDEX_PROVIDER = 1;
                  public const STANDARD_RDEX_PROVIDER = 2;
              Severity: Major
              Found in api/src/Carpool/Entity/Result.php - About 2 days to fix

                ResultItem has 114 functions (exceeds 20 allowed). Consider refactoring.
                Open

                class ResultItem
                {
                    public const DEFAULT_ID = 999999999999;
                
                    /**
                Severity: Major
                Found in api/src/Carpool/Entity/ResultItem.php - About 2 days to fix

                  SolidaryVolunteer has 105 functions (exceeds 20 allowed). Consider refactoring.
                  Open

                  class SolidaryVolunteer
                  {
                      const DEFAULT_ID = 999999999999;
                      const TYPE = "volunteer";
                      const AUTHORIZED_GENERIC_FILTERS = ['familyName','givenName','email'];
                  Severity: Major
                  Found in api/src/Solidary/Entity/SolidaryVolunteer.php - About 2 days to fix

                    UserExport has 91 functions (exceeds 20 allowed). Consider refactoring.
                    Open

                    class UserExport
                    {
                        public const TRUE = 'Oui';
                        public const FALSE = 'Non';
                    
                    
                    Severity: Major
                    Found in api/src/User/Entity/UserExport.php - About 1 day to fix

                      SolidaryUser has 86 functions (exceeds 20 allowed). Consider refactoring.
                      Open

                      class SolidaryUser
                      {
                          public const DEFAULT_MAX_DISTANCE = 20000; // meters
                          public const AUTHORIZED_GENERIC_FILTERS = ['q'];
                      
                      
                      Severity: Major
                      Found in api/src/Solidary/Entity/SolidaryUser.php - About 1 day to fix

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

                        class Mass
                        {
                            public const STATUS_INCOMING = 0;
                            public const STATUS_VALID = 1;
                            public const STATUS_INVALID = 2;
                        Severity: Major
                        Found in api/src/Match/Entity/Mass.php - About 1 day to fix

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

                          class Address implements \JsonSerializable
                          {
                              public const DEFAULT_ID = 999999999999;
                              public const HOME_ADDRESS = 'homeAddress';
                          
                          
                          Severity: Major
                          Found in api/src/Geography/Entity/Address.php - About 1 day to fix

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

                            class Community
                            {
                                public const AUTO_VALIDATION = 0;
                                public const MANUAL_VALIDATION = 1;
                                public const DOMAIN_VALIDATION = 2;
                            Severity: Major
                            Found in api/src/Community/Entity/Community.php - About 1 day to fix

                              Deserializer has 74 functions (exceeds 20 allowed). Consider refactoring.
                              Open

                              class Deserializer
                              {
                                  public const DATETIME_FORMAT = \DateTime::ISO8601;
                                  public const SETTER_PREFIX = 'set';
                              
                              
                              Severity: Major
                              Found in client/src/MobicoopBundle/Api/Service/Deserializer.php - About 1 day to fix

                                UserController has 72 functions (exceeds 20 allowed). Consider refactoring.
                                Open

                                class UserController extends AbstractController
                                {
                                    use HydraControllerTrait;
                                
                                    private const ALLOWED_TAB_TYPE = ['carpool', 'direct', 'solidary'];
                                Severity: Major
                                Found in client/src/MobicoopBundle/User/Controller/UserController.php - About 1 day to fix

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

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

                                    Image has 70 functions (exceeds 20 allowed). Consider refactoring.
                                    Open

                                    class Image extends GamificationEntity implements ResourceInterface, \JsonSerializable
                                    {
                                        /**
                                         * @var int The id of this image.
                                         *
                                    Severity: Major
                                    Found in client/src/MobicoopBundle/Image/Entity/Image.php - About 1 day to fix

                                      SsoUser has 70 functions (exceeds 20 allowed). Consider refactoring.
                                      Open

                                      class SsoUser
                                      {
                                          public const GENDER_MALE = 'male';
                                          public const GENDER_FEMALE = 'female';
                                      
                                      
                                      Severity: Major
                                      Found in api/src/User/Entity/SsoUser.php - About 1 day to fix

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

                                        class UserManager
                                        {
                                            private $entityManager;
                                            private $imageManager;
                                            private $authItemRepository;
                                        Severity: Major
                                        Found in api/src/User/Service/UserManager.php - About 1 day to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language