This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
8
9
/**
10
* Checks whether the selected package version should be updated. Composer development
11
* package versions ('9999999-dev' or versions that start with 'dev-') are favored
12
* when the JETPACK_AUTOLOAD_DEV constant is set to true.
13
*
14
* @param String $selected_version The currently selected package version.
15
* @param String $compare_version The package version that is being evaluated to
16
* determine if the version needs to be updated.
17
*
18
* @return bool Returns true if the selected package version should be updated,
19
* else false.
20
*/
21
public function is_version_update_required( $selected_version, $compare_version ) {
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.