Showing 1,397 of 1,397 total issues
Method viewByRLCExportFields
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function viewByRLCExportFields()
{
$row = array();
// Get the Student object
- Create a ticketCreate a ticket
Method execute
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function execute(CommandContext $context)
{
$term = $context->get('term');
$username = UserStatus::getUsername();
- Create a ticketCreate a ticket
Method hms_update
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
function hms_update(&$content, $currentVersion)
{
switch ($currentVersion) {
case version_compare($currentVersion, '0.4.92', '<') :
PHPWS_Core::initModClass('users', 'Permission.php');
- Create a ticketCreate a ticket
Function renderJSXLiteral
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
function renderJSXLiteral(object, isLast, state, start, end) {
var lines = object.value.split(/\r\n|\n|\r/);
if (start) {
utils.append(start, state);
- Create a ticketCreate a ticket
Method show
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function show()
{
$tpl = array();
$assignment = HMS_Assignment::getAssignmentByBannerId($this->student->getBannerId(), $this->term);
- Create a ticketCreate a ticket
Method execute
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function execute()
{
$term = $this->term;
$sem = Term::getTermSem($term);
- Create a ticketCreate a ticket
Function readObserver
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
readObserver: function (e) {
var ob = this;
if (!this.started && (e.which === this.track_start || e.which === this.error_start)) {
e.stopImmediatePropagation();
- Create a ticketCreate a ticket
Function readObserver
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
readObserver: function (e) {
var ob = this;
if (!this.started && (e.which === this.track_start || e.which === this.error_start)) {
e.stopImmediatePropagation();
- Create a ticketCreate a ticket
Method show
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function show()
{
\PHPWS_Core::initModClass('filecabinet', 'Cabinet.php');
$hall = new ResidenceHall($this->hallId);
- Create a ticketCreate a ticket
Function errorFree
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
errorFree() {
var all_clear = true;
var errors = [];
let resident_selected = false;
- Create a ticketCreate a ticket
Method execute
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function execute(CommandContext $context)
{
$request = \Server::getCurrentRequest();
$vars = $request->getVars();
extract($vars['vars']);
- Create a ticketCreate a ticket
Method show
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function show(){
$tpl = array();
$tpl['DATES'] = HMS_Util::getPrettyDateRange($this->startDate, $this->endDate);
$tpl['STATUS'] = "";
- Create a ticketCreate a ticket
Method getUnassignedFreshmenApplications
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
public static function getUnassignedFreshmenApplications($term, $gender)
{
$db = new PHPWS_DB('hms_new_application');
$db->addWhere('student_type', 'F');
$db->addWhere('term', $term);
- Create a ticketCreate a ticket
Function execute
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
public function execute(CommandContext $context){
$errorCmd = CommandFactory::getCommand('ShowStudentMenu');
$term = $context->get('term');
$student = StudentFactory::getStudentByUsername(UserStatus::getUsername(), $term);
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function execute
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
public function execute(CommandContext $context)
{
if(!\Current_User::allow('hms', 'lottery_admin')){
throw new PermissionException('You do not have permission to administer re-application features.');
}
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function execute
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
public function execute(CommandContext $context)
{
$request = \Server::getCurrentRequest();
$vars = $request->getVars();
extract($vars['vars']);
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function specialInterestPager
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
public static function specialInterestPager($group, $term)
{
$pager = new \DBPager('hms_new_application', '\Homestead\LotteryApplication');
$pager->setModule('hms');
$pager->addRowTags('specialInterestTags');
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function get_assigned_to_link
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
public function get_assigned_to_link($newWindow = FALSE)
{
$this->loadAssignment();
if (isset($this->_curr_assignment)) {
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function show
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
public function show()
{
require(PHPWS_SOURCE_DIR . 'mod/hms/inc/profile_options.php');
$majors = MajorFactory::getMajorsList();
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function copy
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
public function copy($to_term, $hall_id, $assignments = false, $roles = false)
{
if(!$this->id) {
return false;
}
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"