| 1 | <?php |
||
| 6 | class FrmInstallPlugin { |
||
| 7 | |||
| 8 | protected $plugin_file; // format: folder/filename.php |
||
| 9 | protected $plugin_slug; |
||
| 10 | |||
| 11 | public function __construct( $atts ) { |
||
| 16 | |||
| 17 | public function get_activate_link() { |
||
| 29 | |||
| 30 | public function is_installed() { |
||
| 33 | |||
| 34 | public function is_active() { |
||
| 37 | |||
| 38 | protected function install_url() { |
||
| 41 | |||
| 42 | protected function activate_url() { |
||
| 45 | } |
||
| 46 |
This checks looks for assignemnts to variables using the
list(...)function, where not all assigned variables are subsequently used.Consider the following code example.
Only the variables
$aand$care used. There was no need to assign$b.Instead, the list call could have been.