Showing 521 of 706 total issues
Method createParagraph
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
protected function createParagraph($bundle): EntityInterface {
// We've already created this paragraph type, just duplicated i.
if (isset($this->paragraphs[$bundle])) {
return $this->paragraphs[$bundle]->createDuplicate();
}
Method buildConfigurationForm
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
$form = parent::buildConfigurationForm($form, $form_state);
// Extra CSS classes.
$form['extra_classes'] = [
Function attach
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
attach: function attach(context, settings) {
if (settings?.stanfordNews?.hideSocial) {
return;
}
Method toolbar
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function toolbar() {
$notification_list = $this->getToolbarTrayItems($this->getUserNotifications());
$items['notifications'] = [
'#type' => 'toolbar_item',
Avoid using undefined variables such as '$row' which will lead to PHP notices. Open
$row['label'] = $entity->label();
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$requirements' which will lead to PHP notices. Open
$requirements['stanford_person_importer_encrypt'] = [
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$row' which will lead to PHP notices. Open
return $row + parent::buildRow($entity);
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$extra' which will lead to PHP notices. Open
return $extra;
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$themes' which will lead to PHP notices. Open
$themes['rabbit_hole_message'] = [
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$header' which will lead to PHP notices. Open
$header['id'] = $this->t('Machine name');
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$items' which will lead to PHP notices. Open
$items['notifications'] = [
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$row' which will lead to PHP notices. Open
$row['id'] = $entity->id();
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$themes' which will lead to PHP notices. Open
return $themes;
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$themes' which will lead to PHP notices. Open
$themes['block__stanford_basic_search'] = [
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$items' which will lead to PHP notices. Open
return $items;
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$header' which will lead to PHP notices. Open
$header['label'] = $this->t('Citation type');
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$extra' which will lead to PHP notices. Open
$extra['node']['stanford_publication']['display']['citation_type'] = [
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$requirements' which will lead to PHP notices. Open
return $requirements;
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Avoid using undefined variables such as '$header' which will lead to PHP notices. Open
return $header + parent::buildHeader();
- Read upRead up
- Exclude checks
UndefinedVariable
Since: 2.8.0
Detects when a variable is used that has not been defined before.
Example
class Foo
{
private function bar()
{
// $message is undefined
echo $message;
}
}
Source https://phpmd.org/rules/cleancode.html#undefinedvariable
Method insertOrgData
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
protected function insertOrgData(array $org_data, TermInterface $parent = NULL): void {
if (!isset($org_data['orgCodes'])) {
return;
}