2.3.26. Dead code¶

This ruleset focuses on dead code : expressions or even structures that are written, valid but never used.

Total : 33 analysis

  • Empty Traits

  • Unused Use

  • Unused Private Properties

  • Unused Private Methods

  • Unused Functions

  • Unused Constants

  • Unreachable Code

  • Empty Instructions

  • Unused Methods

  • Unused Classes

  • Locally Unused Property

  • Unresolved Instanceof

  • Unthrown Exception

  • Unused Label

  • Unused Interfaces

  • Unresolved Catch

  • Unset In Foreach

  • Empty Namespace

  • Can’t Extend Final Class

  • Exception Order

  • Undefined Caught Exceptions

  • Unused Protected Methods

  • Unused Returned Value

  • Rethrown Exceptions

  • Unused Inherited Variable In Closure

  • Self Using Trait

  • Useless Type Check

  • Unreachable Method

  • Identical Elseif

  • Use Variable Created Inside Loop

  • Unused Enumeration Case

  • Static Variable In Namespace

  • Could Drop Variable

2.3.26.1. Specs¶

Short name

Dead code

Available in

Entreprise Edition, Exakat Cloud

Reports

Ambassador, Rector

Exakat

Navigation

  • Introduction
  • Release Note

GETTING STARTED

  • Standard installation
  • Docker installation
  • Tutorials

USER GUIDE

  • Overview
  • PHP Version
  • Library & Framework Support
  • Configuration
  • Scoping analysis
  • Rule
  • Report
  • Cobbler

REFERENCE GUIDE

  • 1. Rules
  • 2. Rulesets
  • 3. Reports
  • 4. Cobblers
  • 5. Real Code Cases

ADMINISTRATOR GUIDE

  • Installation
  • Upgrading
  • Configuration
  • Commands

OTHERS

  • Frequently Asked Questions
  • Glossary
  • Annex

Related Topics

  • Documentation overview
    • 2. Rulesets
      • Previous: 2.3.25. CompatibilityPHP85
      • Next: 2.3.27. Deprecated
©2015-2025, Damien Seguy - Exakat. | Powered by Sphinx 8.2.3 & Alabaster 1.0.0 | Page source