code consistency: method arrangement and php doc block compatibility