rathena / FluxCP

Function with cyclomatic complexity higher than threshold found PHP-R1006
Anti-pattern
Minor
2 occurrences in this check
createTransaction has a cyclomatic complexity of 18 with "High" risk
354        }
355    }
356
357    private function createTransaction($payload)358    {
359        $customArray  = @unserialize(base64_decode((string)$payload['client_reference_id']));
360        $customArray  = $customArray && is_array($customArray) ? $customArray : array();
process has a cyclomatic complexity of 39 with "Very high" risk
130	 *
131	 * @access public
132	 */
133	public function process()134	{
135		$allowed_hosts = Flux::config('PayPalAllowedHosts')->toArray();
136		$received_from = gethostbyaddr($this->fetchIP());