CORE-POS/IS4C

View on GitHub
fannie/modules/plugins2.0/OverShortTools/OsEmpCountsPage.php

Summary

Maintainability
B
4 hrs
Test Coverage

Method get_id_view has 55 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function get_id_view()
    {
        $dateID = date('Ymd', strtotime($this->id));
        $storeID = FormLib::get('store');
        $empID = FormLib::get('emp');
Severity: Major
Found in fannie/modules/plugins2.0/OverShortTools/OsEmpCountsPage.php - About 2 hrs to fix

    Method post_id_view has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        protected function post_id_view()
        {
            $settings = $this->config->get('PLUGIN_SETTINGS');
            $dbc = FannieDB::get($settings['OverShortDatabase']);
            $dateID = date('Ymd', strtotime($this->id));
    Severity: Minor
    Found in fannie/modules/plugins2.0/OverShortTools/OsEmpCountsPage.php - About 1 hr to fix

      Method get_view has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          protected function get_view()
          {
              $stores = FormLib::storePicker();
              $date = date('Y-m-d');
              $this->addOnloadCommand("\$('input[name=emp]').focus();");
      Severity: Minor
      Found in fannie/modules/plugins2.0/OverShortTools/OsEmpCountsPage.php - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status