e107inc/e107

View on GitHub
e107_handlers/admin_ui.php

Summary

Maintainability
F
1 wk
Test Coverage
F
43%

File admin_ui.php has 5070 lines of code (exceeds 2000 allowed). Consider refactoring.
Open

<?php
/*
 * e107 website system
 *
 * Copyright (C) 2008-2012 e107 Inc (e107.org)
Severity: Major
Found in e107_handlers/admin_ui.php - About 1 wk to fix

    Method _modifyListQrySearch has 16 arguments (exceeds 7 allowed). Consider refactoring.
    Open

        public function _modifyListQrySearch($listQry, $searchTerm, $filterOptions, string $tablePath,  string $tableFrom, string $primaryName, $raw, $orderField, $qryAsc, $forceFrom, int $qryFrom, $forceTo, int $perPage, $qryField,  $isfilter, $handleAction)
    Severity: Major
    Found in e107_handlers/admin_ui.php - About 1 hr to fix

      Consider simplifying this complex logical expression.
      Open

              if($field['type'] === 'method' && !empty($field['data']) && ($field['data'] === 'string' || $field['data'] === 'str' || $field['data'] === 'safestr' || $field['data'] === 'int'))
              {
                  $searchable_types[] = 'method';
              }
      Severity: Major
      Found in e107_handlers/admin_ui.php - About 40 mins to fix

        Avoid too many return statements within this method.
        Open

                                return $this;
        Severity: Major
        Found in e107_handlers/admin_ui.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                              return $this;
          Severity: Major
          Found in e107_handlers/admin_ui.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                                return $this;
            Severity: Major
            Found in e107_handlers/admin_ui.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                      return $this;
              Severity: Major
              Found in e107_handlers/admin_ui.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                    return $this;
                Severity: Major
                Found in e107_handlers/admin_ui.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                      return $this;
                  Severity: Major
                  Found in e107_handlers/admin_ui.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                        return $this;
                    Severity: Major
                    Found in e107_handlers/admin_ui.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                              return false;
                      Severity: Major
                      Found in e107_handlers/admin_ui.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                            return $this;
                        Severity: Major
                        Found in e107_handlers/admin_ui.php - About 30 mins to fix

                          Argument 3 (exclude_query) is true but \e_admin_controller::redirect() takes array|string defined at /code/e107_handlers/admin_ui.php:2464
                          Open

                                  $this->redirect($action, $mode, true, $query, $path);
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Property \e_admin_controller_ui->listQrySql has undeclared type \additional
                          Open

                              protected $listQrySql = array();
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Reference to undeclared property \e_admin_controller_ui->_prefs (Did you mean expr->prefs or expr->_pref)
                          Open

                                  $this->_prefs = $config; // XXX Discuss.
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Returning type void but ListDeleteTrigger() is declared to return null
                          Open

                                      return;            
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Reference to undeclared property \e_db->mySQLlanguage
                          Open

                                      $lang = e107::getDb()->mySQLlanguage;
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Suspicious array access to ?mixed
                          Open

                                      if(varset($val['tab']))
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Invalid offset "options" of array type array{}
                          Open

                                              $opts = $this->fields['options'];
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Call to undeclared method \e_object::loadBatch
                          Open

                                  $this->getTreeModel()->setParam('db_query', $this->_modifyListQry(false, false, false, false, $this->listQry))->loadBatch();
                          Severity: Critical
                          Found in e107_handlers/admin_ui.php by phan

                          Default value for string $title can't be true
                          Open

                              public function addTitle($title = true, $meta = true)
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Call with 2 arg(s) to \e_model::save() which only takes 0 arg(s) defined at /code/e107_handlers/model_class.php:1675
                          Open

                                             $this->getModel()->setData($data)->save(false,true);
                          Severity: Info
                          Found in e107_handlers/admin_ui.php by phan

                          Assigning null to property but \e_admin_ui->_model is \e_admin_model
                          Open

                                          $this->_model = null;
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Call to undeclared method \e_object::loadBatch
                          Open

                                  $this->getTreeModel()->setParam('db_query', $this->_modifyListQry(false, false, false, false, $this->listQry))->loadBatch();
                          Severity: Critical
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 2 (vals) is 9 but \e_parse::lanVars() takes array|string defined at /code/e107_handlers/e_parse_class.php:3842
                          Open

                                                          'month9' => $tp->lanVars(LAN_UI_FILTER_PAST_XMONTHS,9),
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Default value for bool $glue can't be string
                          Open

                              public function getHeaderContent($reset = true, $glue = "\n\n")
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Reference to undeclared constant \LAN_MANAGE
                          Open

                                  'main/edit' => LAN_MANAGE,
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 2 (mode) is null but \e_admin_controller::redirect() takes string defined at /code/e107_handlers/admin_ui.php:2464
                          Open

                                  $this->redirect($action, null, $exclude_query, $merge_query);
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          array to string conversion
                          Open

                                          e107::getMessage()->addDebug('Searching for custom batch method: ' .$method. '(' .$selected. ',' .$value. ')');
                          Severity: Info
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 2 (type) is 'delete' but \e_admin_ui::getEventTriggerName() takes null defined at /code/e107_handlers/admin_ui.php:4769
                          Open

                                          if($triggerName = $this->getEventTriggerName($this->getEventName(),'delete')) // trigger for before.
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 4 (options) is array{class:'ui-batch-option class',other:'style="padding-left: 15px"'} but \e_admin_form_ui::option() takes string defined at /code/e107_handlers/form_handler.php:3590
                          Open

                                          array('class' => 'ui-batch-option class', 'other' => 'style="padding-left: 15px"')) : '';
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 4 (options) is array{class:'ui-batch-option class',other:'style="padding-left: 15px"'} but \e_admin_form_ui::option() takes string defined at /code/e107_handlers/form_handler.php:3590
                          Open

                                                  $selectOpt .= $this->option($val, $key, false, array('class' => 'ui-batch-option class', 'other' => 'style="padding-left: 15px"'));
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 2 (vals) is 3 but \e_parse::lanVars() takes array|string defined at /code/e107_handlers/e_parse_class.php:3842
                          Open

                                                          'nmonth3' => $tp->lanVars(LAN_UI_FILTER_NEXT_XMONTHS,3),
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Return type of _modifyListQrySearch() is undeclared type \Custom
                          Open

                              public function _modifyListQrySearch($listQry, $searchTerm, $filterOptions, string $tablePath,  string $tableFrom, string $primaryName, $raw, $orderField, $qryAsc, $forceFrom, int $qryFrom, $forceTo, int $perPage, $qryField,  $isfilter, $handleAction)
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 2 (vals) is int but \e_parse::lanVars() takes array|string defined at /code/e107_handlers/e_parse_class.php:3842
                          Open

                                      $caption = e107::getParser()->lanVars(LAN_UI_BATCH_BOOL_SUCCESS, $cnt, true);
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Call with 2 arg(s) to \e_model::save() which only takes 0 arg(s) defined at /code/e107_handlers/model_class.php:1675
                          Open

                                                  $check = $this->getModel()->setData($node->getData())->save(false, true);
                          Severity: Info
                          Found in e107_handlers/admin_ui.php by phan

                          Returning type null but handleListSearchfieldFilter() is declared to return string
                          Open

                                      return null;
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 4 (options) is array{class:'ui-batch-option class',other:'style="padding-left: 15px"'} but \e_admin_form_ui::option() takes string defined at /code/e107_handlers/form_handler.php:3590
                          Open

                                                      $selectOpt .= $this->option($v, $k, false, array('class' => 'ui-batch-option class', 'other' => 'style="padding-left: 15px"'));
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 1 (request_string) is ?array|?string but \e_admin_request::__construct() takes null|string defined at /code/e107_handlers/admin_ui.php:102
                          Open

                                      $request = new e_admin_request($request);
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Declaration of function getPrimaryName() : false should be compatible with function getPrimaryName() : string defined in /code/e107_handlers/admin_ui.php:3178
                          Open

                              public function getPrimaryName()
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 2 (fields) is true but \e_db::retrieve() takes string defined at /code/e107_handlers/e_db_interface.php:153
                          Open

                                                  $row = $sql->retrieve($query,true);
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Variable $res was undeclared, but array fields are being added to it.
                          Open

                                           $res['caption'] = $data[$search];
                          Severity: Info
                          Found in e107_handlers/admin_ui.php by phan

                          Assigning array{} to property but \e_admin_controller_ui->listQrySql is \additional
                          Open

                              protected $listQrySql = array();
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Property \e_admin_controller_ui->filterQry has undeclared type \Custom
                          Open

                              protected $filterQry;
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 2 (prefix) is true but \e_admin_controller_ui::getTableName() takes false|object defined at /code/e107_handlers/admin_ui.php:3332
                          Open

                                  $tableFrom  = '`'.$this->getTableName(false, true).'`'.($this->getTableName(true) ? ' AS '.$this->getTableName(true) : '');
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Returning type void but GridBatchTrigger() is declared to return null
                          Open

                                      return; // always break on cancel!
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 2 (_posted) is null but \e_admin_ui::triggerEvent() takes array defined at /code/e107_handlers/admin_ui.php:4707
                          Open

                                                  $this->triggerEvent($triggerName, null, $data, $id);
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Call to undeclared method \e_db::hasLanguage
                          Open

                                  $val = e107::getDb()->hasLanguage($curTable, true);
                          Severity: Critical
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 2 (vals) is 3 but \e_parse::lanVars() takes array|string defined at /code/e107_handlers/e_parse_class.php:3842
                          Open

                                                          'month3' => $tp->lanVars(LAN_UI_FILTER_PAST_XMONTHS,3),
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Assigning array{main/edit:mixed} to property but \e_admin_dispatcher->pageTitles is string
                          Open

                              protected $pageTitles = array(
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Invalid operator: left operand of + is bool|resource (expected array or number)
                          Open

                                      $incVal = e107::getDb()->max($this->table, $this->sortField) + 1;
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Call with 2 arg(s) to \e_model::save() which only takes 0 arg(s) defined at /code/e107_handlers/model_class.php:1675
                          Open

                                                  $check = $this->getModel()->setData($node->getData())->save(false, true);
                          Severity: Info
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 1 (number) is bool|string but \number_format() takes float|int
                          Open

                                          <div id='admin-ui-list-total-records' class='span6 col-md-6 right'><span>".e107::getParser()->lanVars(LAN_UI_TOTAL_RECORDS,number_format($this->getController()->getTreeModel()->getTotal())). '</span></div>
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Assigning string to property but \e_admin_request->_id is int
                          Open

                                      $this->_id = preg_replace('/[^\w\-:\.]/', '', $this->_request_qry[$this->_id_key]);
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Assigning false to property but \e_admin_controller_ui->formQuery is \e_admin_model
                          Open

                              protected $formQuery = false; // custom form post query
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 2 (replace) is int but \str_replace() takes array|string
                          Open

                                          $choice = explode('|', str_replace('{ID}', $id, $choice), 3);
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Expected @param annotation for qryField to be before the @param annotation for isfilter
                          Open

                               * @param        $isfilter
                          Severity: Info
                          Found in e107_handlers/admin_ui.php by phan

                          Returning type void but ListBatchTrigger() is declared to return null
                          Open

                                      return; // always break on cancel!
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 2 (type) is 'deleted' but \e_admin_ui::getEventTriggerName() takes null defined at /code/e107_handlers/admin_ui.php:4769
                          Open

                                              if($triggerName = $this->getEventTriggerName($this->getEventName(), 'deleted')) // trigger for after.
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 2 (total) is bool|string but \e_admin_form_ui::pagination() takes int defined at /code/e107_handlers/form_handler.php:2248
                          Open

                                  return $this->pagination(e_REQUEST_SELF.'?'.$paginate,$totalRecords,$fromPage,$perPage,array('template'=>'basic'));
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Assigning array{} to property but \e_admin_dispatcher->adminMenuAliases is string
                          Open

                              protected $adminMenuAliases = array();
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Suspicious array access to ?mixed
                          Open

                                                  if($attributes['data'] !== false)
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 2 (className) is null but \e107::getAddonConfig() takes string defined at /code/e107_handlers/e107_class.php:2962
                          Open

                                  $tmp = e107::getAddonConfig('e_admin', null, 'config', $this);
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 2 (vals) is int but \e_parse::lanVars() takes array|string defined at /code/e107_handlers/e_parse_class.php:3842
                          Open

                                      $caption = e107::getParser()->lanVars(LAN_UI_BATCH_REVERSED_SUCCESS, $cnt, true);
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Call with 2 arg(s) to \e_model::save() which only takes 0 arg(s) defined at /code/e107_handlers/model_class.php:1675
                          Open

                                                  $check = $this->getModel()->setData($node->getData())->save(false, true);
                          Severity: Info
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 2 (_posted) is null but \e_admin_ui::triggerEvent() takes array defined at /code/e107_handlers/admin_ui.php:4707
                          Open

                                              if($halt = $this->triggerEvent($triggerName, null, $data, $id))
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Suspicious array access to ?mixed
                          Open

                                          $var[$key]['link'] .= '&amp;tab=' .$val['tab'];
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Default value for object $prefix can't be false
                          Open

                              public function getTableName($alias = false, $prefix = false)
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Call to undeclared method \e_admin_controller_ui::handleCommaBatch
                          Open

                                              $this->handleCommaBatch($selected, $field, $value, $trigger[0]);
                          Severity: Critical
                          Found in e107_handlers/admin_ui.php by phan

                          Returning type void but doAfterSubmit() is declared to return null
                          Open

                                  return;
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Assigning null to property but \e_admin_ui->_model is \e_admin_model
                          Open

                                              $this->_model = null;
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Call to undeclared method \e_db::hasLanguage
                          Open

                                  if($curTable != e107::getDb()->hasLanguage($curTable))
                          Severity: Critical
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 4 (options) is array{class:'ui-batch-option class',other:'style="padding-left: 15px"'} but \e_admin_form_ui::option() takes string defined at /code/e107_handlers/form_handler.php:3590
                          Open

                                          array('class' => 'ui-batch-option class', 'other' => 'style="padding-left: 15px"')) : '';
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 2 (vals) is 6 but \e_parse::lanVars() takes array|string defined at /code/e107_handlers/e_parse_class.php:3842
                          Open

                                                          'month6' => $tp->lanVars(LAN_UI_FILTER_PAST_XMONTHS,6),
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 2 (vals) is 6 but \e_parse::lanVars() takes array|string defined at /code/e107_handlers/e_parse_class.php:3842
                          Open

                                                          'nmonth6' => $tp->lanVars(LAN_UI_FILTER_NEXT_XMONTHS,6),
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Property \e_admin_response->_title has undeclared type \unknown_type
                          Open

                              protected $_title = array();
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Returning type void but doAfterSubmit() is declared to return null
                          Open

                                      return;
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Return type of _modifyListQry() is undeclared type \Custom
                          Open

                              protected function _modifyListQry($raw = false, $isfilter = false, $forceFrom = false, $forceTo = false, $listQry = '')
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 2 (className) is null but \e107::getAddonConfig() takes string defined at /code/e107_handlers/e107_class.php:2962
                          Open

                                      e107::getAddonConfig('e_admin',null,'process', $this, $id);
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Saw an @param annotation for var, but it was not found in the param list of function _isSearchField($field, string $searchQuery) : bool
                          Open

                               * @param array $var
                          Severity: Info
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 2 (vals) is 0 but \e_parse::lanVars() takes array|string defined at /code/e107_handlers/e_parse_class.php:3842
                          Open

                                  $caption = e107::getParser()->lanVars(LAN_UI_BATCH_BOOL_SUCCESS, $c, true);
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          When appending to a value of type array{}, found an array access index of type null, but expected the index to be of type int|string
                          Open

                                  $forms[$id] = array(
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 4 (options) is array{class:'ui-batch-option class',other:'style="padding-left: 15px"'} but \e_admin_form_ui::option() takes string defined at /code/e107_handlers/form_handler.php:3590
                          Open

                                          array('class' => 'ui-batch-option class', 'other' => 'style="padding-left: 15px"')) : '';
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Call to deprecated function \getperms() defined at /code/class2.php:1322
                          Open

                                      if(isset($val['perm']) && $val['perm']!=='' && !getperms($val['perm']))
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Call to undeclared method \e_admin_controller_ui::handleCommaBatch
                          Open

                                              $this->handleCommaBatch($selected, $field, array_keys($classes), $trigger[0] === 'ucdelall' ? 'clearAll' : 'addAll');
                          Severity: Critical
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 2 (tree_models) is array<string>|array<string>|array<string>|array<string>|array<string>|array<string>|array<string>|array{}</string></string></string></string></string></string></string> but \e_admin_form_ui::renderListForm() takes \e_admin_tree_model defined at /code/e107_handlers/form_handler.php:7380
                          Open

                                  return $this->renderListForm($options, $tree, $ajax);
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Assigning array{} to property but \e_admin_response->_title is \unknown_type
                          Open

                              protected $_title = array();
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Default value for bool $return can't be string
                          Open

                              public function run($run_header = true, $return = 'render')
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Call to undeclared method \e_admin_controller_ui::handleCommaBatch
                          Open

                                              $this->handleCommaBatch($selected, $field, $class, $trigger[0]);
                          Severity: Critical
                          Found in e107_handlers/admin_ui.php by phan

                          Call to undeclared method \e_object::loadBatch
                          Open

                                      $this->getTreeModel()->setParam('db_query', $this->_modifyListQry(false, false, false, false, $this->listQry))->loadBatch(true);
                          Severity: Critical
                          Found in e107_handlers/admin_ui.php by phan

                          Returning type void but ListDeleteTrigger() is declared to return null
                          Open

                                      return; // always break on cancel!
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Returning type void but ListDeleteTrigger() is declared to return null
                          Open

                                      return; // User confirmation expected
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 3 (pid) is false but \e_admin_form_ui::setAdminAddonModel() takes string defined at /code/e107_handlers/admin_ui.php:7482
                          Open

                                  $this->setAdminAddonModel($tree[$id], array_keys($fields), $pid);
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Method \e_admin_ui::renderHelp is declared to return string but has no return value
                          Open

                              public function renderHelp()
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 4 (options) is array{class:'ui-batch-option class',other:'style="padding-left: 15px"'} but \e_admin_form_ui::option() takes string defined at /code/e107_handlers/form_handler.php:3590
                          Open

                                          array('class' => 'ui-batch-option class', 'other' => 'style="padding-left: 15px"')) : '';
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 4 (options) is array{class:'ui-batch-option class',other:'style="padding-left: 15px"'} but \e_admin_form_ui::option() takes string defined at /code/e107_handlers/form_handler.php:3590
                          Open

                                          array('class' => 'ui-batch-option class', 'other' => 'style="padding-left: 15px"')) : '';
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 2 (vals) is 9 but \e_parse::lanVars() takes array|string defined at /code/e107_handlers/e_parse_class.php:3842
                          Open

                                                          'nmonth9' => $tp->lanVars(LAN_UI_FILTER_NEXT_XMONTHS,9),
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Returning type void but doAfterSubmit() is declared to return null
                          Open

                                      return;
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 2 (value) is ?'\'\''|?string but \e_admin_tree_model::batchUpdate() takes string defined at /code/e107_handlers/model_class.php:4016
                          Open

                                  $cnt = $this->getTreeModel()->batchUpdate($field, $val, $selected, true, false);
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Returning type null but SortAjaxPage() is declared to return void
                          Open

                                      return null;
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          Call to undeclared method \e_object::loadBatch
                          Open

                                  $this->getTreeModel()->setParam('db_query', $this->_modifyListQry(false, false, 0, false, $this->listQry))->loadBatch();
                          Severity: Critical
                          Found in e107_handlers/admin_ui.php by phan

                          Argument 2 (vals) is int but \e_parse::lanVars() takes array|string defined at /code/e107_handlers/e_parse_class.php:3842
                          Open

                                      $legend = e107::getParser()->lanVars(LAN_UI_EDIT_LABEL, $controller->getId()); // sprintXXX(LAN_UI_EDIT_LABEL, $controller->getId());
                          Severity: Minor
                          Found in e107_handlers/admin_ui.php by phan

                          There are no issues that match your filters.

                          Category
                          Status