GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#31)
by
unknown
12:53
created

Studioforty9_Recaptcha_Model_Backend_Routes   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A _beforeSave() 0 11 3
1
<?php
0 ignored issues
show
Coding Style introduced by
End of line character is invalid; expected "\n" but found "\r\n"
Loading history...
2
3
/**
4
 * Class Studioforty9_Recaptcha_Model_Backend_Routes
5
 */
6
class Studioforty9_Recaptcha_Model_Backend_Routes extends Mage_Core_Model_Config_Data {
0 ignored issues
show
Coding Style introduced by
Opening brace of a class must be on the line after the definition
Loading history...
7
8
    /**
9
     * Workaround to be able to add the billing save controller to the config
10
     */
11
    protected function _beforeSave()
12
    {
13
        $value = $this->getValue();
14
        if (in_array('checkout_onepage_index', $value)) {
15
            $value[] = 'checkout_onepage_saveBilling';
16
            $this->setValue($value);
17
        } elseif (($key = array_search('checkout_onepage_saveBilling', $value)) !== false) {
18
            unset($value[$key]);
19
            $this->setValue($value);
20
        }
21
    }
22
}