AppStateESS/homestead

View on GitHub

Showing 1,397 of 1,397 total issues

Method reset_tables has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function reset_tables()
{
    $pdo = get_connection();
    echo 'Dropping ' . TABLE_NAME . " table.\n";
    $pdo->exec('drop table if exists ' . TABLE_NAME);
Severity: Minor
Found in util/createfakestudents.php - About 1 hr to fix

Method execute has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function execute(CommandContext $context)
    {
        $term = $context->get('term');

        $student = StudentFactory::getStudentByUsername(UserStatus::getUsername(), $term);
Severity: Minor
Found in class/Command/ReApplicationFormSubmitCommand.php - About 1 hr to fix

Method create_autocomplete_query has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function create_autocomplete_query($row)
{
    extract($row);

    $lfirst = strtolower($first_name);
Severity: Minor
Found in util/createfakestudents.php - About 1 hr to fix

Function getNextSyntacticCharOffset has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function getNextSyntacticCharOffset(char, state) {
  var pendingSource = state.g.source.substring(state.g.position);
  var pendingSourceLines = pendingSource.split('\n');

  var charOffset = 0;
Severity: Minor
Found in javascript/react/build/JSXTransformer.js - About 1 hr to fix

Method show_review_email has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function show_review_email()
    {
        $tpl = array();
        if(is_array($_REQUEST['hall'])){
            foreach($_REQUEST['hall'] as $hall){
Severity: Minor
Found in class/UI/Notification.php - About 1 hr to fix

Method execute has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function execute(CommandContext $context)
    {
        $requestId = $context->get('requestId');
        
    $mealPlanCode = $context->get('mealPlan');
Severity: Minor
Found in class/Command/LotteryConfirmRoommateRequestCommand.php - About 1 hr to fix

Method execute has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  public function execute()
  {
      $apiKey = "wcdHwGg1BIg5POxYQuEUXw";

      $infoUrl = "https://mandrillapp.com/api/1.0/messages/info.json";
Severity: Minor
Found in class/Scheduled/UpdateMandrillInfo.php - About 1 hr to fix

Function visitTemplateLiteral has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function visitTemplateLiteral(traverse, node, path, state) {
  var templateElements = node.quasis;

  utils.append('(', state);
  for (var ii = 0; ii < templateElements.length; ii++) {
Severity: Minor
Found in javascript/react/build/JSXTransformer.js - About 1 hr to fix

Method execute has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function execute(CommandContext $context)
    {

        $term = $context->get('term');

Severity: Minor
Found in class/Command/ShowRlcApplicationPage2ViewCommand.php - About 1 hr to fix

Method applicantsReport has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function applicantsReport()
    {
        $term = Term::getSelectedTerm();

        $rlc_list = HMS_Learning_Community::getRlcList();
Severity: Minor
Found in class/HMS_RLC_Application.php - About 1 hr to fix

Method send_email has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function send_email($to, $from, $subject, $content, $cc = NULL, $bcc = NULL)
    {
        // Sanity checking
        if(!isset($to) || is_null($to)){
            return false;
Severity: Minor
Found in class/HMS_Email.php - About 1 hr to fix

Method show has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function show()
    {

        //Seriously php?  Can't resolve context without this?  Fail.
        $context = $this->context;
Severity: Minor
Found in class/RlcApplicationPage2View.php - About 1 hr to fix

Method render has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function render()
    {
        parent::render();

        $this->tpl['TERM'] = Term::toString($this->report->getTerm());

Method doPairing has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function doPairing(&$applications, &$pairs)
    {
        $db = new \PHPWS_DB('hms_roommate');
        $db->addWhere('term', $this->term);
        $db->addWhere('confirmed', 1);
Severity: Minor
Found in class/RequestedRoommatePairingStrategy.php - About 1 hr to fix

Function parseImportDeclaration has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function parseImportDeclaration() {
        var specifiers, src, marker = markerCreate(), isType = false, token2;

        expectKeyword('import');

Severity: Minor
Found in javascript/react/build/JSXTransformer.js - About 1 hr to fix

Function skipSingleLineComment has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function skipSingleLineComment() {
        var start, loc, ch, comment;

        start = index - 2;
        loc = {
Severity: Minor
Found in javascript/react/build/JSXTransformer.js - About 1 hr to fix

Method show_select_hall has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function show_select_hall()
    {
        /*
        if(!\Current_User::allow('hms', 'email_hall')){
             return \PHPWS_Template::process($tpl, 'hms', 'admin/permission_denied.tpl');
Severity: Minor
Found in class/UI/Notification.php - About 1 hr to fix

Method execute has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function execute(CommandContext $context)
    {
        $term = $context->get('term');
        $student = StudentFactory::getStudentByUsername(UserStatus::getUsername(), $term);

Severity: Minor
Found in class/Command/ShowTermsAgreementCommand.php - About 1 hr to fix

Method show has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function show()
    {
        $pct = ($this->exact == TRUE) ? '' : '%';

        if(!empty($this->actor) && !empty($this->actee) && $this->actor == $this->actee){
Severity: Minor
Found in class/ActivityLogPager.php - About 1 hr to fix

Method makeRequest has 36 lines of code (exceeds 25 allowed). Consider refactoring.
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
Severity: Minor
Found in class/Docusign/CurlIO.php - About 1 hr to fix
Severity
Category
Status
Source
Language