Issue
I´m creating a function in php with netbeans, but it says:
Method Length is 35 lines (20 allowed)
This will work well or I have to do a function with less than 20 lines?
Code:
function hasPrev($filterid) {
switch ($filterid) {
case 1:
return false;
case 10:
return false;
case 19:
return false;
case 28:
return false;
case 88:
return false;
case 148:
return false;
case 208:
return false;
case 238:
return false;
case 248:
return false;
case 258:
return false;
case 261:
return false;
case 264:
return false;
case 269:
return false;
case 274:
return false;
case 279:
return false;
case 284:
return false;
}
return true;
}
Solution
from menu Tools choose options then editor in hints tab checkbox too many Lines
Answered By - Hamza