Code Duplication    Length = 3-3 lines in 3 locations

src/Goetas/TwitalBundle/Attribute/TranslateNAttribute.php 2 locations

@@ 30-32 (lines=3) @@
27
28
        $with = '{\'%count%\':' . $expessions[0] . '}';
29
30
        if (isset($expessions[1]) && strlen($expessions[1])) {
31
            $with = "$with|merge(" . $expessions[1] . ')';
32
        }
33
34
        $from = '';
35
        if (isset($expessions[2]) && strlen($expessions[2])) {
@@ 35-37 (lines=3) @@
32
        }
33
34
        $from = '';
35
        if (isset($expessions[2]) && strlen($expessions[2])) {
36
            $from = " from $expessions[2]";
37
        }
38
39
        $start = $context->createControlNode("transchoice " . $expessions[0] . " with $with" . $from);
40
        $end = $context->createControlNode("endtranschoice");

src/Goetas/TwitalBundle/Attribute/TranslateAttribute.php 1 location

@@ 28-30 (lines=3) @@
25
        if (isset($expessions[0]) && trim($expessions[0])) {
26
            $params .= " with " . $expessions[0];
27
        }
28
        if (isset($expessions[1]) && strlen($expessions[1])) {
29
            $params .= " from " . $expessions[1];
30
        }
31
32
        $start = $context->createControlNode($params);
33
        $end = $context->createControlNode("endtrans");