Code Duplication    Length = 7-7 lines in 3 locations

spec/Request/RequestRefreshTokenSpec.php 3 locations

@@ 35-41 (lines=7) @@
32
        $this->getRefreshToken($request)->shouldBe('abcd');
33
    }
34
35
    public function it_gets_from_json()
36
    {
37
        $request = Request::create(null, 'POST', array(), array(), array(), array(), json_encode(array('refresh_token' => 'abcd')));
38
        $request->headers->set('content_type', 'application/json');
39
40
        $this->getRefreshToken($request)->shouldBe('abcd');
41
    }
42
43
    public function it_gets_from_json_x()
44
    {
@@ 43-49 (lines=7) @@
40
        $this->getRefreshToken($request)->shouldBe('abcd');
41
    }
42
43
    public function it_gets_from_json_x()
44
    {
45
        $request = Request::create(null, 'POST', array(), array(), array(), array(), json_encode(array('refresh_token' => 'abcd')));
46
        $request->headers->set('content_type', 'application/x-json');
47
48
        $this->getRefreshToken($request)->shouldBe('abcd');
49
    }
50
51
    public function it_gets_from_json_parameter()
52
    {
@@ 51-57 (lines=7) @@
48
        $this->getRefreshToken($request)->shouldBe('abcd');
49
    }
50
51
    public function it_gets_from_json_parameter()
52
    {
53
        $request = Request::create(null, 'POST', array(), array(), array(), array(), json_encode(array('refresh_token' => 'abcd')));
54
        $request->headers->set('content_type', 'application/json;charset=UTF-8');
55
56
        $this->getRefreshToken($request)->shouldBe('abcd');
57
    }
58
59
    public function it_gets_from_query_param_using_camel_case_naming(NameGeneratorInterface $nameGenerator)
60
    {