Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 448 Bytes

File metadata and controls

13 lines (10 loc) · 448 Bytes

Maintain consistent syntax and style for closures in CakePHP applications, enhancing readability and maintainability. Adhere to proper placement, indentation, and parameter declaration.

// Issue: Inconsistent closure declaration
$closure = function ($a,$b) {return $a +$b;};

// Solution: Consistent closure declaration
$closure = function ($a, $b) {
    return $a + $b;
};