Closed Mte90 closed 3 years ago
There are various and better ways that can remove this code from a boilerplate (https://github.com/WPBP/WordPress-Plugin-Boilerplate-Powered/blob/master/plugin-name/engine/Is_Methods.php) to an external library.
An idea can be create a wrapper to one of those and remove more code to be tested as it is delegated to the library.
PS: maybe change the name of the class as it is not allowed to have one of just 2 like Is so I added methods but is very horrible.
Is
There are various and better ways that can remove this code from a boilerplate (https://github.com/WPBP/WordPress-Plugin-Boilerplate-Powered/blob/master/plugin-name/engine/Is_Methods.php) to an external library.
An idea can be create a wrapper to one of those and remove more code to be tested as it is delegated to the library.
PS: maybe change the name of the class as it is not allowed to have one of just 2 like
Is
so I added methods but is very horrible.