Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | protected function update() { |
||
21 | include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; |
||
22 | |||
23 | $upgrader = new Language_Pack_Upgrader( new Automatic_Upgrader_Skin() ); |
||
24 | $result = $upgrader->bulk_upgrade(); |
||
25 | |||
26 | $this->log = $upgrader->skin->get_upgrade_messages(); |
||
27 | $this->success = ( ! is_wp_error( $result ) ) ? (bool) $result : false; |
||
28 | } |
||
29 | } |
||
30 |
This check looks for improperly formatted assignments.
Every assignment must have exactly one space before and one space after the equals operator.
To illustrate:
will have no issues, while
will report issues in lines 1 and 2.