Code Duplication    Length = 32-33 lines in 2 locations

src/Models/IntegrationActionsModel.php 1 location

@@ 22-54 (lines=33) @@
19
 *
20
 * @package Gnello\Mattermost\Models
21
 */
22
class IntegrationActionsModel extends AbstractModel
23
{
24
    /**
25
     * @var string
26
     */
27
    private static $endpoint = '/actions';
28
29
    /**
30
     * @param array $requestOptions
31
     * @return ResponseInterface
32
     */
33
    public function openDialog(array $requestOptions)
34
    {
35
        return $this->client->post(self::$endpoint . '/dialogs/open', $requestOptions);
36
    }
37
38
    /**
39
     * @param array $requestOptions
40
     * @return ResponseInterface
41
     */
42
    public function submitDialog(array $requestOptions)
43
    {
44
        return $this->client->post(self::$endpoint . '/dialogs/submit', $requestOptions);
45
    }
46
47
    /**
48
     * @return ResponseInterface
49
     */
50
    public function deleteCurrentBrandImage()
51
    {
52
        return $this->client->delete(self::$endpoint . '/image');
53
    }
54
}
55

src/Models/LDAPModel.php 1 location

@@ 21-52 (lines=32) @@
18
 *
19
 * @package Gnello\Mattermost\Models
20
 */
21
class LDAPModel extends AbstractModel
22
{
23
    /**
24
     * @var string
25
     */
26
    private static $endpoint = '/ldap';
27
28
    /**
29
     * @return ResponseInterface
30
     */
31
    public function syncWithLDAP()
32
    {
33
        return $this->client->post(self::$endpoint . '/sync');
34
    }
35
36
    /**
37
     * @return ResponseInterface
38
     */
39
    public function testLDAPConfiguration()
40
    {
41
        return $this->client->post(self::$endpoint . '/test');
42
    }
43
44
    /**
45
     * @param array $requestOptions
46
     * @return ResponseInterface
47
     */
48
    public function migrateIdLDAP(array $requestOptions)
49
    {
50
        return $this->client->post(self::$endpoint . '/migrateid', $requestOptions);
51
    }
52
}
53