Code Duplication    Length = 6-6 lines in 2 locations

src/Notifier.php 2 locations

@@ 186-191 (lines=6) @@
183
            'layout' => $layout,
184
            'text' => $text,
185
        ];
186
        if ($sounds !== null) {
187
            $notification['sources'] = [
188
                'sounds' => [$sounds],
189
                'soundsVolume' => $soundsVolume !== null ? $soundsVolume : 0.5,
190
            ];
191
        }
192
193
        $this->notifications[] = $notification;
194
    }
@@ 213-218 (lines=6) @@
210
            'layout' => $layout,
211
            'text' => $text,
212
        ];
213
        if ($sounds !== null) {
214
            $notification['sources'] = [
215
                'sounds' => [$sounds],
216
                'soundsVolume' => $soundsVolume !== null ? $soundsVolume : 0.5,
217
            ];
218
        }
219
220
        if ($this->session->has('laravel::flash-notifications')) {
221
            $flashNotifications = $this->session->get('laravel::flash-notifications');