*/
function numFields( $res ) {
$r = $res instanceof ResultWrapper ? $res->result : $res;
- if ( is_array($r) && count( $r ) > 0 ){
+ if ( is_array( $r ) && count( $r ) > 0 ) {
// The size of the result array is twice the number of fields. (Bug: 65578)
- return count( $r[0] ) / 2 ;
+ return count( $r[0] ) / 2;
} else {
// If the result is empty return 0
return 0;
}
/**
- * @return string wikitext of a link to the server software's web site
+ * @return string Wikitext of a link to the server software's web site
*/
public function getSoftwareLink() {
return "[{{int:version-db-sqlite-url}} SQLite]";