CORE-POS/IS4C

View on GitHub
fannie/admin/PosKeyboards/KeyboardView.php

Summary

Maintainability
C
1 day
Test Coverage
F
8%

Method getView has 90 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function getView()
    {
        $dbc = FannieDB::get(FannieConfig::config('OP_DB'));

        return <<<HTML
Severity: Major
Found in fannie/admin/PosKeyboards/KeyboardView.php - About 3 hrs to fix

    File KeyboardView.php has 268 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    include(__DIR__ . '/../../config.php');
    if (!class_exists('FannieAPI')) {
        include_once(__DIR__ . '/../../classlib2.0/FannieAPI.php');
    }
    Severity: Minor
    Found in fannie/admin/PosKeyboards/KeyboardView.php - About 2 hrs to fix

      Method javascript_content has 57 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function javascript_content()
          {
              $lastEdited = FormLib::get('editable', "false");
      
              return <<<JAVASCRIPT
      Severity: Major
      Found in fannie/admin/PosKeyboards/KeyboardView.php - About 2 hrs to fix

        Method post_rgb_handler has 32 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function post_rgb_handler()
            {
                $dbc = FannieDB::get(FannieConfig::config('OP_DB'));
                $pos = FormLib::get('pos');
                $label = FormLib::get('label');
        Severity: Minor
        Found in fannie/admin/PosKeyboards/KeyboardView.php - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status