Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
6 / 6 |
Installer | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
3 | |
100.00% |
6 / 6 |
install | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
uninstall | |
100.00% |
1 / 1 |
2 | |
100.00% |
4 / 4 |
<?php | |
/** | |
* Installer Class | |
* | |
* @category PHP | |
* @package WpWodify | |
* @subpackage Installer | |
* @since File available since release 1.0.x | |
* @author Cory Collier <corycollier@corycollier.com> | |
*/ | |
namespace WpWodify; | |
/** | |
* Installer Class | |
* | |
* @category PHP | |
* @package WpWodify | |
* @subpackage Installer | |
* @since Class available since release 1.0.x | |
* @author Cory Collier <corycollier@corycollier.com> | |
*/ | |
class Installer { | |
/** | |
* Installs the plugin | |
* @return [type] [description] | |
*/ | |
public function install() { | |
// really not needed here, but this is always a good housekeeping measure | |
flush_rewrite_rules(); | |
} | |
/** | |
* Uninstalls the plugin | |
* @return [type] [description] | |
*/ | |
public function uninstall() { | |
if (! defined('WP_UNINSTALL_PLUGIN')) { | |
return; | |
} | |
// really not needed here, but this is always a good housekeeping measure | |
flush_rewrite_rules(); | |
} | |
} |