fannie/admin/PosKeyboards/KeyboardView.php
Method getView
has 90 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getView()
{
$dbc = FannieDB::get(FannieConfig::config('OP_DB'));
return <<<HTML
File KeyboardView.php
has 268 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
include(__DIR__ . '/../../config.php');
if (!class_exists('FannieAPI')) {
include_once(__DIR__ . '/../../classlib2.0/FannieAPI.php');
}
Method javascript_content
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function javascript_content()
{
$lastEdited = FormLib::get('editable', "false");
return <<<JAVASCRIPT
Method post_rgb_handler
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function post_rgb_handler()
{
$dbc = FannieDB::get(FannieConfig::config('OP_DB'));
$pos = FormLib::get('pos');
$label = FormLib::get('label');