Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 302876

Remove Unused local variables from the Views module

$
0
0

Part of meta-issue #2002650: [meta] improve maintainability by removing unused local variables

File /core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php

Line 855: Unused local variable $arg
Line 1470: Unused local variable $arg

Merged with:

#2072597-17: Remove Unused local variables from the Views module (this issue, comment #17)
File /core/modules/views/lib/Drupal/views/Plugin/views/argument_validator/Entity.php

Line 173: Unused local variable $ids

#2072597-17: Remove Unused local variables from the Views module (this issue, comment #17)
File /core/modules/views/lib/Drupal/views/Tests/Plugin/StyleTableUnitTest.php

Line 132: Unused local variable $style_plugin

#2072601: Remove Unused local variable $count from /core/modules/views/lib/Drupal/views/Plugin/views/area/Result.php
NOTE: The following are false positives! The variables are actually used.
File /core/modules/views/lib/Drupal/views/Plugin/views/area/Result.php

Line 71: Unused local variable $count
Line 75: Unused local variable $label
Line 77: Unused local variable $page_count
Line 82: Unused local variable $page_count
Line 90: Unused local variable $current_record_count

#2072613: Remove Unused local variable $view from /core/modules/views/lib/Drupal/views/Tests/ViewStorageTest.php
File /core/modules/views/lib/Drupal/views/Tests/ViewStorageTest.php

Line 222: Unused local variable $view

#2072617: Remove Unused local variable $base from /core/modules/views/lib/Drupal/views/Tests/Handler/FieldWebTest.php
File /core/modules/views/lib/Drupal/views/Tests/Handler/FieldWebTest.php

Line 207: Unused local variable $base
Line 208: Unused local variable $absolute_string
Line 232: Unused local variable $expected_result
Line 234: Unused local variable $result


Viewing all articles
Browse latest Browse all 302876

Trending Articles