Re: Change the coding guidelines
							
								
							
							
								Reply #2 – 
							
							
						
					
					
						Curly brackets { }
No offense but this is beyond the scope of newbie discussion
						
						
					
				
				
						
						
							Re: Change the coding guidelines
							
								
							
							
								Reply #4 – 
							
							
						
					
					
						When I wrote the coding guidelines for SMF way back when there were some people that were concerned about the size of the files and I was stupid. So it was written that a one-line block shouldn't use curly brackets. Most of the conditional blocks are a single line so there's tons of cases of not using curly brackets.
						
						
					
				
				
						
						
							Re: Change the coding guidelines
							
								
							
							
								Reply #8 – 
							
							
						
					
					
						Lol, just spotted a bug while reading your reply. Gonna post soon.
						
						
					
				
				
						
						
							Re: Change the coding guidelines
							
								
							
							
								Reply #9 – 
							
							
						
					
					
						Its fine with me as well ... although I don't tend to {} the pure one liners I can get used to it and TBH I added a lot of {} in 1.0   It also helps with most ide's which add them automatically anyway.
						
						
					
				
				
						
						
							Re: Change the coding guidelines
							
								
							
							
								Reply #11 – 
							
							
						
					
					
						I like them since it makes it easier to add a debug line anywhere with ease and improves any code folding that I may want to do. 
I know I tweaked the inspections (Settings->editor->code style->inspections such as don't complain when a docblock does not have an @return statement and use of the silence operator like on all those chmod's etc ... I don't recall the {} being in there but must be as well.