Code Duplication    Length = 14-14 lines in 3 locations

src/Connectors/ExactSales/Update.php 1 location

@@ 8-21 (lines=14) @@
5
use Log;
6
use App\Models\User;
7
8
class Update extends Pipedrive
9
{
10
    public function organization(Organization $organization)
11
    {
12
        // Also simple to update any Pipedrive resource value
13
        $organization = $this->_connection->organizations->update(
14
            1,
15
            [
16
                'name' => $organization->id
17
            ]
18
        );
19
        var_dump($organization->getData());
20
    }
21
}
22

src/Connectors/Hubspot/Update.php 1 location

@@ 8-21 (lines=14) @@
5
use Log;
6
use App\Models\User;
7
8
class Update extends Pipedrive
9
{
10
    public function organization(Organization $organization)
11
    {
12
        // Also simple to update any Pipedrive resource value
13
        $organization = $this->_connection->organizations->update(
14
            1,
15
            [
16
                'name' => $organization->id
17
            ]
18
        );
19
        var_dump($organization->getData());
20
    }
21
}
22

src/Connectors/Pipedrive/Update.php 1 location

@@ 8-21 (lines=14) @@
5
use Log;
6
use App\Models\User;
7
8
class Update extends Pipedrive
9
{
10
    public function organization(Organization $organization)
11
    {
12
        // Also simple to update any Pipedrive resource value
13
        $organization = $this->_connection->organizations->update(
14
            1,
15
            [
16
                'name' => $organization->id
17
            ]
18
        );
19
        var_dump($organization->getData());
20
    }
21
}
22