e107inc/e107

View on GitHub
e107_handlers/form_handler.php

Summary

Maintainability
F
1 wk
Test Coverage
C
74%

File form_handler.php has 5402 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/form_handler.php - About 1 wk to fix

    Method form_textarea has 9 arguments (exceeds 7 allowed). Consider refactoring.
    Open

        public function form_textarea($form_name, $form_columns, $form_rows, $form_value, $form_js = '', $form_style = '', $form_wrap = '', $form_readonly = '', $form_tooltip = '') {
    Severity: Major
    Found in e107_handlers/form_handler.php - About 45 mins to fix

      Consider simplifying this complex logical expression.
      Open

                   if ((in_array($key, $columnPref) || ($key === 'options' && isset($val['title'])) || (vartrue($val['forced']))) && !vartrue($val['nolist']))
                  {
                      $cl = (vartrue($val['thclass'])) ? " class='".$val['thclass']."'" : '';
      
                      $aClass = ($key === $field) ? "sorted-" . $sorted : null;
      Severity: Major
      Found in e107_handlers/form_handler.php - About 40 mins to fix

        Method form_text has 8 arguments (exceeds 7 allowed). Consider refactoring.
        Open

            public function form_text($form_name, $form_size, $form_value, $form_maxlength = FALSE, $form_class = 'tbox form-control', $form_readonly = '', $form_tooltip = '', $form_js = '') {
        Severity: Major
        Found in e107_handlers/form_handler.php - About 35 mins to fix

          Method renderInline has 8 arguments (exceeds 7 allowed). Consider refactoring.
          Open

              public function renderInline($dbField, $pid, $fieldName, $curVal, $linkText, $type='text', $array=null, $options=array())
          Severity: Major
          Found in e107_handlers/form_handler.php - About 35 mins to fix

            Method form_password has 8 arguments (exceeds 7 allowed). Consider refactoring.
            Open

                public function form_password($form_name, $form_size, $form_value, $form_maxlength = FALSE, $form_class = 'tbox form-control', $form_readonly = '', $form_tooltip = '', $form_js = '') {
            Severity: Major
            Found in e107_handlers/form_handler.php - About 35 mins to fix

              Avoid too many return statements within this method.
              Open

                                      return $tp->toGlyph('fa-file','size=2x');
              Severity: Major
              Found in e107_handlers/form_handler.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                    return $this->renderInline($field, $id, $attributes['title'], $value, $dispValue, 'select', $wparms, array('class'=>'e-editable-boolean '.$styleClass));
                Severity: Major
                Found in e107_handlers/form_handler.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

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

                    Avoid too many return statements within this method.
                    Open

                                    return e107::getMedia()->previewTag($firstItem, $parms);
                    Severity: Major
                    Found in e107_handlers/form_handler.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                          return ($value ?: vartrue($parms['empty']));
                      Severity: Major
                      Found in e107_handlers/form_handler.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                            return $this->renderInline($field,$id,$attributes['title'],$value,substr($value,0,50). '...','textarea'); //FIXME.
                        Severity: Major
                        Found in e107_handlers/form_handler.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                              return $this->renderInline($field, $id, $attributes['title'], $_value, $value, 'select', $wparms);    
                          Severity: Major
                          Found in e107_handlers/form_handler.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

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

                              Avoid too many return statements within this method.
                              Open

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

                                Avoid too many return statements within this method.
                                Open

                                                    return "<span class='label label-important label-danger' title='".$className. '::' .$meth."'>Missing Method</span>";
                                Severity: Major
                                Found in e107_handlers/form_handler.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                      return $tp->toImage($value, $thparms);
                                  Severity: Major
                                  Found in e107_handlers/form_handler.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                            return "Type 'files' must have a data type of 'array' or 'json'";
                                    Severity: Major
                                    Found in e107_handlers/form_handler.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

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

                                        Avoid too many return statements within this method.
                                        Open

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

                                          Avoid too many return statements within this method.
                                          Open

                                                              return $tp->replaceConstants(vartrue($parms['pre']) . $value, varset($parms['replace_mod'], 'abs'));
                                          Severity: Major
                                          Found in e107_handlers/form_handler.php - About 30 mins to fix

                                            Avoid too many return statements within this method.
                                            Open

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

                                              Avoid too many return statements within this method.
                                              Open

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

                                                Suspicious array access to nullable ?array|?array{class:'tbox number e-spinner input-small '}|?array{class:mixed,size:15}|?array{class:mixed}|?array{max:mixed,size:15,class:'tbox number e-spinner input-small '|mixed,type:'number'}|?array{size:15}|?array{type:'number'}|?array{}|array{pattern:'^'}
                                                Open

                                                                $attributes['step'] = vartrue($options['step'], '1');
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 4 (extras) is array|array{class:'btn btn-sm btn-default'}|array{h:190}|array{h:mixed,w:206|mixed,help:mixed,media:'_common'|mixed}|array{help:mixed,media:'_common'|mixed}|array{icon:mixed,h:190|mixed,w:206|mixed,help:mixed,media:'_common'|mixed}|array{media:'_common'}|array{media:mixed}|array{title:'Add'}|array{type:'icon'}|array{w:206}|array{w:mixed,help:mixed,media:'_common'|mixed}|array{} but \e_form::mediaUrl() takes null defined at /code/e107_handlers/form_handler.php:1100
                                                Open

                                                            $editIcon        = $this->mediaUrl($cat, $tp->toGlyph('fa-plus', array('fw'=>1)), $name_id,$parms);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 3 (dep) is 'jquery' but \e107::css() takes null defined at /code/e107_handlers/e107_class.php:2692
                                                Open

                                                        e107::css('core', 'bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css', 'jquery');
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to nullable ?array
                                                Open

                                                        $options_on = varset($options['enabled'], array());
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to nullable ?array
                                                Open

                                                        if(!empty($options['expandit']) || vartrue($options['class']) === 'e-expandit' ) // See admin->prefs 'Single Login' for an example.
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

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

                                                      $defaults['selectize'] = array(
                                                Severity: Info
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 2 (arr2) is ?array but \array_replace_recursive() takes array
                                                Open

                                                      $options = array_replace_recursive($defaults, $options);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to nullable ?array|array{pattern:mixed}
                                                Open

                                                        $options['required'] = varset($options['required'], 1);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to nullable ?array|?array{class:'tbox number e-spinner input-small '}|?array{class:mixed,size:15}|?array{class:mixed}|?array{max:mixed,size:15,class:'tbox number e-spinner input-small '|mixed,type:'number'}|?array{size:15}|?array{type:'number'}|?array{}|array{pattern:'^'}
                                                Open

                                                            if (varset($options['min'], 0) < 0)
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 4 (extras) is array|array{class:'btn btn-sm btn-default'}|array{h:190}|array{h:mixed,w:206|mixed,help:mixed,media:'_common'|mixed}|array{help:mixed,media:'_common'|mixed}|array{icon:mixed,h:190|mixed,w:206|mixed,help:mixed,media:'_common'|mixed}|array{media:'_common'}|array{media:mixed}|array{type:'icon'}|array{w:206}|array{w:mixed,help:mixed,media:'_common'|mixed}|array{} but \e_form::mediaUrl() takes null defined at /code/e107_handlers/form_handler.php:1100
                                                Open

                                                            $editIcon       = $this->mediaUrl($cat, $tp->toGlyph('fa-edit', array('fw'=>1)), $name_id,$parms);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 1 (id) is string but \user_class::getName() takes int defined at /code/e107_handlers/userclass_class.php:954
                                                Open

                                                                $cname = e107::getUserClass()->getName($cls);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to nullable ?array|?array{class:'tbox number e-spinner input-small '}|?array{class:mixed,size:15}|?array{class:mixed}|?array{size:15}|?array{}|array{type:'number'}
                                                Open

                                                        $attributes['min'] = vartrue($options['min'], '0');
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 1 (input) is 1 but \str_pad() takes string
                                                Open

                                                                    $attributes['step'] = "0." . str_pad(1, (int) $options['decimals'], 0, STR_PAD_LEFT);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 3 (pad_string) is 0 but \str_pad() takes string
                                                Open

                                                                    $attributes['step'] = "0." . str_pad(1, (int) $options['decimals'], 0, STR_PAD_LEFT);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Saw possibly unextractable annotation for a fragment of comment '* @param mixed default': after mixed, did not see an element name (will guess based on comment order)
                                                Open

                                                     * @param mixed default
                                                Severity: Info
                                                Found in e107_handlers/form_handler.php by phan

                                                Invalid offset "btn-label" of array type array{}
                                                Open

                                                        $striped = (vartrue($options['btn-label'])) ? ' progress-striped active' : '';    
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

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

                                                        $initTab = varset($options['active'], false);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 3 (parms) is array|array{glyph:1}|array{h:64}|array{icon:1}|array{legacyPath:'\x7be_IMAGE\x7dicons'}|array{legacyPath:mixed,icon:1,glyph:1,w:64,h:64,media:'_icon'}|array{media:'_icon'}|array{w:64} but \e_form::mediapicker() takes string defined at /code/e107_handlers/form_handler.php:1406
                                                Open

                                                        return $this->mediapicker($name, $default, $options);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to nullable ?array
                                                Open

                                                        $options_off = varset($options['disabled'], array());
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

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

                                                            'glyphs'        => vartrue($options['glyphs'],false) // 1|0
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

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

                                                        $class = vartrue($options['class']);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Invalid offset "show" of array type array{btn-label:mixed,id:mixed,label:mixed}
                                                Open

                                                            $text .= '<a id="'.$buttonId.'" data-loading-text="'.$loading.'" data-progress-interval="'.$interval.'" data-progress-target="'.$target.'" data-progress="' . $options['url'] . '" data-progress-mode="'.varset($options['mode'],0).'" data-progress-show="'.varset($options['show'],0).'" data-progress-hide="'.$buttonId.'" class="btn btn-primary e-progress" >'.$options['btn-label'].'</a>';
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious type null of a variable or expression used to build a string. (Expected type to be able to cast to a string)
                                                Open

                                                            $text .= '<a id="'.$buttonId.'" data-loading-text="'.$loading.'" data-progress-interval="'.$interval.'" data-progress-target="'.$target.'" data-progress="' . $options['url'] . '" data-progress-mode="'.varset($options['mode'],0).'" data-progress-show="'.varset($options['show'],0).'" data-progress-hide="'.$buttonId.'" class="btn btn-primary e-progress" >'.$options['btn-label'].'</a>';
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 2 (args) is ?array but \array_merge() takes array
                                                Open

                                                        $options_on = array_merge($options_on, $options);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to nullable ?array
                                                Open

                                                            'type'  => varset($options['type']) === 'email' ? 'email' : 'text',
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to nullable ?array|array{pattern:mixed}|array{required:mixed}
                                                Open

                                                        $options['class'] = vartrue($options['class'],'e-password tbox');
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Parameter $value has undeclared type \number
                                                Open

                                                    public function progressBar($name,$value,$options=array())
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 2 (callback) is array{0:\e_form,1:'_uc_checkbox_cb'} but \user_class::vetted_tree() takes \function|object|string defined at /code/e107_handlers/userclass_class.php:720
                                                Open

                                                                '.$this->_uc->vetted_tree($name, array($this, '_uc_checkbox_cb'), $current_value, $uc_options, $field_options).'
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to ?mixed
                                                Open

                                                            $inner .= $tab['text'];
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 3 (user_options) is ?array|?array{class:''|'tbox',selectize:array{copyClassesToDropdown:true}|array{dropdownClass:'selectize-dropdown'}|array{dropdownContentClass:'selectize-dropdown-content'}|array{inputClass:'form-control selectize-input '}|array{wrapperClass:'selectize-control'}|mixed,typeahead:mixed,data-source:string}|?array{class:''}|?array{class:'tbox'}|?array{data-source:string}|?array{selectize:array{copyClassesToDropdown:true}}|?array{selectize:array{dropdownClass:'selectize-dropdown'}}|?array{selectize:array{dropdownContentClass:'selectize-dropdown-content'}}|?array{selectize:array{inputClass:'form-control selectize-input '}}|?array{selectize:array{wrapperClass:'selectize-control'}}|?array{selectize:mixed,class:'tbox'}|?array{size:mixed,class:''|'tbox',selectize:array{copyClassesToDropdown:true}|array{dropdownClass:'selectize-dropdown'}|array{dropdownContentClass:'selectize-dropdown-content'}|array{inputClass:'form-control selectize-input '}|array{wrapperClass:'selectize-control'}|mixed,typeahead:mixed,data-source:string}|?array{typeahead:mixed,class:''|'tbox',selectize:array{copyClassesToDropdown:true}|array{dropdownClass:'selectize-dropdown'}|array{dropdownContentClass:'selectize-dropdown-content'}|array{inputClass:'form-control selectize-input '}|array{wrapperClass:'selectize-control'}|mixed} but \e_form::format_options() takes array|string defined at /code/e107_handlers/form_handler.php:4411
                                                Open

                                                        $options = $this->format_options('text', $name, $options);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Invalid offset "mode" of array type array{btn-label:mixed,id:mixed,label:mixed}
                                                Open

                                                            $text .= '<a id="'.$buttonId.'" data-loading-text="'.$loading.'" data-progress-interval="'.$interval.'" data-progress-target="'.$target.'" data-progress="' . $options['url'] . '" data-progress-mode="'.varset($options['mode'],0).'" data-progress-show="'.varset($options['show'],0).'" data-progress-hide="'.$buttonId.'" class="btn btn-primary e-progress" >'.$options['btn-label'].'</a>';
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 5 (opt_options) is array but \user_class::vetted_tree() takes string defined at /code/e107_handlers/userclass_class.php:720
                                                Open

                                                                '.$this->_uc->vetted_tree($name, array($this, '_uc_checkbox_cb'), $current_value, $uc_options, $field_options).'
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Invalid offset "class" of array type array{id:mixed}|array{}
                                                Open

                                                        $tabClass = varset($options['class'],null);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 2 (options) is string but \e_parse::thumbUrl() takes array defined at /code/e107_handlers/e_parse_class.php:2531
                                                Open

                                                        $blankImg     = $tp->thumbUrl(e_IMAGE. 'generic/blank_avatar.jpg',$attr);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

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

                                                            'type'          => varset($options['type'],'record'), // page|record
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 1 (parm) is array{tmpl_prefix:mixed,total:int,amount:int,current:int,url:string,type:mixed,glyphs:mixed} but \nextprev_shortcode() takes string defined at /code/e107_core/shortcodes/single/nextprev.php:58
                                                Open

                                                        return nextprev_shortcode($nextprev);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Saw possibly unextractable annotation for a fragment of comment '* @param string name': after string, did not see an element name (will guess based on comment order)
                                                Open

                                                     * @param string name
                                                Severity: Info
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 4 (extras) is array|array{action:'dialog'}|array{mode:'main'} but \e_form::mediaUrl() takes null defined at /code/e107_handlers/form_handler.php:1100
                                                Open

                                                        $ret .= $this->mediaUrl($cat, $label,$name_id,$sc_parameters);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 3 (user_options) is ?array|?array{class:mixed}|?array{pattern:mixed,required:mixed,class:mixed}|?array{pattern:mixed}|?array{required:mixed}|?array{size:mixed,pattern:mixed,required:mixed,class:mixed} but \e_form::format_options() takes array|string defined at /code/e107_handlers/form_handler.php:4411
                                                Open

                                                        $options = $this->format_options('text', $name, $options);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 2 (args) is ?array but \array_merge() takes array
                                                Open

                                                        $options_off = array_merge($options_off, $options);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Saw possibly unextractable annotation for a fragment of comment '* @param string target - e_REQUEST_URI by default': after string, did not see an element name (will guess based on comment order)
                                                Open

                                                     * @param string target - e_REQUEST_URI by default
                                                Severity: Info
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to nullable ?array
                                                Open

                                                        if (!vartrue($options['class']))
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument #2 of this call to \str_pad is typically a literal or constant but isn't, but argument #1 (which is typically a variable) is a literal or constant. The arguments may be in the wrong order.
                                                Open

                                                                    $attributes['step'] = "0." . str_pad(1, (int) $options['decimals'], 0, STR_PAD_LEFT);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 3 (selected) is string but \e_form::select() takes bool|false defined at /code/e107_handlers/form_handler.php:3325
                                                Open

                                                        return $this->select($name, $arr, $value, $options, $placeholder);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 3 (user_options) is ?array|?array{class:'tbox number e-spinner input-small '}|?array{class:mixed,size:15}|?array{class:mixed}|?array{decimals:mixed,max:mixed,size:15,class:'tbox number e-spinner input-small '|mixed,type:'number',pattern:'^'}|?array{max:mixed,size:15,class:'tbox number e-spinner input-small '|mixed,type:'number'}|?array{pattern:'^'}|?array{pattern:mixed,max:mixed,size:15,class:'tbox number e-spinner input-small '|mixed,type:'number'}|?array{size:15}|?array{type:'number'}|?array{} but \e_form::format_options() takes array|string defined at /code/e107_handlers/form_handler.php:4411
                                                Open

                                                        $options = $this->format_options('text', $name, $options);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to nullable ?array
                                                Open

                                                        $mode = vartrue($extras['mode'], 'main');
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 3 (parms) is array{legacyPath:'\x7be_IMAGE\x7dicons',media:'_icon',h:64,w:64,glyph:1,icon:1}|array{legacyPath:mixed,media:'_icon',h:64,w:64,glyph:1,icon:1} but \e_form::mediapicker() takes string defined at /code/e107_handlers/form_handler.php:1406
                                                Open

                                                        return $this->mediapicker($name, $default, $options);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to nullable ?array
                                                Open

                                                        $action = vartrue($extras['action'], 'dialog');
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 3 (selected) is null but \e_form::select() takes bool|false defined at /code/e107_handlers/form_handler.php:3325
                                                Open

                                                        return $this->select($name,$opt,$val,$options, varset($options['default'],null));
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 3 (parms) is array|array{dropzone:1}|array{image:1}|array{video:mixed,image:1,dropzone:1}|array{youtube:1}|array{} but \e_form::mediapicker() takes string defined at /code/e107_handlers/form_handler.php:1406
                                                Open

                                                        return $this->mediapicker($name, $default, $sc_parameters);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Invalid offset "loading" of array type array{id:mixed,label:mixed}|array{label:mixed}|array{}
                                                Open

                                                        $loading = vartrue($options['loading'], defset('LAN_LOADING', 'Loading'));
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Saw possibly unextractable annotation for a fragment of comment '* @param string label': after string, did not see an element name (will guess based on comment order)
                                                Open

                                                     * @param string label
                                                Severity: Info
                                                Found in e107_handlers/form_handler.php by phan

                                                Invalid offset "url" of array type array{btn-label:mixed,id:mixed,label:mixed}
                                                Open

                                                            $text .= '<a id="'.$buttonId.'" data-loading-text="'.$loading.'" data-progress-interval="'.$interval.'" data-progress-target="'.$target.'" data-progress="' . $options['url'] . '" data-progress-mode="'.varset($options['mode'],0).'" data-progress-show="'.varset($options['show'],0).'" data-progress-hide="'.$buttonId.'" class="btn btn-primary e-progress" >'.$options['btn-label'].'</a>';
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Saw possibly unextractable annotation for a fragment of comment '* @param array|string {': after array|string, did not see an element name (will guess based on comment order)
                                                Open

                                                     * @param array|string {
                                                Severity: Info
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to nullable ?array
                                                Open

                                                        $options['pattern'] = vartrue($options['pattern'],'[\S].{2,}[\S]');
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Invalid offset "interval" of array type array{btn-label:mixed,id:mixed,label:mixed}
                                                Open

                                                            $interval = vartrue($options['interval'],1000);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to nullable ?array
                                                Open

                                                        'maxItems' => vartrue($options['maxItems'], 7),
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 3 (dep) is 'jquery' but \e107::css() takes null defined at /code/e107_handlers/e107_class.php:2692
                                                Open

                                                            e107::css('core', $css, 'jquery');
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 4 (extras) is array|array{class:''}|array{class:'btn btn-sm btn-default'}|array{edit:mixed,h:190|mixed,w:206|mixed,help:mixed,media:'_common'|mixed,icon:mixed,type:'icon',class:'btn btn-sm btn-default',title:'Add'}|array{h:190}|array{h:mixed,w:206|mixed,help:mixed,media:'_common'|mixed}|array{help:mixed,media:'_common'|mixed}|array{icon:mixed,h:190|mixed,w:206|mixed,help:mixed,media:'_common'|mixed}|array{media:'_common'}|array{media:mixed}|array{title:'Add'}|array{type:'icon'}|array{w:206}|array{w:mixed,help:mixed,media:'_common'|mixed}|array{} but \e_form::mediaUrl() takes null defined at /code/e107_handlers/form_handler.php:1100
                                                Open

                                                            $editIcon = $this->mediaUrl($cat, '<span><!-- --></span>', $name_id,$parms);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Saw possibly unextractable annotation for a fragment of comment '* @param mixed sc_parameters': after mixed, did not see an element name (will guess based on comment order)
                                                Open

                                                     * @param mixed sc_parameters
                                                Severity: Info
                                                Found in e107_handlers/form_handler.php by phan

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

                                                            'tmpl_prefix'    => varset($options['template'],'default'),
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

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

                                                            $search[] = '{'.$k.'}';
                                                Severity: Info
                                                Found in e107_handlers/form_handler.php by phan

                                                Saw possibly unextractable annotation for a fragment of comment '* @param string name eg. 'myfield' or 'myfield[]'': after string, did not see an element name (will guess based on comment order)
                                                Open

                                                     * @param string name  eg. 'myfield' or 'myfield[]'
                                                Severity: Info
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 4 (options) is array|array<string>|array{label:'Enabled'|mixed}</string> but \e_form::radio() takes null defined at /code/e107_handlers/form_handler.php:2942
                                                Open

                                                            $text = $this->radio($name, 1, $checked_enabled, $options_on) . '     ' . $this->radio($name, 0, !$checked_enabled, $options_off);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

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

                                                            $options_off['label'] = $on;
                                                Severity: Info
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 2 (str) is true but \explode() takes string
                                                Open

                                                                $current_value = explode(',', $current_value);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Invalid offset "class" of array type array{title:'ID',width:'5%',forced:true}|array{title:'Options',forced:true,width:'10%',thclass:'center last'}|array{title:'Poll Answers',type:'text',width:'auto',thclass:'left'}|array{title:'Poll Question',width:'auto'}|array{title:'Userclass',type:'text',width:'auto'}
                                                Open

                                                                $class = vartrue($val['class']) ? 'class="'.$val['class'].'"' : '';
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Invalid offset "nolist" of array type array{title:'Lang Prefix',type:'text',width:'auto',thclass:'left',class:'left'}|array{title:'Lang Prefix'|'Lower Threshold'|'Rank Image'|'Rank Name'|'Type',type:'text',width:'auto',thclass:'left',class:'left'}|array{title:'Lower Threshold',type:'text',width:'auto',thclass:'left',class:'left'}|array{title:'Rank Image',type:'text',width:'auto',thclass:'left',class:'left'}|array{title:'Rank Name',type:'text',width:'auto',thclass:'left',class:'left'}|array{title:'Type',type:'text',width:'auto',thclass:'left',class:'left'}|array{title?:null,type:'text',width:'auto',thclass:'left',class:'left'}
                                                Open

                                                             if ((in_array($key, $columnPref) || ($key === 'options' && isset($val['title'])) || (vartrue($val['forced']))) && !vartrue($val['nolist']))
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Invalid offset "title" of array type array{pk:int,url:mixed|string}|array{url:mixed}|array{url:string}
                                                Open

                                                        $title = varset($options['title'], (LAN_EDIT . ' ' . $fieldName));
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Call to undeclared method \e_form::getController
                                                Open

                                                        $controller = $this->getController();
                                                Severity: Critical
                                                Found in e107_handlers/form_handler.php by phan

                                                Call to deprecated function \e_parse::text_truncate() defined at /code/e107_handlers/e_parse_class.php:1286
                                                Open

                                                                    $value = $tp->text_truncate($value, $parms['truncate'], '...');
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to ?mixed
                                                Open

                                                                    ' .vartrue($options['fieldset_pre'])."
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to ?mixed
                                                Open

                                                                        ' .vartrue($options['table_pre'])."
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to ?mixed
                                                Open

                                                                            ' .$this->thead($fields, $current_fields, varset($options['head_query']), varset($options['query']))."
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Saw unextractable annotation for comment '* @param @nocontainer'
                                                Open

                                                     * @param @nocontainer
                                                Severity: Info
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 5 (opt_options) is array but \user_class::vetted_tree() takes string defined at /code/e107_handlers/userclass_class.php:720
                                                Open

                                                        $text .= $this->_uc->vetted_tree($name, array($this, '_uc_select_cb'), $current_value, $uc_options, $opt_options)."\n";
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

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

                                                            $options['class'] = vartrue($options['class']);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                When fetching an array index from a value of type array, found an array index of type null, but expected the index to be of the non-nullable type int|string
                                                Open

                                                                    $data['readParms']['__nameval'] = $fieldvalues[$data['readParms']['nameField']];
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to ?mixed
                                                Open

                                                                $url = rawurlencode($url.'?'.(varset($options['np_query']) ? str_replace(array('&amp;', '&'), array('&', '&amp;'),  $options['np_query']).'&amp;' : '').'from=[FROM]');
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 1 (arr1) is ?array but \array_merge() takes array
                                                Open

                                                            $options_off = array_merge($options, array('class' => 'e-expandit-off'));
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 4 (options) is array|array<string>|array{label:'Enabled'|mixed}</string> but \e_form::radio() takes null defined at /code/e107_handlers/form_handler.php:2942
                                                Open

                                                            $text = $this->radio($name, 0, !$checked_enabled, $options_on) . '     ' . $this->radio($name, 1, $checked_enabled, $options_off);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Call to undeclared method \e_form::getController
                                                Open

                                                                    $controller = $this->getController();
                                                Severity: Critical
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 4 (options) is string but \e_form::radio() takes null defined at /code/e107_handlers/form_handler.php:2942
                                                Open

                                                                                    $text .= "<li class='after-submit'>".$this->radio('__after_submit_action', $k, $selected == $k, 'label=' .$v). '</li>';
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 4 (options) is array|array<string>|array{label:'Enabled'|mixed}</string> but \e_form::radio() takes null defined at /code/e107_handlers/form_handler.php:2942
                                                Open

                                                            $text = $this->radio($name, 0, !$checked_enabled, $options_off) . ' ' . $this->radio($name, 1, $checked_enabled, $options_on);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to nullable ?array{forced:mixed,readParms:array{}}|?array{readParms:array{}}|?mixed
                                                Open

                                                            $tdclass = vartrue($data['class']);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

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

                                                                    $options['selectize'] = array(
                                                Severity: Info
                                                Found in e107_handlers/form_handler.php by phan

                                                Call to deprecated function \e_parse::text_truncate() defined at /code/e107_handlers/e_parse_class.php:1286
                                                Open

                                                                    $value = $tp->text_truncate($value, $parms['truncate'], '');
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Call to deprecated function \e_parse::text_truncate() defined at /code/e107_handlers/e_parse_class.php:1286
                                                Open

                                                                    $ttl = $tp->text_truncate($value, $parms['truncate'], '...');
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 1 (arr1) is ?array but \array_merge() takes array
                                                Open

                                                            $options_on = array_merge($options, array('class' => 'e-expandit-on'));
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 3 (current_value) is ?''|?false|?int|?string but \user_class::vetted_tree() takes int|string defined at /code/e107_handlers/userclass_class.php:720
                                                Open

                                                        $text .= $this->_uc->vetted_tree($name, array($this, '_uc_select_cb'), $current_value, $uc_options, $opt_options)."\n";
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 4 (showdescription) is null but \user_class::uc_checkboxes() takes bool|false defined at /code/e107_handlers/userclass_class.php:641
                                                Open

                                                                return e107::getUserClass()->uc_checkboxes($name, $curval, $optlist, null,false);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Invalid offset "nosort" of array type array{title:'ID',width:'5%',forced:true}|array{title:'ID'|'Options'|'Poll Answers'|'Poll Question'|'Userclass',width:'10%'|'5%'|'auto',forced:true,type:'text',thclass:'center last'|'left'}|array{title:'Options',forced:true,width:'10%',thclass:'center last'}|array{title:'Poll Answers',type:'text',width:'auto',thclass:'left'}|array{title:'Poll Question',width:'auto'}|array{title:'Userclass',type:'text',width:'auto'}|array{title?:null,width:'10%'|'5%'|'auto',forced:true,type:'text',thclass:'center last'|'left'}
                                                Open

                                                                if ($querypattern != '' && $key !== 'options' && $key !== 'checkboxes' && !vartrue($val['nosort']))
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

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

                                                        if(deftrue('BOOTSTRAP') && getperms($perms))
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Call to undeclared method \e_form::options (Did you mean expr->option())
                                                Open

                                                                        return $this->options($parms, $value, $id, $attributes);
                                                Severity: Critical
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to ?mixed
                                                Open

                                                            $current_fields = varset($options['fieldpref']) ? $options['fieldpref'] : array_keys($options['fields']);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 1 (encoded_string) is array{} but \parse_str() takes string
                                                Open

                                                                    parse_str($data['readParms'], $data['readParms']);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to ?mixed
                                                Open

                                                            $text .= vartrue($options['table_post']); 
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

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

                                                                    $data['readParms']['__idval'] = $fieldvalues[$data['readParms']['idField']];
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                When fetching an array index from a value of type array, found an array index of type null, but expected the index to be of the non-nullable type int|string
                                                Open

                                                                    $data['readParms']['__idval'] = $fieldvalues[$data['readParms']['idField']];
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to ?mixed
                                                Open

                                                                <form method='post' action='".$url."' id='{$form['id']}-form' enctype='multipart/form-data' autocomplete='off' >
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to ?mixed
                                                Open

                                                            $legend_class = vartrue($options['legend_class'], 'e-hideme');
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to ?mixed
                                                Open

                                                            foreach ($form['fieldsets'] as $elid => $data)
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Invalid offset "toggle" of array type array{title:'ID',width:'5%',forced:true}|array{title:'ID'|'Options'|'Poll Answers'|'Poll Question'|'Userclass',url:string,width:'10%'|'5%'|'auto',forced:true,type:'text',thclass:'center last'|'left'}|array{title:'ID'|'Options'|'Poll Answers'|'Poll Question'|'Userclass',width:'10%'|'5%'|'auto',forced:true,type:'text',thclass:'center last'|'left'}|array{title:'Options',forced:true,width:'10%',thclass:'center last'}|array{title:'Poll Answers',type:'text',width:'auto',thclass:'left'}|array{title:'Poll Question',width:'auto'}|array{title:'Userclass',type:'text',width:'auto'}|array{title?:null,width:'10%'|'5%'|'auto',forced:true,type:'text',thclass:'center last'|'left'}|array{url:string,title:'ID'|'Options'|'Poll Answers'|'Poll Question'|'Userclass'|null,width:'10%'|'5%'|'auto',forced:true,type:'text',thclass:'center last'|'left'}
                                                Open

                                                                $text .= ($key === 'checkboxes') ? $this->checkbox_toggle('e-column-toggle', vartrue($val['toggle'], 'multiselect')) : '';
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 1 (id) is string but \user_class::getName() takes int defined at /code/e107_handlers/userclass_class.php:954
                                                Open

                                                                    $uv[] = $this->_uc->getName($cid);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to \e_admin_tree_model
                                                Open

                                                            $tree_model = $tree_models[$fid];
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to ?mixed
                                                Open

                                                                $val['url'] = null;
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Call to deprecated function \e_parse::html_truncate() defined at /code/e107_handlers/e_parse_class.php:1183
                                                Open

                                                                    $value = $tp->html_truncate($value, $parms['htmltruncate'], '');
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Invalid offset "title" of array type array{thumbnail:mixed,label:string}
                                                Open

                                                                    'title' => varset($val['title']),
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 4 (options) is array|array<string>|array{label:'Disabled'|mixed}</string> but \e_form::radio() takes null defined at /code/e107_handlers/form_handler.php:2942
                                                Open

                                                            $text = $this->radio($name, 1, $checked_enabled, $options_on) . '     ' . $this->radio($name, 0, !$checked_enabled, $options_off);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 4 (optlist) is null but \user_class::vetted_tree() takes string defined at /code/e107_handlers/userclass_class.php:720
                                                Open

                                                        $text .= $this->_uc->vetted_tree($name, array($this, '_uc_select_cb'), $current_value, $uc_options, $opt_options)."\n";
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Invalid offset "noselector" of array type array{title:'Lang Prefix',type:'text',width:'auto',thclass:'left',class:'left'}|array{title:'Lang Prefix'|'Lower Threshold'|'Rank Image'|'Rank Name'|'Type',type:'text',width:'auto',thclass:'left',class:'left'}|array{title:'Lang Prefix'|'Lower Threshold'|'Rank Image'|'Rank Name'|'Type',url:string,type:'text',width:'auto',thclass:'left',class:'left'}|array{title:'Lower Threshold',type:'text',width:'auto',thclass:'left',class:'left'}|array{title:'Rank Image',type:'text',width:'auto',thclass:'left',class:'left'}|array{title:'Rank Name',type:'text',width:'auto',thclass:'left',class:'left'}|array{title:'Type',type:'text',width:'auto',thclass:'left',class:'left'}|array{title?:null,type:'text',width:'auto',thclass:'left',class:'left'}|array{url:string,title:'Lang Prefix'|'Lower Threshold'|'Rank Image'|'Rank Name'|'Type'|null,type:'text',width:'auto',thclass:'left',class:'left'}
                                                Open

                                                                $text .= ($key === 'options' && !vartrue($val['noselector'])) ? $this->columnSelector($fieldarray, $columnPref) : '';
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to ?mixed
                                                Open

                                                            $formPre = vartrue($options['form_pre']);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to ?mixed
                                                Open

                                                                $elid = $form['id'].'-'.$elid;
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 5 (opt_options) is array{} but \user_class::vetted_tree() takes string defined at /code/e107_handlers/userclass_class.php:720
                                                Open

                                                        $text .= $this->_uc->vetted_tree($name, array($this, '_uc_select_cb'), $current_value, $uc_options, $opt_options)."\n";
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 1 (str) is int but \strtolower() takes string
                                                Open

                                                        $name = strtolower($name);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Call to deprecated function \e_parse::text_truncate() defined at /code/e107_handlers/e_parse_class.php:1286
                                                Open

                                                                    $value = $tp->text_truncate($value, $parms['truncate'], '...');
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to ?mixed
                                                Open

                                                            $fields = $options['fields'];
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to ?mixed
                                                Open

                                                                        <legend class='{$legend_class}'>".$options['legend']. '</legend>
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to ?mixed
                                                Open

                                                                    $text .= $this->renderTableRow($fields, $current_fields, $model->getData(), $options['pid']);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to ?mixed
                                                Open

                                                                    ' .vartrue($options['fieldset_post']). '
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Saw unextractable annotation for comment '* @param @forms'
                                                Open

                                                     * @param @forms
                                                Severity: Info
                                                Found in e107_handlers/form_handler.php by phan

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

                                                            $options_on['label'] = $labels['off'];
                                                Severity: Info
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 4 (options) is array|array{help:?mixed|?string|mixed}|array{label:mixed} but \e_form::radio() takes null defined at /code/e107_handlers/form_handler.php:2942
                                                Open

                                                            $text[] = $this->radio($name, $value, (string) $checked === (string) $value, $options);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 4 (options) is array{style:''|'font-weight:bold'|'font-weight:bold; font-style: italic;'} but \e_form::option() takes string defined at /code/e107_handlers/form_handler.php:3604
                                                Open

                                                        return $this->option($prefix.$this->_uc->getName($classnum), $classSign.$classIndex, ($current_value !== '' && in_array($classnum, $tmp)), array('style' => ($style)))."\n";
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Call to undeclared method \e_admin_controller::getTabs
                                                Open

                                                                $tabs = $adminUI->getController()->getTabs();
                                                Severity: Critical
                                                Found in e107_handlers/form_handler.php by phan

                                                Invalid offset "nolist" of array type array{title:'ID',width:'5%',forced:true}|array{title:'ID'|'Options'|'Poll Answers'|'Poll Question'|'Userclass',width:'10%'|'5%'|'auto',forced:true,type:'text',thclass:'center last'|'left'}|array{title:'Options',forced:true,width:'10%',thclass:'center last'}|array{title:'Poll Answers',type:'text',width:'auto',thclass:'left'}|array{title:'Poll Question',width:'auto'}|array{title:'Userclass',type:'text',width:'auto'}|array{title?:null,width:'10%'|'5%'|'auto',forced:true,type:'text',thclass:'center last'|'left'}
                                                Open

                                                             if ((in_array($key, $columnPref) || ($key === 'options' && isset($val['title'])) || (vartrue($val['forced']))) && !vartrue($val['nolist']))
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Invalid offset "noselector" of array type array{title:'ID',width:'5%',forced:true}|array{title:'ID'|'Options'|'Poll Answers'|'Poll Question'|'Userclass',url:string,width:'10%'|'5%'|'auto',forced:true,type:'text',thclass:'center last'|'left'}|array{title:'ID'|'Options'|'Poll Answers'|'Poll Question'|'Userclass',width:'10%'|'5%'|'auto',forced:true,type:'text',thclass:'center last'|'left'}|array{title:'Options',forced:true,width:'10%',thclass:'center last'}|array{title:'Poll Answers',type:'text',width:'auto',thclass:'left'}|array{title:'Poll Question',width:'auto'}|array{title:'Userclass',type:'text',width:'auto'}|array{title?:null,width:'10%'|'5%'|'auto',forced:true,type:'text',thclass:'center last'|'left'}|array{url:string,title:'ID'|'Options'|'Poll Answers'|'Poll Question'|'Userclass'|null,width:'10%'|'5%'|'auto',forced:true,type:'text',thclass:'center last'|'left'}
                                                Open

                                                                $text .= ($key === 'options' && !vartrue($val['noselector'])) ? $this->columnSelector($fieldarray, $columnPref) : '';
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to ?mixed
                                                Open

                                                                $data['readParms'] = array();
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to nullable ?array{forced:mixed,readParms:array{}}|?array{readParms:array{}}|?mixed
                                                Open

                                                            if(vartrue($data['type']) === 'user' /* && isset($data['readParms']['idField'])*/)
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Invalid offset "nameField" of array type array{__idval:mixed}|array{}
                                                Open

                                                                    $data['readParms']['__nameval'] = $fieldvalues[$data['readParms']['nameField']];
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Call to deprecated function \e_parse::text_truncate() defined at /code/e107_handlers/e_parse_class.php:1286
                                                Open

                                                                    $ttl = $tp->text_truncate($value, $parms['truncate'], '...');
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to ?mixed
                                                Open

                                                            ' .vartrue($form['footer']). '
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 4 (options) is array|array<string>|array{label:'Disabled'|mixed}</string> but \e_form::radio() takes null defined at /code/e107_handlers/form_handler.php:2942
                                                Open

                                                            $text = $this->radio($name, 0, !$checked_enabled, $options_off) . ' ' . $this->radio($name, 1, $checked_enabled, $options_on);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 2 (str) is false but \explode() takes string
                                                Open

                                                                $selected = explode(',', $selected);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 4 (options) is array|array{disabled:bool} but \e_form::option() takes string defined at /code/e107_handlers/form_handler.php:3604
                                                Open

                                                                $text .= $this->option($lab, $val, (is_array($selected) ? in_array($val, $selected) : $selected == $val), $opts)."\n";
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to nullable ?array{url:null}|?array{url:}|?mixed
                                                Open

                                                            $ret .= vartrue($val['text']);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 1 (str) is null but \strtolower() takes string
                                                Open

                                                        $name = strtolower($name);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Invalid offset "toggle" of array type array{title:'Lang Prefix',type:'text',width:'auto',thclass:'left',class:'left'}|array{title:'Lang Prefix'|'Lower Threshold'|'Rank Image'|'Rank Name'|'Type',type:'text',width:'auto',thclass:'left',class:'left'}|array{title:'Lang Prefix'|'Lower Threshold'|'Rank Image'|'Rank Name'|'Type',url:string,type:'text',width:'auto',thclass:'left',class:'left'}|array{title:'Lower Threshold',type:'text',width:'auto',thclass:'left',class:'left'}|array{title:'Rank Image',type:'text',width:'auto',thclass:'left',class:'left'}|array{title:'Rank Name',type:'text',width:'auto',thclass:'left',class:'left'}|array{title:'Type',type:'text',width:'auto',thclass:'left',class:'left'}|array{title?:null,type:'text',width:'auto',thclass:'left',class:'left'}|array{url:string,title:'Lang Prefix'|'Lower Threshold'|'Rank Image'|'Rank Name'|'Type'|null,type:'text',width:'auto',thclass:'left',class:'left'}
                                                Open

                                                                $text .= ($key === 'checkboxes') ? $this->checkbox_toggle('e-column-toggle', vartrue($val['toggle'], 'multiselect')) : '';
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

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

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

                                                Argument 2 (str) is bool|false but \explode() takes string
                                                Open

                                                                $selected = explode(',', $selected);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 2 (callback) is array{0:\e_form,1:'_uc_select_cb'} but \user_class::vetted_tree() takes \function|object|string defined at /code/e107_handlers/userclass_class.php:720
                                                Open

                                                        $text .= $this->_uc->vetted_tree($name, array($this, '_uc_select_cb'), $current_value, $uc_options, $opt_options)."\n";
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Invalid offset "align" of array type array{class:mixed}
                                                Open

                                                            $align = vartrue($options['align'],'left');
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious type null of a variable or expression used to build a string. (Expected type to be able to cast to a string)
                                                Open

                                                                $class = vartrue($val['class']) ? 'class="'.$val['class'].'"' : '';
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Invalid offset "forced" of array type array{title:'Lang Prefix',type:'text',width:'auto',thclass:'left',class:'left'}|array{title:'Lower Threshold',type:'text',width:'auto',thclass:'left',class:'left'}|array{title:'Rank Image',type:'text',width:'auto',thclass:'left',class:'left'}|array{title:'Rank Name',type:'text',width:'auto',thclass:'left',class:'left'}|array{title:'Type',type:'text',width:'auto',thclass:'left',class:'left'}|array{title?:null,type:'text',width:'auto',thclass:'left',class:'left'}
                                                Open

                                                             if ((in_array($key, $columnPref) || ($key === 'options' && isset($val['title'])) || (vartrue($val['forced']))) && !vartrue($val['nolist']))
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to ?mixed
                                                Open

                                                            $formPost = vartrue($options['form_post']);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Invalid offset "class" of array type array{pk:int,url:mixed|string}|array{url:mixed}|array{url:string}
                                                Open

                                                        $class = varset($options['class']);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 4 (options) is array|array<string>|array{label:'Disabled'|mixed}</string> but \e_form::radio() takes null defined at /code/e107_handlers/form_handler.php:2942
                                                Open

                                                            $text = $this->radio($name, 0, !$checked_enabled, $options_on) . '     ' . $this->radio($name, 1, $checked_enabled, $options_off);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 4 (options) is array|array{help:mixed|string}|array{label:mixed} but \e_form::radio() takes null defined at /code/e107_handlers/form_handler.php:2942
                                                Open

                                                            $text[] = $this->radio($name, $value, (string) $checked === (string) $value, $options);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 4 (extra_js) is array|array{options:string}|array{} but \user_class::uc_dropdown() takes string defined at /code/e107_handlers/userclass_class.php:459
                                                Open

                                                                return e107::getUserClass()->uc_dropdown($name, $curval, $optlist, $opt);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

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

                                                            $TEMPLATE['start'] = '<hr><h4>' .defset('LAN_RELATED', 'Related')."</h4><ul class='e-related'>";
                                                Severity: Info
                                                Found in e107_handlers/form_handler.php by phan

                                                When fetching an array index from a value of type string, found an array index of type 'path', but expected the index to be of type int
                                                Open

                                                                    $ival     = $value[$i]['path'];
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to ?mixed
                                                Open

                                                                ".vartrue($form['header']). '
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Argument 2 (curval) is int but \user_class::uc_checkboxes() takes string defined at /code/e107_handlers/userclass_class.php:641
                                                Open

                                                                return e107::getUserClass()->uc_checkboxes($name, $curval, $optlist, null,false);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Invalid offset "nosort" of array type array{title:'Lang Prefix',type:'text',width:'auto',thclass:'left',class:'left'}|array{title:'Lang Prefix'|'Lower Threshold'|'Rank Image'|'Rank Name'|'Type',type:'text',width:'auto',thclass:'left',class:'left'}|array{title:'Lower Threshold',type:'text',width:'auto',thclass:'left',class:'left'}|array{title:'Rank Image',type:'text',width:'auto',thclass:'left',class:'left'}|array{title:'Rank Name',type:'text',width:'auto',thclass:'left',class:'left'}|array{title:'Type',type:'text',width:'auto',thclass:'left',class:'left'}|array{title?:null,type:'text',width:'auto',thclass:'left',class:'left'}
                                                Open

                                                                if ($querypattern != '' && $key !== 'options' && $key !== 'checkboxes' && !vartrue($val['nosort']))
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Suspicious array access to nullable ?array{forced:mixed,readParms:array{}}|?array{readParms:array{}}|?mixed
                                                Open

                                                            if(vartrue($data['type']) !== 'method' && empty($data['forced']) && !isset($fieldvalues[$field]) && $fieldvalues[$field] !== null)
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

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

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

                                                Call to deprecated function \e_parse::html_truncate() defined at /code/e107_handlers/e_parse_class.php:1183
                                                Open

                                                                    $value = $tp->html_truncate($value, $parms['htmltruncate']);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                Call to deprecated function \e_parse::html_truncate() defined at /code/e107_handlers/e_parse_class.php:1183
                                                Open

                                                                    $value = $tp->html_truncate($value, $parms['htmltruncate']);
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                When fetching an array index from a value of type string, found an array index of type 'path', but expected the index to be of type int
                                                Open

                                                                    $ival     = isset($value[$i]) ? $value[$i]['path'] : '';
                                                Severity: Minor
                                                Found in e107_handlers/form_handler.php by phan

                                                There are no issues that match your filters.

                                                Category
                                                Status