Showing 714 of 844 total issues
Method splitFunctionArguments
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
final public function splitFunctionArguments($arguments)
{
General::ensureType([
'arguments' => ['var' => $arguments, 'type' => 'string'],
]);
Method __findDatasourceOrder
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function __findDatasourceOrder($dependenciesList)
{
if (!is_array($dependenciesList) || empty($dependenciesList)) {
return;
}
Method hash
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function hash($input, array $options = [])
{
if (empty($options['salt'])) {
$salt = self::generateSalt(self::SALT_LENGTH);
} else {
Method processOutputParameters
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function processOutputParameters(Entry $entry, $field_id, array $data)
{
if (!isset($this->dsParamPARAMOUTPUT)) {
return;
}
Method buildFilterSQL
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function buildFilterSQL($filter, array $columns, &$joins, &$where)
{
if (Symphony::Log()) {
Symphony::Log()->pushDeprecateWarningToLog(
get_called_class() . '::buildFilterSQL()',
Method set
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function set($code, $checkStatus = true)
{
if (!$code || $code == self::get()) {
return;
}
Method fetchByID
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function fetchByID($id)
{
$return_single = false;
if (is_null($id)) {
Method groupRecords
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function groupRecords($records)
{
if (!is_array($records) || empty($records)) {
return;
}
Method displayPublishPanel
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function displayPublishPanel(XMLElement &$wrapper, $data = null, $flagWithError = null, $fieldnamePrefix = null, $fieldnamePostfix = null, $entry_id = null)
{
$value = null;
if (isset($data['value'])) {
Method processRecordGroup
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function processRecordGroup($element, array $group)
{
$xGroup = new XMLElement($element, null, $group['attr']);
if (is_array($group['records']) && !empty($group['records'])) {
Method createSystemDateFilters
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function createSystemDateFilters(&$wrapper)
{
$filters = $_GET['filter'];
$dateField = new FieldDate;
Function success
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
success: function(result) {
// offline DOM manipulation
sections.detach();
if(result.sections.length) {
Function listtoken
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var listtoken = function(input, suggestions, result) {
var clone = suggestions.clone(),
help = clone.find('.help:first'),
trigger = input.attr('data-trigger'),
prefix;
Method open
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function open($flag = self::APPEND, $mode = 0777)
{
if (!file_exists($this->_log_path)) {
$flag = self::OVERWRITE;
}
Method renderHtml
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected static function renderHtml($e)
{
$page = PageManager::fetchPageByType('404');
$previous_exception = Frontend::instance()->getException();
Method sort
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function sort(&$sort, &$order, $params)
{
$section = $params['current-section'];
$filters = '';
// Format the filter query string
Method fetchByPage
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static function fetchByPage($page = 1, $section_id, $entriesPerPage, $where = null, $joins = null, $group = false, $records_only = false, $buildentries = true, array $element_names = null)
Method Checkbox
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function Checkbox($name, $value, $description = null, XMLElement &$wrapper = null, $help = null)
{
General::ensureType(array(
'name' => array('var' => $name, 'type' => 'string'),
'value' => array('var' => $value, 'type' => 'string', 'optional' => true),
Method fetch
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function fetch($section_id = null, $order = 'ASC', $sortfield = 'name')
{
if (Symphony::Log()) {
Symphony::Log()->pushDeprecateWarningToLog('SectionManager::fetch()', 'SectionManager::select()');
}
Method exists
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function exists()
{
if (!$this->get('id') || !$this->_handle) {
return false;
}