Code Duplication    Length = 9-9 lines in 2 locations

src/Http/Controllers/Admin/DocumentController.php 1 location

@@ 110-118 (lines=9) @@
107
        $body['SigneeRefs'] = [];
108
109
        // populate the signee references
110
        foreach ($request->signee_refs as $signee) {
111
            // append this to the body
112
            $body['SigneeRefs'][] = [
113
                'SigneeRefId' => $signee['unique_ref'],
114
                'FirstName' => $signee['first_name'],
115
                'LastName' => $signee['last_name'],
116
                'Email' => $signee['email'],
117
            ];
118
        }
119
120
        return $this->d->create($body)
121
                ->getBody()

src/Http/Controllers/Admin/ExternalSignController.php 1 location

@@ 89-97 (lines=9) @@
86
        $body['SigneeRefs'] = [];
87
88
        // populate the signee references
89
        foreach ($request->signee_refs as $signee) {
90
            // append this to the body
91
            $body['SigneeRefs'][] = [
92
                'UniqueRef' => $signee['unique_ref'],
93
                'FirstName' => $signee['first_name'],
94
                'LastName' => $signee['last_name'],
95
                'Email' => $signee['email'],
96
            ];
97
        }
98
99
        // populate the callback URLs
100
        $body['ReturnUrlError'] = Config::get('signere.sign_error_url');