How do you indent your code?
Style #1: Align PHP Starting/Ending Tags with Code
<?php
// Class providing generic data access functionality
class database_handler {
// Hold an instance of the PDO class
private static $_mHandler;
// Private constructor to prevent direct creation of object
private function __construct()
{
}
}
?>
Style #2: Indent Code from PHP Tags
<?php
// Class providing generic data access functionality
class database_handler {
// Hold an instance of the PDO class
private static $_mHandler;
// Private constructor to prevent direct creation of object
private function __construct()
{
}
}
?>
Using Style #1 saves you an extra indent.
Using Style #2 looks better to me.
Which Style do you prefer??
(Or do you have another Style you prefer??)
Amy