Code Duplication    Length = 16-16 lines in 2 locations

plugins/_depricated/recaptcha/index.php 1 location

@@ 50-65 (lines=16) @@
47
	/**
48
	 * @return int
49
	 */
50
	private function getLimit()
51
	{
52
		$iConfigLimit = $this->Config()->Get('plugin', 'error_limit', 0);
53
		if (0 < $iConfigLimit)
54
		{
55
			$oCacher = $this->Manager()->Actions()->Cacher();
56
			$sLimit = $oCacher && $oCacher->IsInited() ? $oCacher->Get($this->getCaptchaCacherKey()) : '0';
57
			
58
			if (0 < strlen($sLimit) && is_numeric($sLimit))
59
			{
60
				$iConfigLimit -= (int) $sLimit;
61
			}
62
		}
63
64
		return $iConfigLimit;
65
	}
66
67
	/**
68
	 * @return void

plugins/recaptcha/index.php 1 location

@@ 51-66 (lines=16) @@
48
	/**
49
	 * @return int
50
	 */
51
	private function getLimit()
52
	{
53
		$iConfigLimit = $this->Config()->Get('plugin', 'error_limit', 0);
54
		if (0 < $iConfigLimit)
55
		{
56
			$oCacher = $this->Manager()->Actions()->Cacher();
57
			$sLimit = $oCacher && $oCacher->IsInited() ? $oCacher->Get($this->getCaptchaCacherKey()) : '0';
58
59
			if (0 < \strlen($sLimit) && \is_numeric($sLimit))
60
			{
61
				$iConfigLimit -= (int) $sLimit;
62
			}
63
		}
64
65
		return $iConfigLimit;
66
	}
67
68
	/**
69
	 * @return void