master
public static function svg($country_code, $version = false)
A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.
class Foo { public function bar($flag = true) { }}