Hello,
I need to create a bash script that adds a row before every curly bracket for functions, classes (classes and methods) and try/catch blocks in PHP code.
I think using the program in conjunction with sed
E.G. : find . -type f \( -name "*.php \) -exec sed …
For example:
<?php
function my_function() {
}
Becomes:
<?php
function my_function()
{
}
Can you help me so that I can achieve this, please?
Thank you!