Code Duplication    Length = 5-7 lines in 2 locations

wp-update-php/wp-update-php.php 2 locations

@@ 149-155 (lines=7) @@
146
	public function get_admin_notice($level = 'minimum') {
147
		$notice = '<div class="error is-dismissible">';
148
149
		if ('recommended' === $level) {
150
			if ( ! empty($this->plugin_name)) {
151
				$notice .= '<p>'.sprintf(__('%s recommends a PHP version higher than %s. Read more information about <a href="%s" target="_blank">how you can update</a>.', $this->textdomain), $this->plugin_name, $this->recommended_version, $this->wpupdatephp_site).'</p>';
152
			} else {
153
				$notice .= '<p>'.sprintf(__('This plugin recommends a PHP version higher than %s. Read more information about <a href="%s" target="_blank">how you can update</a>.', $this->textdomain), $this->recommended_version, $this->wpupdatephp_site).'</p>';
154
			}
155
		}
156
157
		if ( ! empty($this->plugin_name)) {
158
			$notice .= '<p>'.sprintf(__('Unfortunately, %s cannot run on PHP versions older than %s. Read more information about <a href="%s" target="_blank">how you can update</a>.', $this->textdomain), $this->plugin_name, $this->minimum_version, $this->wpupdatephp_site).'</p>';
@@ 157-161 (lines=5) @@
154
			}
155
		}
156
157
		if ( ! empty($this->plugin_name)) {
158
			$notice .= '<p>'.sprintf(__('Unfortunately, %s cannot run on PHP versions older than %s. Read more information about <a href="%s" target="_blank">how you can update</a>.', $this->textdomain), $this->plugin_name, $this->minimum_version, $this->wpupdatephp_site).'</p>';
159
		} else {
160
			$notice .= '<p>'.sprintf(__('Unfortunately, this plugin cannot run on PHP versions older than %s. Read more information about <a href="%s" target="_blank">how you can update</a>.', $this->textdomain), $this->minimum_version, $this->wpupdatephp_site).'</p>';
161
		}
162
163
		$notice .= '</div>';
164