| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 4 | static function sync_options() { |
||
| 5 | _deprecated_function( __METHOD__, '4.1.0', 'jetpack_whitelist_options filter' ); |
||
| 6 | $options = func_get_args(); |
||
| 7 | // first argument is the file but we don't care about that any more. |
||
| 8 | $file = array_shift( $options ); |
||
|
|
|||
| 9 | if ( is_array( $options ) ) { |
||
| 10 | $client_sync = Jetpack_Sync_Client::getInstance(); |
||
| 11 | $client_sync->set_options_whitelist( array_merge( $options, $client_sync->get_options_whitelist() ) ); |
||
| 12 | } |
||
| 13 | } |
||
| 14 | } |
||
| 15 |
This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.
Both the
$myVarassignment in line 1 and the$higherassignment in line 2 are dead. The first because$myVaris never used and the second because$higheris always overwritten for every possible time line.