Skip to content

Commit 483efad

Browse files
committed
Removed closing PHP tag in class file
Remove closing PHP tag to follow best practices. "If a file is pure PHP code, it is preferable to omit the PHP closing tag at the end of the file. This prevents accidental whitespace or new lines being added after the PHP closing tag, which may cause unwanted effects because PHP will start output buffering when there is no intention from the programmer to send any output at that point in the script." References: - http://php.net/manual/en/language.basic-syntax.phptags.php - https://www.drupal.org/coding-standards#phptags - http://framework.zend.com/manual/current/en/ref/coding.standard.html#general
1 parent dded3a1 commit 483efad

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

MysqliDb.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1487,4 +1487,3 @@ public function tableExists ($tables) {
14871487
return $this->count == $count;
14881488
}
14891489
} // END class
1490-
?>

dbObject.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,4 +688,3 @@ public static function autoload ($path = null) {
688688
spl_autoload_register ("dbObject::dbObjectAutoload");
689689
}
690690
}
691-
?>

0 commit comments

Comments
 (0)