See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
class FrogBuilder { | |
constructor(name, gender) { | |
// Ensure that the first character is always capitalized | |
this.name = name.charAt(0).toUpperCase() + name.slice(1) | |
this.gender = gender | |
} | |
formatEyesCorrectly(eyes) { | |
return Array.isArray(eyes) ? { left: eye[0], right: eye[1] } : eyes | |
} | |
setEyes(eyes) { |
/** | |
* Implements hook_query_alter(). | |
*/ | |
function evosys_redirect_query_alter($query) { | |
if ($query->hasTag('debug')) { | |
$sql = (string)$query; | |
$connection = Database::getConnection(); | |
foreach ((array) $query->arguments() as $key => $val) { | |
$quoted[$key] = $connection->quote($val); | |
} |