2.3.37. Preferences¶

This ruleset identify code with multiple forms, and report when one is more frequent than the others. Echo vs print, shell_exec() vs ``, etc.

Total : 40 analysis

  • True False Inconsistant Case

  • Echo Or Print

  • Constant Comparison

  • Die Exit Consistence

  • Array() / [ ] Consistence

  • $GLOBALS Or global

  • Unset() Or (unset)

  • Close Tags Consistency

  • One Expression Brackets Consistency

  • New On Functioncall Or Identifier

  • New Line Style

  • Regex Delimiter

  • Empty Final Element In Array

  • Difference Consistence

  • Concatenation Interpolation Consistence

  • Heredoc Delimiter

  • strict_types Preference

  • Declare strict_types Usage

  • Encoding Usage

  • Ticks Usage

  • Logical Operators Favorite

  • Shell Favorite

  • Properties Declaration Consistence

  • Strict Or Relaxed Comparison

  • Comparisons Orientation

  • Const Or Define Preference

  • Constant Case Preference

  • Caught Variable

  • Not Or Tilde

  • Null Type Favorite

  • String Interpolation Favorite

  • Constant : With Or Without Use

  • If Then Return Favorite

  • Empty Array Detection

  • Strict In_Array() Preference

  • date() versus DateTime Preference

  • Mono Or Multibytes Favorite

  • Short Or Complete Comparison

  • Favorite Casting Method

  • is_a() Versus instanceof

2.3.37.1. Specs¶

Short name

Preferences

Available in

Entreprise Edition, Exakat Cloud

Reports

Ambassador, Diplomat

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.36. Performances
      • Next: 2.3.38. Rector
©2015-2025, Damien Seguy - Exakat. | Powered by Sphinx 9.0.4 & Alabaster 1.0.0 | Page source