Showing 889 of 1,089 total issues
Method smarty_modifier_relative_date
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function smarty_modifier_relative_date($timestamp, $days = false, $format = "M j, Y") {
if (!is_numeric($timestamp)) {
// It's not a time stamp, so try to convert it...
$timestamp = strtotime($timestamp);
Method smarty_function_html_radios_output
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function smarty_function_html_radios_output($name, $value, $output, $selected, $extra, $separator, $labels, $label_ids, $escape)
{
$_output = '';
if (is_object($value)) {
Method smarty_function_cycle
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function smarty_function_cycle($params, $template)
{
static $cycle_vars;
$name = (empty($params['name'])) ? 'default' : $params['name'];
Method compile
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function compile($args, $compiler, $parameter)
{
// the following must be assigned at runtime because it will be overwritten in Smarty_Internal_Compile_Append
$this->required_attributes = array('var', 'value');
$this->shorttag_order = array('var', 'value');
Method yylex4
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function yylex4()
{
$tokenMap = array (
1 => 0,
2 => 0,
Method _canonicalizeBody
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function _canonicalizeBody($string)
{
$len = strlen($string);
$canon = '';
$method = ($this->_bodyCanon == "relaxed");
Method compileAllTemplates
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function compileAllTemplates($extension, $force_compile, $time_limit, $max_errors, Smarty $smarty)
{
// switch off time limit
if (function_exists('set_time_limit')) {
@set_time_limit($time_limit);
Method createTemplate
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function createTemplate($template, $cache_id = null, $compile_id = null, $parent = null, $do_clone = true)
{
if (!empty($cache_id) && (is_object($cache_id) || is_array($cache_id))) {
$parent = $cache_id;
$cache_id = null;
Method append
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function append($tpl_var, $value = null, $merge = false, $nocache = false)
{
if (is_array($tpl_var)) {
// $tpl_var is an array, ignore $value
foreach ($tpl_var as $_key => $_val) {
Method yylex6
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function yylex6()
{
$tokenMap = array (
1 => 0,
2 => 0,
Method getTransactionTypebyTime
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getTransactionTypebyTime($account_id=NULL) {
$this->debug->append("STA " . __METHOD__, 4);
if ($data = $this->memcache->get(__FUNCTION__)) return $data;
$stmt = $this->mysqli->prepare("
SELECT
Method yylex5
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function yylex5()
{
$tokenMap = array (
1 => 0,
2 => 0,
Method compile
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function compile($args, $compiler)
{
if (!($compiler->smarty instanceof SmartyBC)) {
throw new SmartyException("{include_php} is deprecated, use SmartyBC class to enable");
}
Method setChildren
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function setChildren(array $children, $compoundLevel = null)
{
// TODO: Try to refactor this logic
$compoundLevel = isset($compoundLevel)
Method parseSpan
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function parseSpan($str) {
#
# Take the string $str and parse it into tokens, hashing embeded HTML,
# escaped characters and handling code spans.
#
Method __call
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __call($name, $args)
{
static $_prefixes = array('set' => true, 'get' => true);
static $_resolved_property_name = array();
static $_resolved_property_source = array();
Method yylex3
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function yylex3()
{
$tokenMap = array (
1 => 0,
);
Method smarty_outputfilter_trimwhitespace
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function smarty_outputfilter_trimwhitespace($source, Smarty_Internal_Template $smarty)
{
$store = array();
$_store = 0;
$_offset = 0;
Method to_smarty_php
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function to_smarty_php()
{
$code = '';
for ($key = 0, $cnt = count($this->subtrees); $key < $cnt; $key++) {
if ($key + 2 < $cnt) {
Method sendMail
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function sendMail($template, $aData, $throttle=false) {
// Prepare SMTP transport and mailer
$transport_type = $this->config['swiftmailer']['type'];
if ($transport_type == 'sendmail') {
$transport = Swift_SendmailTransport::newInstance($this->config['swiftmailer'][$transport_type]['path'] . ' ' . $this->config['swiftmailer'][$transport_type]['options']);