# Code Style & Conventions

- Spaces inside parentheses: `if ( $x )`, `function( $a, $b )`
- Braces on new line for classes/functions
- 4-space indent in classes, 2-space in templates
- All controller/factory methods: `static public function`
- JSON endpoints: `echo json_encode([...]); exit;`
- Classes PascalCase, methods/variables/columns snake_case
- Commit messages in Polish, prefixed with `feat:`, `fix:`, etc.
