fannie/modules/plugins2.0/NcgCoupons/NcgCouponEditor.php
Method get_view
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function get_view()
{
$res = $this->connection->query('SELECT couponUPC, description, startDate, endDate FROM NcgCoupons ORDER BY startDate');
$table = '';
while ($row = $this->connection->fetchRow($res)) {
Method get_id_view
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function get_id_view()
{
$model = new NcgCouponsModel($this->connection);
$model->couponUPC($this->id);
$model->load();