Showing 1,397 of 1,397 total issues
Function read
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.read = function(buffer, offset, isLE, mLen, nBytes) {
var e, m,
eLen = nBytes * 8 - mLen - 1,
eMax = (1 << eLen) - 1,
eBias = eMax >> 1,
- Create a ticketCreate a ticket
Function parseParams
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseParams(firstRestricted) {
var options, marker = markerCreate();
options = {
params: [],
- Create a ticketCreate a ticket
Function parseBreakStatement
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseBreakStatement() {
var label = null, marker = markerCreate();
expectKeyword('break');
- Create a ticketCreate a ticket
Function parseExpression
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseExpression() {
var marker, expr, expressions, sequence, spreadFound;
marker = markerCreate();
expr = parseAssignmentExpression();
- Create a ticketCreate a ticket
Function copy
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Buffer.prototype.copy = function copy (target, target_start, start, end) {
var self = this // source
if (!start) start = 0
if (!end && end !== 0) end = this.length
- Create a ticketCreate a ticket
Function parseContinueStatement
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseContinueStatement() {
var label = null, marker = markerCreate();
expectKeyword('continue');
- Create a ticketCreate a ticket
Function componentWillMount
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
componentWillMount(){
// Load the list of damage types
$.ajax({
url: 'index.php?module=hms&action=GetDamageTypes',
data: {term: this.props.term},
- Create a ticketCreate a ticket
Method addUserStatus
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function addUserStatus()
{
// If the user is not logged in, then we have nothing to do here
if(UserStatus::isGuest()){
return;
- Create a ticketCreate a ticket
Method hms_install
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function hms_install(&$content)
{
PHPWS_Core::initModClass('users', 'Users.php');
$DB = new PHPWS_DB('users');
$DB->addWhere('username', 'hms_admin');
- Create a ticketCreate a ticket
Method count_applications_by_class
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function count_applications_by_class($term, $class)
{
$term_year = Term::getTermYear($term);
$query = "SELECT count(*) from hms_new_application JOIN hms_lottery_application ON hms_new_application.id = hms_lottery_application.id
- Create a ticketCreate a ticket
Method execute
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute(CommandContext $context){
try {
if(!UserStatus::isAdmin() || !\Current_User::allow('hms', 'assign_by_floor')){
throw new PermissionException('You do not have permission to assign by floor!');
}
- Create a ticketCreate a ticket
Method execute
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute(CommandContext $context)
{
$requestId = $context->get('requestId');
$publicReason = $context->get('deny-reason-public');
- Create a ticketCreate a ticket
Function render
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
var residentList = '';
if (this.props.residents !== undefined) {
this.props.residents.map(function(val){
residentList = residentList.length ? residentList + ', ' + val.name : val.name;
- Create a ticketCreate a ticket
Function render
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
var icon = React.createElement('img', {
src: this.props.sourceHttp + 'mod/hms/img/loading.gif',
width: '200px'
});
- Create a ticketCreate a ticket
Method doSearch
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function doSearch()
{
// Clear all the caches
StudentDataProvider::clearAllCache();
- Create a ticketCreate a ticket
Method show
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function show()
{
$tpl = array();
if ($this->halls == NULL) {
- Create a ticketCreate a ticket
Method can_change_gender
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function can_change_gender($target_gender, $ignore_upper = false)
{
// Ignore upper is true, we're trying to change a hall's gender
if($ignore_upper) {
// If ignore upper is true and the target gender is coed, then
- Create a ticketCreate a ticket
Method show
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function show()
{
$username = UserStatus::getUsername();
$currentTerm = Term::getCurrentTerm();
$student = StudentFactory::getStudentByUsername($username, $currentTerm);
- Create a ticketCreate a ticket
Method listReserveReasons
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function listReserveReasons()
{
$athletics[] = array('NAME' => 'Football', 'VALUE' => 'football');
$athletics[] = array('NAME' => 'Basketball', 'VALUE' => 'basketball');
$athletics[] = array('NAME' => 'Baseball', 'VALUE' => 'baseball');
- Create a ticketCreate a ticket
Method countGrossApplicationsByClassGender
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function countGrossApplicationsByClassGender($term, $class = null, $gender = null)
{
$term_year = Term::getTermYear($term);
$query = "SELECT count(*) from hms_new_application JOIN hms_lottery_application ON hms_new_application.id = hms_lottery_application.id
- Create a ticketCreate a ticket