HomePhabricator

[CodeReview] Simplifying SpecialCode::getViewFrom(), as there is a bunch of…

Authored by HappyDog.

Description

[CodeReview] Simplifying SpecialCode::getViewFrom(), as there is a bunch of duplication there. Now the class names are defined in a static array, so we can use a simple bit of logic to decide which class to instantiate, instead of two very similar and very long if/else blocks.

Details

Committed
HappyDogMay 27 2011, 9:34 AM
Parents
rECREc88741833f0d: [CodeReview] Follow-up to r83345. I've updated svnImport.php to use…
Branches
Unknown
Tags
Unknown
ChangeId
None