Commented code should not be committed

More information: https://insight.symfony.com/what-we-analyse/php.commented_out_code

in Config/config.php, line 30
  1. |--------------------------------------------------------------------------
  2. | Add relations that will be dynamically added to the Block entity
  3. */
  4. 'relations' => [
  5. // 'extension' => function ($self) {
  6. // return $self->belongsTo(BlockExtension::class, 'id', 'block_id')->first();

    Commented out code reduces readability and lowers the code confidence for other developers. If it's common usage for debug, it should not be committed. Using a version control system, such code can be safely removed.

    Time to fix: about 30 minutes
    Open Issue Permalink
    Last edited by Nicolas Widart
  7. // }
  8. ],
  9. ];