Skip to content

Commit

Permalink
Fix for QA bug #895 - %s/\(get_class([^)]*)\)/strtolower(\1)/g
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcastagnetto committed Apr 10, 2004
1 parent 0c1936d commit e55c3a6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Chemistry/Atom.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function distance($atom2) {
*/
function isAtom($obj) {
return (is_object($obj) &&
(strtolower(get_class($obj)) == strtolower("Science_Chemistry_Atom")
(strtolower(strtolower(get_class($obj))) == strtolower("Science_Chemistry_Atom")
|| is_subclass_of($obj, strtolower("Science_Chemistry_Atom")))
);
}
Expand Down
2 changes: 1 addition & 1 deletion Chemistry/Coordinates.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function distance($coord) {
*/
function areCoordinates($obj) {
return ( is_object($obj) &&
(strtolower(get_class($obj)) == strtolower("Science_Chemistry_Coordinates")
(strtolower(strtolower(get_class($obj))) == strtolower("Science_Chemistry_Coordinates")
|| is_subclass_of($obj, strtolower("Science_Chemistry_Coordinates")))
);
}
Expand Down
2 changes: 1 addition & 1 deletion Chemistry/Element.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function Science_Chemistry_Element ($sym, $name, $num, $wgt, $mp, $bp, $fam) {
*/
function isElement($obj) {
return (is_object($obj) &&
(get_class($obj) == "Science_Chemistry_Element" ||
(strtolower(get_class($obj)) == "Science_Chemistry_Element" ||
is_subclass_of($obj, "Science_Chemistry_Element"))
);
}
Expand Down
2 changes: 1 addition & 1 deletion Chemistry/Macromolecule.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function getMolecules() {
*/
function isMacromolecule($obj) {
return (is_object($obj) &&
(strtolower(get_class($obj)) == strtolower("Science_Chemistry_Macromolecule") ||
(strtolower(strtolower(get_class($obj))) == strtolower("Science_Chemistry_Macromolecule") ||
is_subclass_of($obj, strtolower("Science_Chemistry_Macromolecule")))
);
}
Expand Down
2 changes: 1 addition & 1 deletion Chemistry/Molecule.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ function getAtoms() {
*/
function isMolecule($obj) {
return (is_object($obj) &&
(strtolower(get_class($obj)) == strtolower("Science_Chemistry_Molecule") ||
(strtolower(strtolower(get_class($obj))) == strtolower("Science_Chemistry_Molecule") ||
is_subclass_of($obj, strtolower("Science_Chemistry_Molecule")))
);
}
Expand Down

0 comments on commit e55c3a6

Please sign in to comment.