Code Duplication    Length = 12-12 lines in 2 locations

src/Syncer/InvoiceNinja/InvoiceNinjaClient.php 2 locations

@@ 116-127 (lines=12) @@
113
    /**
114
     * @return array|Project[]
115
     */
116
    public function getProjects()
117
    {
118
        $response = $this->client->request('GET', self::VERSION . '/projects', [
119
            'headers' => [
120
                'Content-Type' => 'application/json',
121
                'X-Ninja-Token' => $this->api_token,
122
                'X-Requested-With' => 'XMLHttpRequest',
123
            ]
124
        ]);
125
126
        return $this->serializer->deserialize($response->getBody(), 'Syncer\Dto\InvoiceNinja\ProjectsWrapper', 'json')->getData();
127
    }
128
129
    /**
130
     * @return array|Client[]
@@ 132-143 (lines=12) @@
129
    /**
130
     * @return array|Client[]
131
     */
132
    public function getClients()
133
    {
134
        $response = $this->client->request('GET', self::VERSION . '/clients', [
135
            'headers' => [
136
                'Content-Type' => 'application/json',
137
                'X-Ninja-Token' => $this->api_token,
138
                'X-Requested-With' => 'XMLHttpRequest',
139
            ]
140
        ]);
141
142
        return $this->serializer->deserialize($response->getBody(), 'Syncer\Dto\InvoiceNinja\ClientsWrapper', 'json')->getData();
143
    }
144
}
145