Function buildInternshipForm
has a Cognitive Complexity of 59 (exceeds 5 allowed). Consider refactoring. Open
public function buildInternshipForm() {
javascript('jquery');
javascript('jquery_ui');
// Form Submission setup, only allowed to save if you have permission
- 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
Method buildInternshipForm
has 226 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function buildInternshipForm() {
javascript('jquery');
javascript('jquery_ui');
// Form Submission setup, only allowed to save if you have permission
- Create a ticketCreate a ticket
File EditInternshipFormView.php
has 459 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
/**
* This file is part of Internship Inventory.
*
* Internship Inventory is free software: you can redistribute it and/or modify
- Create a ticketCreate a ticket
Function plugStudent
has a Cognitive Complexity of 39 (exceeds 5 allowed). Consider refactoring. Open
private function plugStudent() {
// Student
$this->tpl['BANNER'] = $this->intern->getBannerId();
$this->tpl['STUDENT_FIRST_NAME'] = $this->intern->getFirstName();
$this->tpl['STUDENT_MIDDLE_NAME'] = $this->intern->middle_name;
- 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
The class EditInternshipFormView has an overall complexity of 70 which is very high. The configured complexity threshold is 50. Open
class EditInternshipFormView {
private $form;
private $intern;
private $student;
- Create a ticketCreate a ticket
- Exclude checks
Method plugStudent
has 69 lines of code (exceeds 25 allowed). Consider refactoring. Open
private function plugStudent() {
// Student
$this->tpl['BANNER'] = $this->intern->getBannerId();
$this->tpl['STUDENT_FIRST_NAME'] = $this->intern->getFirstName();
$this->tpl['STUDENT_MIDDLE_NAME'] = $this->intern->middle_name;
- Create a ticketCreate a ticket
Method __construct
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
public function __construct(Internship $i, Student $student = null, SubHost $host, Supervisor $supervisor, Term $term, $studentExistingCreditHours)
- Create a ticketCreate a ticket
The method buildInternshipForm() has an NPath complexity of 7171200. The configured NPath complexity threshold is 200. Open
public function buildInternshipForm() {
javascript('jquery');
javascript('jquery_ui');
// Form Submission setup, only allowed to save if you have permission
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
NPathComplexity
Since: 0.1
The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.
Example
class Foo {
function bar() {
// lots of complicated code
}
}
Source https://phpmd.org/rules/codesize.html#npathcomplexity
The method buildInternshipForm() has 351 lines of code. Current threshold is set to 100. Avoid really long methods. Open
public function buildInternshipForm() {
javascript('jquery');
javascript('jquery_ui');
// Form Submission setup, only allowed to save if you have permission
- Create a ticketCreate a ticket
- Exclude checks
The method plugStudent() has a Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 10. Open
private function plugStudent() {
// Student
$this->tpl['BANNER'] = $this->intern->getBannerId();
$this->tpl['STUDENT_FIRST_NAME'] = $this->intern->getFirstName();
$this->tpl['STUDENT_MIDDLE_NAME'] = $this->intern->middle_name;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
CyclomaticComplexity
Since: 0.1
Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.
Example
// Cyclomatic Complexity = 11
class Foo {
1 public function example() {
2 if ($a == $b) {
3 if ($a1 == $b1) {
fiddle();
4 } elseif ($a2 == $b2) {
fiddle();
} else {
fiddle();
}
5 } elseif ($c == $d) {
6 while ($c == $d) {
fiddle();
}
7 } elseif ($e == $f) {
8 for ($n = 0; $n < $h; $n++) {
fiddle();
}
} else {
switch ($z) {
9 case 1:
fiddle();
break;
10 case 2:
fiddle();
break;
11 case 3:
fiddle();
break;
default:
fiddle();
break;
}
}
}
}
Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity
The method buildInternshipForm() has a Cyclomatic Complexity of 33. The configured cyclomatic complexity threshold is 10. Open
public function buildInternshipForm() {
javascript('jquery');
javascript('jquery_ui');
// Form Submission setup, only allowed to save if you have permission
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
CyclomaticComplexity
Since: 0.1
Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.
Example
// Cyclomatic Complexity = 11
class Foo {
1 public function example() {
2 if ($a == $b) {
3 if ($a1 == $b1) {
fiddle();
4 } elseif ($a2 == $b2) {
fiddle();
} else {
fiddle();
}
5 } elseif ($c == $d) {
6 while ($c == $d) {
fiddle();
}
7 } elseif ($e == $f) {
8 for ($n = 0; $n < $h; $n++) {
fiddle();
}
} else {
switch ($z) {
9 case 1:
fiddle();
break;
10 case 2:
fiddle();
break;
11 case 3:
fiddle();
break;
default:
fiddle();
break;
}
}
}
}
Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity
The class EditInternshipFormView has a coupling between objects value of 17. Consider to reduce the number of dependencies under 13. Open
class EditInternshipFormView {
private $form;
private $intern;
private $student;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
CouplingBetweenObjects
Since: 1.1.0
A class with too many dependencies has negative impacts on several quality aspects of a class. This includes quality criteria like stability, maintainability and understandability
Example
class Foo {
/**
* @var \foo\bar\X
*/
private $x = null;
/**
* @var \foo\bar\Y
*/
private $y = null;
/**
* @var \foo\bar\Z
*/
private $z = null;
public function setFoo(\Foo $foo) {}
public function setBar(\Bar $bar) {}
public function setBaz(\Baz $baz) {}
/**
* @return \SplObjectStorage
* @throws \OutOfRangeException
* @throws \InvalidArgumentException
* @throws \ErrorException
*/
public function process(\Iterator $it) {}
// ...
}
Source https://phpmd.org/rules/design.html#couplingbetweenobjects
Missing class import via use statement (line '76', column '27'). Open
$this->form = new \PHPWS_Form('internship');
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Avoid using static access to class '\Intern\TermFactory' in method 'buildInternshipForm'. Open
$nextTerm = TermFactory::getNextTerm($term);
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\Current_User' in method 'buildInternshipForm'. Open
$depts = DepartmentFactory::getDepartmentsAssocForUsername(\Current_User::getUsername(), $this->intern->department_id);
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\Current_User' in method 'buildInternshipForm'. Open
if (\Current_User::allow('intern', 'change_term')) {
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'Intern\LevelFactory' in method 'plugStudent'. Open
$level = LevelFactory::getLevelList();
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\Current_User' in method 'plugStudent'. Open
if (\Current_User::isDeity()) {
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\Current_User' in method 'buildInternshipForm'. Open
if (\Current_User::isDeity()) {
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\Intern\TermFactory' in method 'buildInternshipForm'. Open
$term = TermFactory::getTermByTermCode($this->intern->getTerm());
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
The method buildInternshipForm uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$nextTwoTerm = null;
}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
Avoid using static access to class '\Current_User' in method 'buildInternshipForm'. Open
if(!\Current_User::allow('intern', 'oied_certify') || $this->intern->isDomestic()){
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
The method buildInternshipForm uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
}else{
$this->tpl['DRUG_CHECK_REQUEST_BTN'] = 'Send Drug Screening Request';
}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method plugStudent uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$this->tpl['majors_repeat'][] = array('CODE' => $m->getCode(), 'DESC' => $m->getDescription(), 'ACTIVE' => '', 'CHECKED' => '');
}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method plugStudent uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else{
$this->tpl['MAJOR'] = '<span class="text-muted"><em>Not Available</em></span>';
}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method buildInternshipForm uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else{
$this->form->setAction('index.php?module=intern&action=ShowInternship&internship_id=' . $this->intern->getId());
$this->form->addSubmit('submit', 'Refresh');
}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
Avoid using static access to class '\Intern\TermFactory' in method 'buildInternshipForm'. Open
$nextThreeTerm = TermFactory::getNextTerm($nextTwoTerm);
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\Intern\TermFactory' in method 'buildInternshipForm'. Open
$terms = TermFactory::getTermsAssoc();
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
The method plugStudent uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$this->tpl['GRAD_DATE'] = '<span class="text-muted"><em>Not Available</em></span>';
}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
Avoid using static access to class '\Current_User' in method 'buildInternshipForm'. Open
if($this->intern->getStateName() != 'DeniedState' && \Current_User::allow('intern', 'create_internship')){
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\Intern\TermFactory' in method 'buildInternshipForm'. Open
$nextTwoTerm = TermFactory::getNextTerm($nextTerm);
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
The method buildInternshipForm uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$nextThreeTerm = null;
}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method buildInternshipForm uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else{
$this->tpl['CONTINUE_TERM_NO_TERMS'] = 'No future terms available.';
}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
Avoid using static access to class '\Current_User' in method 'buildInternshipForm'. Open
if(\Current_User::allow('intern', 'sig_auth_approve')){
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
The method plugStudent uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$this->tpl['ENROLLED_CREDIT_HORUS'] = '<span class="text-muted"><em>Not Available</em></span>';
}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method plugStudent uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$this->tpl['ENROLLED_CREDIT_HORUS'] = '<span class="text-muted"><em>Not Available</em></span>';
$this->tpl['GRAD_DATE'] = '<span class="text-muted"><em>Not Available</em></span>';
}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method plugStudent uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else{
$this->tpl['MAJOR'] = '<span class="text-muted"><em>Not Available</em></span>';
}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method buildInternshipForm uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
}else {
if (!is_null($this->intern)){
$depts = DepartmentFactory::getDepartmentsAssocForUsername(\Current_User::getUsername(), $this->intern->department_id);
}else{
$depts = DepartmentFactory::getDepartmentsAssocForUsername(\Current_User::getUsername());
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
Avoid using static access to class 'Intern\Internship' in method 'plugStudent'. Open
$campus = Internship::getCampusAssoc();
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
The method plugSupervisor uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$this->formVals['supervisor_province'] = $this->supervisor->supervisor_province;
$this->form->setMatch('supervisor_country', $this->supervisor->supervisor_country);
}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method plugInternInfo uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$this->form->setValue('oied_certified_hidden', 'false');
}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
Avoid using static access to class '\Intern\DepartmentFactory' in method 'buildInternshipForm'. Open
$depts = DepartmentFactory::getDepartmentsAssocForUsername(\Current_User::getUsername(), $this->intern->department_id);
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
The method plugInternInfo uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$this->form->setMatch('payment', 'unpaid');
}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
Avoid using static access to class 'Intern\Subject' in method 'plugCourseInfo'. Open
$this->form->addSelect('course_subj', array('-1' => 'Select Subject...') + Subject::getSubjects($this->intern->course_subj));
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\Intern\DepartmentFactory' in method 'buildInternshipForm'. Open
$depts = DepartmentFactory::getDepartmentsAssoc($this->intern->department_id);
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
The method plugStudent uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
}else{
$this->tpl['LEVEL'] = $this->intern->getLevelFormatted();
}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method plugStudent uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
if($this->intern->getMajorDescription() != null){
$this->tpl['MAJOR'] = $this->intern->getMajorDescription();
} else{
$this->tpl['MAJOR'] = '<span class="text-muted"><em>Not Available</em></span>';
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method plugStudent uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
if($this->intern->getMajorDescription() != null){
$this->tpl['MAJOR'] = $this->intern->getMajorDescription();
} else{
$this->tpl['MAJOR'] = '<span class="text-muted"><em>Not Available</em></span>';
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
Avoid using static access to class '\Current_User' in method 'buildInternshipForm'. Open
if(\Current_User::allow('intern', $p)){
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\Intern\DepartmentFactory' in method 'buildInternshipForm'. Open
$depts = DepartmentFactory::getDepartmentsAssoc();
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
The method buildInternshipForm uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$countries = CountryFactory::getCountries();
asort($countries, SORT_STRING);
$countries = array('-1' => 'Select Country') + $countries;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
Avoid using static access to class 'Intern\Subject' in method 'buildInternshipForm'. Open
$subjects = array("-1" => "Select subject...") + Subject::getSubjects();
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\Current_User' in method 'buildInternshipForm'. Open
if (\Current_User::isDeity()) {
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'Intern\CountryFactory' in method 'buildInternshipForm'. Open
$countries = CountryFactory::getCountries();
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\Current_User' in method 'buildInternshipForm'. Open
} else if(!\Current_User::allow('intern', 'create_internship')){
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
The method buildInternshipForm uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
}else{
$this->tpl['TERM'] = $this->term->getDescription();
}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
Avoid using static access to class 'Intern\Internship' in method 'buildInternshipForm'. Open
$this->form->addRadioAssoc('experience_type', Internship::getTypesAssoc());
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\Current_User' in method 'plugStudent'. Open
if (\Current_User::isDeity()) {
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
The method plugStudent uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
}else{
$this->tpl['CAMPUS'] = $this->intern->getCampusFormatted();
}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
Avoid using static access to class '\Current_User' in method 'buildInternshipForm'. Open
$depts = DepartmentFactory::getDepartmentsAssocForUsername(\Current_User::getUsername());
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class 'Intern\SubHostFactory' in method 'plugHost'. Open
$host_id = SubHostFactory::getSubHostCond($this->host->main_host_id, $this->host->state, $this->host->country);
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\Intern\DepartmentFactory' in method 'buildInternshipForm'. Open
$depts = DepartmentFactory::getDepartmentsAssocForUsername(\Current_User::getUsername());
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\Current_User' in method 'plugHost'. Open
if (!\Current_User::isDeity()) {
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\Layout' in method '__construct'. Open
\Layout::addPageTitle('Edit Internship');
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\Current_User' in method '__construct'. Open
$this->tpl['DEITY_STAT'] = \Current_User::isDeity();
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
The method buildInternshipForm uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$depts = DepartmentFactory::getDepartmentsAssoc();
}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method plugHost uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else {
$this->tpl['HOST_PROVINCE'] = $this->host->province;
$this->tpl['HOST_COUNTRY'] = $this->host->country;
$this->tpl['HOST_ZIP_LABEL_TEXT'] = 'Postal Code';
}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method buildInternshipForm uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
}else{
$this->tpl['BACK_CHECK_REQUEST_BTN'] = 'Send Background Check Request';
}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
The method buildInternshipForm uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
}else{
$depts = DepartmentFactory::getDepartmentsAssocForUsername(\Current_User::getUsername());
}
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
ElseExpression
Since: 1.4.0
An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.
Example
class Foo
{
public function bar($flag)
{
if ($flag) {
// one branch
} else {
// another branch
}
}
}
Source https://phpmd.org/rules/cleancode.html#elseexpression
Call to method __construct
from undeclared class \PHPWS_Form
Open
$this->form = new \PHPWS_Form('internship');
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared method \Intern\WorkflowState::getAllowedPermissionList
Open
$permAllowSave = $currentState->getAllowedPermissionList();
- Create a ticketCreate a ticket
- Exclude checks
Call to method addSubmit
from undeclared class \PHPWS_Form
Open
$this->form->addSubmit('submit', 'Refresh');
- Create a ticketCreate a ticket
- Exclude checks
Saw an @param annotation for pagetitle,
but it was not found in the param list of function __construct(\Intern\Internship $i, ?\Intern\Student $student = null, \Intern\SubHost $host, \Intern\Supervisor $supervisor, \Intern\Term $term, $studentExistingCreditHours)
Open
* @param string $pagetitle
- Create a ticketCreate a ticket
- Exclude checks
Call to method mergeTemplate
from undeclared class \PHPWS_Form
Open
$this->form->mergeTemplate($this->getTemplateTags());
- Create a ticketCreate a ticket
- Exclude checks
Call to method allow
from undeclared class \Current_User
Open
if(\Current_User::allow('intern', $p)){
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared function \javascriptMod()
Open
javascriptMod('intern', 'formGoodies', array('perm' => (string)$permAllowed, 'id' => $this->intern->getId()));
- Create a ticketCreate a ticket
- Exclude checks
Call to method isDeity
from undeclared class \Current_User
Open
if (\Current_User::isDeity()) {
- Create a ticketCreate a ticket
- Exclude checks
Required argument follows optional Open
public function __construct(Internship $i, Student $student = null, SubHost $host, Supervisor $supervisor, Term $term, $studentExistingCreditHours)
- Create a ticketCreate a ticket
- Exclude checks
Call to method isDeity
from undeclared class \Current_User
Open
$this->tpl['DEITY_STAT'] = \Current_User::isDeity();
- Create a ticketCreate a ticket
- Exclude checks
Call to method setAction
from undeclared class \PHPWS_Form
Open
$this->form->setAction('index.php?module=intern&action=SaveInternship');
- Create a ticketCreate a ticket
- Exclude checks
Possibly zero references to use statement for classlike/namespace MajorRest
(\Intern\Command\MajorRest)
Open
use Intern\Command\MajorRest;
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared function \javascript()
Open
javascript('jquery_ui');
- Create a ticketCreate a ticket
- Exclude checks
Call to method allow
from undeclared class \Current_User
Open
if($this->intern->getStateName() != 'DeniedState' && \Current_User::allow('intern', 'create_internship')){
- Create a ticketCreate a ticket
- Exclude checks
Call to method addPageTitle
from undeclared class \Layout
Open
\Layout::addPageTitle('Edit Internship');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addSubmit
from undeclared class \PHPWS_Form
Open
$this->form->addSubmit('submit', 'Save');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setAction
from undeclared class \PHPWS_Form
Open
$this->form->setAction('index.php?module=intern&action=ShowInternship&internship_id=' . $this->intern->getId());
- Create a ticketCreate a ticket
- Exclude checks
Call to undeclared function \javascript()
Open
javascript('jquery');
- Create a ticketCreate a ticket
- Exclude checks
Call to method getUsername
from undeclared class \Current_User
Open
$depts = DepartmentFactory::getDepartmentsAssocForUsername(\Current_User::getUsername());
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('supervisor_zip', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('supervisor_state', 'State');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addSelect
from undeclared class \PHPWS_Form
Open
$this->form->addSelect('remote_state', State::$UNITED_STATES);
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('course_no', 'Number');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCheck
from undeclared class \PHPWS_Form
Open
$this->form->addCheck('oied_certified');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addText
from undeclared class \PHPWS_Form
Open
$this->form->addText('student_phone');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCheck
from undeclared class \PHPWS_Form
Open
$this->form->addCheck('bgcheck');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setExtra
from undeclared class \PHPWS_Form
Open
$this->form->setExtra('faculty', 'disabled');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addText
from undeclared class \PHPWS_Form
Open
$this->form->addText('supervisor_first_name');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addText
from undeclared class \PHPWS_Form
Open
$this->form->addText('supervisor_email');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setMatch
from undeclared class \PHPWS_Form
Open
$this->form->setMatch('term', $this->intern->term);
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('multipart', 'This internship is part of a multi-part experience.');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addTextArea
from undeclared class \PHPWS_Form
Open
$this->form->addTextArea('notes');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setMatch
from undeclared class \PHPWS_Form
Open
$this->form->setMatch('level', $this->intern->level);
- Create a ticketCreate a ticket
- Exclude checks
Call to method allow
from undeclared class \Current_User
Open
} else if(!\Current_User::allow('intern', 'create_internship')){
- Create a ticketCreate a ticket
- Exclude checks
Call to method setMatch
from undeclared class \PHPWS_Form
Open
$this->form->setMatch('department', $keys[1]);
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('supervisor_title', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('supervisor_email', 'Email');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('copy_address', "Supervisor's information is same as host's");
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('supervisor_city', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('avg_hours_week', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('course_sect', 'Section');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addText
from undeclared class \PHPWS_Form
Open
$this->form->addText('course_title');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('corequisite_course_sect', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addText
from undeclared class \PHPWS_Form
Open
$this->form->addText('pay_rate');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('notes', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addSelect
from undeclared class \PHPWS_Form
Open
$this->form->addSelect('level', $level);
- Create a ticketCreate a ticket
- Exclude checks
Call to method addHidden
from undeclared class \PHPWS_Form
Open
$this->form->addHidden('supervisor_id', $this->supervisor->id);
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('student_preferred_name', 'Chosen Name');
- Create a ticketCreate a ticket
- Exclude checks
Call to method isDeity
from undeclared class \Current_User
Open
if (\Current_User::isDeity()) {
- Create a ticketCreate a ticket
- Exclude checks
Call to method addSelect
from undeclared class \PHPWS_Form
Open
$this->form->addSelect('faculty', array(-1=>'Select Faculty Supervisor'));
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('supervisor_address', 'Address');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addText
from undeclared class \PHPWS_Form
Open
$this->form->addText('supervisor_province');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('supervisor_province', 'Province');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('start_date', 'Start Date');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('credits', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCheck
from undeclared class \PHPWS_Form
Open
$this->form->addCheck('secondary_part');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('course_sect', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setMatch
from undeclared class \PHPWS_Form
Open
$this->form->setMatch('experience_type', 'internship');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addHidden
from undeclared class \PHPWS_Form
Open
$this->form->addHidden('form_token', $this->intern->getFormToken());
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('campus', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setMatch
from undeclared class \PHPWS_Form
Open
$this->form->setMatch('supervisor_country', $this->supervisor->supervisor_country);
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('oied_certified', 'Certified by Office of International Education and Development');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('supervisor_last_name', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addText
from undeclared class \PHPWS_Form
Open
$this->form->addText('supervisor_title');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('supervisor_phone', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('supervisor_state', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('supervisor_fax', 'Fax');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setMaxSize
from undeclared class \PHPWS_Form
Open
$this->form->setMaxSize('course_title',28); // Limit to 28 chars, per Banner
- Create a ticketCreate a ticket
- Exclude checks
Call to method addText
from undeclared class \PHPWS_Form
Open
$this->form->addText('corequisite_course_sect');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addSelect
from undeclared class \PHPWS_Form
Open
$this->form->addSelect('campus', $campus);
- Create a ticketCreate a ticket
- Exclude checks
Reference to undeclared property \Intern\Supervisor->address_same_flag
Open
$this->formVals['copy_address'] = $this->supervisor->address_same_flag == 't';
- Create a ticketCreate a ticket
- Exclude checks
Call to method getUsername
from undeclared class \Current_User
Open
$depts = DepartmentFactory::getDepartmentsAssocForUsername(\Current_User::getUsername(), $this->intern->department_id);
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('supervisor_title', 'Title');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addText
from undeclared class \PHPWS_Form
Open
$this->form->addText('supervisor_city');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addHidden
from undeclared class \PHPWS_Form
Open
$this->form->addHidden('location', 'international');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('remote_state', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addText
from undeclared class \PHPWS_Form
Open
$this->form->addText('host_phone');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCheck
from undeclared class \PHPWS_Form
Open
$this->form->addCheck('multipart');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addHidden
from undeclared class \PHPWS_Form
Open
$this->form->addHidden('oied_certified_hidden');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addText
from undeclared class \PHPWS_Form
Open
$this->form->addText('student_preferred_name');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setMatch
from undeclared class \PHPWS_Form
Open
$this->form->setMatch('dcheck', $this->intern->dcheck);
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('department', 'Department');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('supervisor_last_name', 'Last Name');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('supervisor_country', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('supervisor_fax', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('avg_hours_week', 'Average Hours per Week');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('course_subj', 'Subject');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCheck
from undeclared class \PHPWS_Form
Open
$this->form->addCheck('stipend');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setMatch
from undeclared class \PHPWS_Form
Open
$this->form->setMatch('SUB_NAME', $this->host->id);
- Create a ticketCreate a ticket
- Exclude checks
Call to method setExtra
from undeclared class \PHPWS_Form
Open
$this->form->setExtra('oied_certified', 'disabled="disabled" disabled');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('credits', 'Credit Hours');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addText
from undeclared class \PHPWS_Form
Open
$this->form->addText('course_no');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('course_no', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setMatch
from undeclared class \PHPWS_Form
Open
$this->form->setMatch('campus', $this->intern->campus);
- Create a ticketCreate a ticket
- Exclude checks
Call to method addHidden
from undeclared class \PHPWS_Form
Open
$this->form->addHidden('internship_id', $this->intern->id);
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('student_phone', 'Phone');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('student_phone', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('department', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('faculty', 'Faculty Supervisor / Instructor of Record');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addText
from undeclared class \PHPWS_Form
Open
$this->form->addText('supervisor_last_name');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('supervisor_country', 'Country');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setMatch
from undeclared class \PHPWS_Form
Open
$this->form->setMatch('experience_type', $this->intern->getExperienceType());
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('student_preferred_name', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCheck
from undeclared class \PHPWS_Form
Open
$this->form->addCheck('dcheck');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('faculty', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addHidden
from undeclared class \PHPWS_Form
Open
$this->form->addHidden('faculty_id');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('supervisor_email', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('host_phone', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addText
from undeclared class \PHPWS_Form
Open
$this->form->addText('course_sect');
- Create a ticketCreate a ticket
- Exclude checks
Call to method plugIn
from undeclared class \PHPWS_Form
Open
$this->form->plugIn($this->formVals);
- Create a ticketCreate a ticket
- Exclude checks
Call to method isDeity
from undeclared class \Current_User
Open
if (!\Current_User::isDeity()) {
- Create a ticketCreate a ticket
- Exclude checks
Call to method addHidden
from undeclared class \PHPWS_Form
Open
$this->form->addHidden('host_id', $this->host->id);
- Create a ticketCreate a ticket
- Exclude checks
Argument 2 (timestamp)
is null
but \date()
takes int
Open
$this->formVals['end_date'] = $this->intern->end_date ? date('m/d/Y', $this->intern->end_date) : null;
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('supervisor_first_name', 'First Name');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('supervisor_province', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addText
from undeclared class \PHPWS_Form
Open
$this->form->addText('start_date');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('end_date', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addText
from undeclared class \PHPWS_Form
Open
$this->form->addText('credits');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addSelect
from undeclared class \PHPWS_Form
Open
$this->form->addSelect('course_subj', $subjects);
- Create a ticketCreate a ticket
- Exclude checks
Call to method addRadioAssoc
from undeclared class \PHPWS_Form
Open
$this->form->addRadioAssoc('payment', $pay);
- Create a ticketCreate a ticket
- Exclude checks
Call to method isDeity
from undeclared class \Current_User
Open
if (\Current_User::isDeity()) {
- Create a ticketCreate a ticket
- Exclude checks
Call to method allow
from undeclared class \Current_User
Open
if(!\Current_User::allow('intern', 'oied_certify') || $this->intern->isDomestic()){
- Create a ticketCreate a ticket
- Exclude checks
Call to method allow
from undeclared class \Current_User
Open
if(\Current_User::allow('intern', 'sig_auth_approve')){
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCheck
from undeclared class \PHPWS_Form
Open
$this->form->addCheck('copy_address');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('supervisor_zip', 'Zip Code');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addSelect
from undeclared class \PHPWS_Form
Open
$this->form->addSelect('supervisor_country', $countries);
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('term', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('secondary_part', 'This is a secondary part (enrollment complete through primary part).');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('course_subj', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setMatch
from undeclared class \PHPWS_Form
Open
$this->form->setMatch('payment', 'unpaid'); // Default to unpaid
- Create a ticketCreate a ticket
- Exclude checks
Call to method addRadioAssoc
from undeclared class \PHPWS_Form
Open
$this->form->addRadioAssoc('experience_type', Internship::getTypesAssoc());
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('SUB_NAME', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Argument 2 (timestamp)
is null
but \date()
takes int
Open
$this->formVals['start_date'] = $this->intern->start_date ? date('m/d/Y', $this->intern->start_date) : null;
- Create a ticketCreate a ticket
- Exclude checks
Call to method addText
from undeclared class \PHPWS_Form
Open
$this->form->addText('supervisor_phone');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('supervisor_address', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method allow
from undeclared class \Current_User
Open
if (\Current_User::allow('intern', 'change_term')) {
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('end_date', 'End Date');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('course_title', 'Title');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('pay_rate', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Argument 1 (termCode)
is int
but \Intern\TermFactory::getTermByTermCode()
takes string
defined at /code/class/TermFactory.php:32
Open
$term = TermFactory::getTermByTermCode($this->intern->getTerm());
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('supervisor_zip', 'Postal Code');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addHidden
from undeclared class \PHPWS_Form
Open
$this->form->addHidden('location', 'domestic');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCheck
from undeclared class \PHPWS_Form
Open
$this->form->addCheck('remote');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addSelect
from undeclared class \PHPWS_Form
Open
$this->form->addSelect('term', $terms);
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('start_date', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('corequisite_course_num', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('pay_rate', 'Pay Rate');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('level', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addSelect
from undeclared class \PHPWS_Form
Open
$this->form->addSelect('course_subj', array('-1' => 'Select Subject...') + Subject::getSubjects($this->intern->course_subj));
- Create a ticketCreate a ticket
- Exclude checks
Call to method setValue
from undeclared class \PHPWS_Form
Open
$this->form->setValue('oied_certified_hidden', 'true');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('supervisor_phone', 'Phone');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addText
from undeclared class \PHPWS_Form
Open
$this->form->addText('supervisor_address');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('remote', 'This internship is remote.');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addText
from undeclared class \PHPWS_Form
Open
$this->form->addText('end_date');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addText
from undeclared class \PHPWS_Form
Open
$this->form->addText('corequisite_course_num');
- Create a ticketCreate a ticket
- Exclude checks
Call to method isDeity
from undeclared class \Current_User
Open
if (\Current_User::isDeity()) {
- Create a ticketCreate a ticket
- Exclude checks
Call to method setMatch
from undeclared class \PHPWS_Form
Open
$this->form->setMatch('remote', '1');
- Create a ticketCreate a ticket
- Exclude checks
Call to method dropElement
from undeclared class \PHPWS_Form
Open
$this->form->dropElement('course_subj');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setMatch
from undeclared class \PHPWS_Form
Open
$this->form->setMatch('bgcheck', $this->intern->bgcheck);
- Create a ticketCreate a ticket
- Exclude checks
Call to method addSelect
from undeclared class \PHPWS_Form
Open
$this->form->addSelect('department', $depts);
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('supervisor_first_name', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('supervisor_city', 'City');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addText
from undeclared class \PHPWS_Form
Open
$this->form->addText('supervisor_zip');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addSelect
from undeclared class \PHPWS_Form
Open
$this->form->addSelect('supervisor_state', State::$UNITED_STATES);
- Create a ticketCreate a ticket
- Exclude checks
Call to method addText
from undeclared class \PHPWS_Form
Open
$this->form->addText('supervisor_fax');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('remote_state', 'Remote State');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addText
from undeclared class \PHPWS_Form
Open
$this->form->addText('avg_hours_week');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('course_title', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('stipend', 'Stipend');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setLabel
from undeclared class \PHPWS_Form
Open
$this->form->setLabel('notes', 'Notes');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addSelect
from undeclared class \PHPWS_Form
Open
$this->form->addSelect('SUB_NAME', $host_id);
- Create a ticketCreate a ticket
- Exclude checks
Call to method setMatch
from undeclared class \PHPWS_Form
Open
$this->form->setMatch('course_subj', $this->intern->course_subj);
- Create a ticketCreate a ticket
- Exclude checks
Call to method setMatch
from undeclared class \PHPWS_Form
Open
$this->form->setMatch('multipart', '1');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setMatch
from undeclared class \PHPWS_Form
Open
$this->form->setMatch('secondary_part', '1');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setMatch
from undeclared class \PHPWS_Form
Open
$this->form->setMatch('stipend', $this->intern->stipend);
- Create a ticketCreate a ticket
- Exclude checks
Call to method setMatch
from undeclared class \PHPWS_Form
Open
$this->form->setMatch('payment', 'paid');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setMatch
from undeclared class \PHPWS_Form
Open
$this->form->setMatch('payment', 'unpaid');
- Create a ticketCreate a ticket
- Exclude checks
Call to method setMatch
from undeclared class \PHPWS_Form
Open
$this->form->setMatch('oied_certified', true);
- Create a ticketCreate a ticket
- Exclude checks
Call to method setValue
from undeclared class \PHPWS_Form
Open
$this->form->setValue('oied_certified_hidden', 'false');
- Create a ticketCreate a ticket
- Exclude checks
Call to method addCssClass
from undeclared class \PHPWS_Form
Open
$this->form->addCssClass('course_subj', 'form-control');
- Create a ticketCreate a ticket
- Exclude checks
Avoid excessively long variable names like $studentExistingCreditHours. Keep variable name length under 20. Open
public function __construct(Internship $i, Student $student = null, SubHost $host, Supervisor $supervisor, Term $term, $studentExistingCreditHours)
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
LongVariable
Since: 0.2
Detects when a field, formal or local variable is declared with a long name.
Example
class Something {
protected $reallyLongIntName = -3; // VIOLATION - Field
public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
$otherReallyLongName = -5; // VIOLATION - Local
for ($interestingIntIndex = 0; // VIOLATION - For
$interestingIntIndex < 10;
$interestingIntIndex++ ) {
}
}
}
Source https://phpmd.org/rules/naming.html#longvariable
Avoid excessively long variable names like $studentExistingCreditHours. Keep variable name length under 20. Open
private $studentExistingCreditHours;
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
LongVariable
Since: 0.2
Detects when a field, formal or local variable is declared with a long name.
Example
class Something {
protected $reallyLongIntName = -3; // VIOLATION - Field
public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
$otherReallyLongName = -5; // VIOLATION - Local
for ($interestingIntIndex = 0; // VIOLATION - For
$interestingIntIndex < 10;
$interestingIntIndex++ ) {
}
}
}
Source https://phpmd.org/rules/naming.html#longvariable
Avoid variables with short names like $i. Configured minimum length is 3. Open
public function __construct(Internship $i, Student $student = null, SubHost $host, Supervisor $supervisor, Term $term, $studentExistingCreditHours)
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
ShortVariable
Since: 0.2
Detects when a field, local, or parameter has a very short name.
Example
class Something {
private $q = 15; // VIOLATION - Field
public static function main( array $as ) { // VIOLATION - Formal
$r = 20 + $this->q; // VIOLATION - Local
for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
$r += $this->q;
}
}
}
Source https://phpmd.org/rules/naming.html#shortvariable
The variable $host_id is not named in camelCase. Open
private function plugHost() {
if (!\Current_User::isDeity()) {
$this->tpl['HOST_NAME'] = $this->host->getMainName();
$host_id = SubHostFactory::getSubHostCond($this->host->main_host_id, $this->host->state, $this->host->country);
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $host_id is not named in camelCase. Open
private function plugHost() {
if (!\Current_User::isDeity()) {
$this->tpl['HOST_NAME'] = $this->host->getMainName();
$host_id = SubHostFactory::getSubHostCond($this->host->main_host_id, $this->host->state, $this->host->country);
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $host_id is not named in camelCase. Open
private function plugHost() {
if (!\Current_User::isDeity()) {
$this->tpl['HOST_NAME'] = $this->host->getMainName();
$host_id = SubHostFactory::getSubHostCond($this->host->main_host_id, $this->host->state, $this->host->country);
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $host_id is not named in camelCase. Open
private function plugHost() {
if (!\Current_User::isDeity()) {
$this->tpl['HOST_NAME'] = $this->host->getMainName();
$host_id = SubHostFactory::getSubHostCond($this->host->main_host_id, $this->host->state, $this->host->country);
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}