Completed
Push — master ( 8e1573...db6321 )
by
unknown
16:08 queued 08:39
created

VimeoProviderTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 100 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 17
loc 17
rs 10
c 0
b 0
f 0

How to fix   Duplicated Code   

Duplicated Code

Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.

Common duplication problems, and corresponding solutions are:

1
<?php
2
3
namespace MediaMonks\SonataMediaBundle\Tests\Functional;
4
5
class VimeoProviderTest extends AbstractOembedProviderTestAbstract
6
{
7
    public function testVimeo()
8
    {
9
        $this->providerFlow(
10
            'vimeo',
11
            'https://vimeo.com/184376204',
12
            [
13
                'providerReference' => '184376204',
14
                'title' => 'MediaMonks Mixtape Vol. II',
15
                'authorName' => 'MediaMonks',
16
                'copyright' => '',
17
                'focalPoint' => '50-50'
18
            ]
19
        );
20
    }
21
}
22