Code Duplication    Length = 8-8 lines in 2 locations

src/CertainRessourceAbstract.php 2 locations

@@ 53-60 (lines=8) @@
50
     * @return \Wabel\CertainAPI\CertainRessourceAbstract
51
     * @throws Exceptions\RessourceException
52
     */
53
    public function get($ressourceId = null, $params = array(), $assoc = false,
54
                        $contentType = 'json')
55
    {
56
        $ressourceName = $this->getRessourceName();
57
        ;
58
        if ($ressourceName == '' || is_null($ressourceName)) {
59
            throw new Exceptions\RessourceException('No ressource name provided.');
60
        }
61
        $this->results = $this->certainApiService->get($ressourceName,
62
            $this->ressourceCalled, $ressourceId, $params, $assoc, $contentType);
63
        return $this;
@@ 142-149 (lines=8) @@
139
     * @return \Wabel\CertainAPI\CertainRessourceAbstract
140
     * @throws Exceptions\RessourceException
141
     */
142
    public function delete($ressourceId, $assoc = false, $contentType = 'json')
143
    {
144
        $ressourceName = $this->getRessourceName();
145
        if ($ressourceName == '' || is_null($ressourceName)) {
146
            throw new Exceptions\RessourceException('No ressource name provided.');
147
        }
148
        $this->results = $this->certainApiService->delete($ressourceName,
149
            $this->ressourceCalled, $ressourceId, $assoc, $contentType);
150
        return $this;
151
    }
152