Code Duplication    Length = 8-8 lines in 2 locations

DataFixtures/StatementFixtures.php 1 location

@@ 42-49 (lines=8) @@
39
     *
40
     * @return Statement
41
     */
42
    public static function getMinimalStatement($id = self::DEFAULT_STATEMENT_ID)
43
    {
44
        $actor = new Agent('mailto:[email protected]');
45
        $verb = new Verb('http://adlnet.gov/expapi/verbs/created', array('en-US' => 'created'));
46
        $activity = new Activity('http://example.adlnet.gov/xapi/example/activity');
47
48
        return new Statement($id, $actor, $verb, $activity);
49
    }
50
51
    /**
52
     * Loads a statement with a group as an actor.

Model/tests/StatementTest.php 1 location

@@ 96-103 (lines=8) @@
93
        $this->assertFalse($statement->getAuthority()->equals($statementWithAuthority->getAuthority()));
94
    }
95
96
    private function createMinimalStatement()
97
    {
98
        $actor = new Agent('mailto:[email protected]');
99
        $verb = new Verb('http://adlnet.gov/expapi/verbs/created', array('en-US' => 'created'));
100
        $activity = new Activity('http://example.adlnet.gov/xapi/example/activity');
101
102
        return new Statement('12345678-1234-5678-8234-567812345678', $actor, $verb, $activity);
103
    }
104
105
    private function createStatementWithGroupAuthority()
106
    {