Code Duplication    Length = 13-13 lines in 2 locations

src/model/Issue.php 1 location

@@ 73-85 (lines=13) @@
70
     *
71
     * @throws Exception
72
     */
73
    public function getUrl($method, array $params = array())
74
    {
75
        switch ($method) {
76
            case 'get':
77
                return array(
78
                    'url' => vsprintf('/1.0/resource/journal/issue/get/%d', $params),
79
                    'method' => 'GET',
80
                    'code' => 200
81
                );
82
            default:
83
                throw new Exception('Route for ' . $method . ' not found');
84
        }
85
    }
86
}

src/model/Journal.php 1 location

@@ 109-121 (lines=13) @@
106
     *
107
     * @throws Exception
108
     */
109
    public function getUrl($method, array $params = array())
110
    {
111
        switch ($method) {
112
            case 'get':
113
                return array(
114
                    'url' => vsprintf('/1.0/resource/journal/get/%d', $params),
115
                    'method' => 'GET',
116
                    'code' => 200
117
                );
118
            default:
119
                throw new Exception('Route for ' . $method . ' not found');
120
        }
121
    }
122
}