PHP - styling code efficiently
<p>I'd need an advice.</p>

<p>After 4 months working on a project (after another developer), fixing bugs and upgrading, the main developer asked me to rechange coding style to what he prefers. 
I'm working with the framework he developed.
The style he prefers (and I wasn't warned before about that) is if(): .. endif; :</p>

<pre><code>&lt;?php if($this):?&gt;
this is an echo
&lt;?php endif;?&gt;
</code></pre>

<p>After years of development, I decided the best way of keeping code error-prone-ness is using </p>

<pre><code>if($this){
echo "this is a statement";
} 
</code></pre>

<p>Of course, I told him ok, but I have concerns: </p>

<p>I think that this style is</p>

<p>1- more error prone</p>

<p>2- it is difficult to debug</p>

<p>3- and also change the code now - all over the project, can be risky - I mean - I could easily make a mistake and things will start to crash - and I'm the one who has the main responsibility - I'm asked to fix possible bugs, re-change things, etc, mainly -  the only one working here.</p>

<p>The question is: is there an editor - which can help me to keep track of all 'endif', 'endforeach', etc? Or - how to make this style easier to debug?</p>

<p>Thanks.</p>
