Code Duplication    Length = 9-10 lines in 7 locations

src/main/php/PHPMD/Rule/Controversial/CamelCaseParameterName.php 1 location

@@ 58-66 (lines=9) @@
55
        }
56
    }
57
    
58
    private function getExceptionsList()
59
    {
60
        try {
61
            $exceptions = $this->getStringProperty('exceptions');
62
        } catch (\OutOfBoundsException $e) {
63
            $exceptions = '';
64
        }
65
        return explode(',', $exceptions);
66
    }
67
}
68

src/main/php/PHPMD/Rule/Controversial/CamelCaseVariableName.php 1 location

@@ 87-95 (lines=9) @@
84
     *
85
     * @return array
86
     */
87
    private function getExceptionsList()
88
    {
89
        try {
90
            $exceptions = $this->getStringProperty('exceptions');
91
        } catch (\OutOfBoundsException $e) {
92
            $exceptions = '';
93
        }
94
        return explode(',', $exceptions);
95
    }
96
}
97

src/main/php/PHPMD/Rule/Design/LongParameterList.php 1 location

@@ 67-76 (lines=10) @@
64
     *
65
     * @return array
66
     */
67
    private function getExceptionsList()
68
    {
69
        try {
70
            $exceptions = $this->getStringProperty('exceptions');
71
        } catch (\OutOfBoundsException $e) {
72
            $exceptions = '';
73
        }
74
75
        return explode(',', $exceptions);
76
    }
77
}
78

src/main/php/PHPMD/Rule/Naming/ShortMethodName.php 1 location

@@ 66-75 (lines=10) @@
63
     *
64
     * @return array
65
     */
66
    private function getExceptionsList()
67
    {
68
        try {
69
            $exceptions = $this->getStringProperty('exceptions');
70
        } catch (\OutOfBoundsException $e) {
71
            $exceptions = '';
72
        }
73
74
        return explode(',', $exceptions);
75
    }
76
}
77

src/main/php/PHPMD/Rule/Naming/ShortVariable.php 1 location

@@ 122-131 (lines=10) @@
119
     *
120
     * @return array
121
     */
122
    private function getExceptionsList()
123
    {
124
        try {
125
            $exceptions = $this->getStringProperty('exceptions');
126
        } catch (\OutOfBoundsException $e) {
127
            $exceptions = '';
128
        }
129
130
        return explode(',', $exceptions);
131
    }
132
133
    /**
134
     * Checks if a short name is acceptable in the current context. For the

src/main/php/PHPMD/Rule/UnusedFormalParameter.php 1 location

@@ 83-92 (lines=10) @@
80
     *
81
     * @return array
82
     */
83
    private function getExceptionsList()
84
    {
85
        try {
86
            $exceptions = $this->getStringProperty('exceptions');
87
        } catch (\OutOfBoundsException $e) {
88
            $exceptions = '';
89
        }
90
91
        return explode(',', $exceptions);
92
    }
93
94
    /**
95
     * Returns <b>true</b> when the given node is an abstract method.

src/main/php/PHPMD/Rule/UnusedLocalVariable.php 1 location

@@ 252-261 (lines=10) @@
249
     *
250
     * @return array
251
     */
252
    private function getExceptionsList()
253
    {
254
        try {
255
            $exceptions = $this->getStringProperty('exceptions');
256
        } catch (\OutOfBoundsException $e) {
257
            $exceptions = '';
258
        }
259
260
        return explode(',', $exceptions);
261
    }
262
}
263