Showing 1,397 of 1,397 total issues
Method reset_tables
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function reset_tables()
{
$pdo = get_connection();
echo 'Dropping ' . TABLE_NAME . " table.\n";
$pdo->exec('drop table if exists ' . TABLE_NAME);
- Create a ticketCreate a ticket
Method execute
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute(CommandContext $context)
{
$term = $context->get('term');
$student = StudentFactory::getStudentByUsername(UserStatus::getUsername(), $term);
- Create a ticketCreate a ticket
Method create_autocomplete_query
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function create_autocomplete_query($row)
{
extract($row);
$lfirst = strtolower($first_name);
- Create a ticketCreate a ticket
Function getNextSyntacticCharOffset
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getNextSyntacticCharOffset(char, state) {
var pendingSource = state.g.source.substring(state.g.position);
var pendingSourceLines = pendingSource.split('\n');
var charOffset = 0;
- Create a ticketCreate a ticket
Method show_review_email
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function show_review_email()
{
$tpl = array();
if(is_array($_REQUEST['hall'])){
foreach($_REQUEST['hall'] as $hall){
- Create a ticketCreate a ticket
Method execute
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute(CommandContext $context)
{
$requestId = $context->get('requestId');
$mealPlanCode = $context->get('mealPlan');
- Create a ticketCreate a ticket
Method execute
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute()
{
$apiKey = "wcdHwGg1BIg5POxYQuEUXw";
$infoUrl = "https://mandrillapp.com/api/1.0/messages/info.json";
- Create a ticketCreate a ticket
Function visitTemplateLiteral
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function visitTemplateLiteral(traverse, node, path, state) {
var templateElements = node.quasis;
utils.append('(', state);
for (var ii = 0; ii < templateElements.length; ii++) {
- Create a ticketCreate a ticket
Method execute
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute(CommandContext $context)
{
$term = $context->get('term');
- Create a ticketCreate a ticket
Method applicantsReport
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function applicantsReport()
{
$term = Term::getSelectedTerm();
$rlc_list = HMS_Learning_Community::getRlcList();
- Create a ticketCreate a ticket
Method send_email
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function send_email($to, $from, $subject, $content, $cc = NULL, $bcc = NULL)
{
// Sanity checking
if(!isset($to) || is_null($to)){
return false;
- Create a ticketCreate a ticket
Method show
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function show()
{
//Seriously php? Can't resolve context without this? Fail.
$context = $this->context;
- Create a ticketCreate a ticket
Method render
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function render()
{
parent::render();
$this->tpl['TERM'] = Term::toString($this->report->getTerm());
- Create a ticketCreate a ticket
Method doPairing
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function doPairing(&$applications, &$pairs)
{
$db = new \PHPWS_DB('hms_roommate');
$db->addWhere('term', $this->term);
$db->addWhere('confirmed', 1);
- Create a ticketCreate a ticket
Function parseImportDeclaration
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseImportDeclaration() {
var specifiers, src, marker = markerCreate(), isType = false, token2;
expectKeyword('import');
- Create a ticketCreate a ticket
Function skipSingleLineComment
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function skipSingleLineComment() {
var start, loc, ch, comment;
start = index - 2;
loc = {
- Create a ticketCreate a ticket
Method show_select_hall
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function show_select_hall()
{
/*
if(!\Current_User::allow('hms', 'email_hall')){
return \PHPWS_Template::process($tpl, 'hms', 'admin/permission_denied.tpl');
- Create a ticketCreate a ticket
Method execute
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute(CommandContext $context)
{
$term = $context->get('term');
$student = StudentFactory::getStudentByUsername(UserStatus::getUsername(), $term);
- Create a ticketCreate a ticket
Method show
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function show()
{
$pct = ($this->exact == TRUE) ? '' : '%';
if(!empty($this->actor) && !empty($this->actee) && $this->actor == $this->actee){
- Create a ticketCreate a ticket
Method makeRequest
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function makeRequest($url, $method = 'GET', $headers = array(), $params = array(), $data = NULL) {
$response;
$curl = curl_init($url . '?' . http_build_query($params, NULL, '&'));
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
//return the transfer as a string
- Create a ticketCreate a ticket