symphonycms/symphony-2

View on GitHub

Showing 714 of 844 total issues

Method splitFunctionArguments has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    final public function splitFunctionArguments($arguments)
    {
        General::ensureType([
            'arguments' => ['var' => $arguments, 'type' => 'string'],
        ]);
Severity: Minor
Found in symphony/lib/toolkit/class.databasestatement.php - About 1 hr to fix

    Method __findDatasourceOrder has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private function __findDatasourceOrder($dependenciesList)
        {
            if (!is_array($dependenciesList) || empty($dependenciesList)) {
                return;
            }
    Severity: Minor
    Found in symphony/lib/toolkit/class.frontendpage.php - About 1 hr to fix

      Method hash has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public static function hash($input, array $options = [])
          {
              if (empty($options['salt'])) {
                  $salt = self::generateSalt(self::SALT_LENGTH);
              } else {
      Severity: Minor
      Found in symphony/lib/toolkit/cryptography/class.pbkdf2.php - About 1 hr to fix

        Method processOutputParameters has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function processOutputParameters(Entry $entry, $field_id, array $data)
            {
                if (!isset($this->dsParamPARAMOUTPUT)) {
                    return;
                }
        Severity: Minor
        Found in symphony/lib/toolkit/data-sources/class.datasource.section.php - About 1 hr to fix

          Method buildFilterSQL has 30 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function buildFilterSQL($filter, array $columns, &$joins, &$where)
              {
                  if (Symphony::Log()) {
                      Symphony::Log()->pushDeprecateWarningToLog(
                          get_called_class() . '::buildFilterSQL()',
          Severity: Minor
          Found in symphony/lib/toolkit/class.field.php - About 1 hr to fix

            Method set has 30 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public static function set($code, $checkStatus = true)
                {
                    if (!$code || $code == self::get()) {
                        return;
                    }
            Severity: Minor
            Found in symphony/lib/toolkit/class.lang.php - About 1 hr to fix

              Method fetchByID has 30 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public static function fetchByID($id)
                  {
                      $return_single = false;
              
                      if (is_null($id)) {
              Severity: Minor
              Found in symphony/lib/toolkit/class.authormanager.php - About 1 hr to fix

                Method groupRecords has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function groupRecords($records)
                    {
                        if (!is_array($records) || empty($records)) {
                            return;
                        }
                Severity: Minor
                Found in symphony/lib/toolkit/fields/field.date.php - About 1 hr to fix

                  Method displayPublishPanel has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function displayPublishPanel(XMLElement &$wrapper, $data = null, $flagWithError = null, $fieldnamePrefix = null, $fieldnamePostfix = null, $entry_id = null)
                      {
                          $value = null;
                  
                          if (isset($data['value'])) {
                  Severity: Minor
                  Found in symphony/lib/toolkit/fields/field.taglist.php - About 1 hr to fix

                    Method processRecordGroup has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function processRecordGroup($element, array $group)
                        {
                            $xGroup = new XMLElement($element, null, $group['attr']);
                    
                            if (is_array($group['records']) && !empty($group['records'])) {
                    Severity: Minor
                    Found in symphony/lib/toolkit/data-sources/class.datasource.section.php - About 1 hr to fix

                      Method createSystemDateFilters has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          private function createSystemDateFilters(&$wrapper)
                          {
                              $filters = $_GET['filter'];
                              $dateField = new FieldDate;
                      
                      
                      Severity: Minor
                      Found in symphony/content/content.publish.php - About 1 hr to fix

                        Function success has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                        success: function(result) {
                                            // offline DOM manipulation
                                            sections.detach();
                        
                                            if(result.sections.length) {
                        Severity: Minor
                        Found in symphony/assets/js/src/backend.views.js - About 1 hr to fix

                          Function listtoken has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  var listtoken = function(input, suggestions, result) {
                                      var clone = suggestions.clone(),
                                          help = clone.find('.help:first'),
                                          trigger = input.attr('data-trigger'),
                                          prefix;
                          Severity: Minor
                          Found in symphony/assets/js/src/symphony.suggestions.js - About 1 hr to fix

                            Method open has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function open($flag = self::APPEND, $mode = 0777)
                                {
                                    if (!file_exists($this->_log_path)) {
                                        $flag = self::OVERWRITE;
                                    }
                            Severity: Minor
                            Found in symphony/lib/core/class.log.php - About 1 hr to fix

                              Method renderHtml has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  protected static function renderHtml($e)
                                  {
                                      $page = PageManager::fetchPageByType('404');
                                      $previous_exception = Frontend::instance()->getException();
                              
                              
                              Severity: Minor
                              Found in symphony/lib/core/class.frontendpagenotfoundexceptionrenderer.php - About 1 hr to fix

                                Method sort has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function sort(&$sort, &$order, $params)
                                    {
                                        $section = $params['current-section'];
                                        $filters = '';
                                        // Format the filter query string
                                Severity: Minor
                                Found in symphony/content/content.publish.php - About 1 hr to fix

                                  Method fetchByPage has 9 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      public static function fetchByPage($page = 1, $section_id, $entriesPerPage, $where = null, $joins = null, $group = false, $records_only = false, $buildentries = true, array $element_names = null)
                                  Severity: Major
                                  Found in symphony/lib/toolkit/class.entrymanager.php - About 1 hr to fix

                                    Method Checkbox has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public static function Checkbox($name, $value, $description = null, XMLElement &$wrapper = null, $help = null)
                                        {
                                            General::ensureType(array(
                                                'name' => array('var' => $name, 'type' => 'string'),
                                                'value' => array('var' => $value, 'type' => 'string', 'optional' => true),
                                    Severity: Minor
                                    Found in symphony/lib/toolkit/class.widget.php - About 1 hr to fix

                                      Method fetch has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public static function fetch($section_id = null, $order = 'ASC', $sortfield = 'name')
                                          {
                                              if (Symphony::Log()) {
                                                  Symphony::Log()->pushDeprecateWarningToLog('SectionManager::fetch()', 'SectionManager::select()');
                                              }
                                      Severity: Minor
                                      Found in symphony/lib/toolkit/class.sectionmanager.php - About 1 hr to fix

                                        Method exists has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function exists()
                                            {
                                                if (!$this->get('id') || !$this->_handle) {
                                                    return false;
                                                }
                                        Severity: Minor
                                        Found in symphony/lib/toolkit/class.field.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language