Skip to content

Improve formatting of the end brace when auto fixing InlineControlStructure errors #1121

@benwaffle

Description

@benwaffle

run cbf with psr2 on:

<?php foreach ($activeStudents7 as $n) { if (!isset($rows[$n->$level_id])) continue; // archived entities $rows[$n->$level_id]['num_active_7']++; $rows[$n->$level_id]['total_hours_7'] += $n->minutes / 60.0; }

the outcome is:

<?php foreach ($activeStudents7 as $n) { if (!isset($rows[$n->$level_id])) { continue; // archived entities } $rows[$n->$level_id]['num_active_7']++; $rows[$n->$level_id]['total_hours_7'] += $n->minutes / 60.0; }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions