Code Duplication    Length = 3-3 lines in 3 locations

Core/Executor/FileExecutor.php 3 locations

@@ 76-78 (lines=3) @@
73
     */
74
    protected function save($dsl, $context)
75
    {
76
        if (!isset($dsl['file']) || (!isset($dsl['body']) && !isset($dsl['template']))) {
77
            throw new \Exception("Can not save file: name or body or template missing");
78
        }
79
80
        if (is_string($dsl['body'])) {
81
            $contents = $this->resolveReferencesInText($dsl['body']);
@@ 110-112 (lines=3) @@
107
     */
108
    protected function append($dsl, $context)
109
    {
110
        if (!isset($dsl['file']) || (!isset($dsl['body']) && !isset($dsl['template']))) {
111
            throw new \Exception("Can not append to file: name or body or template missing");
112
        }
113
114
        if (is_string($dsl['body'])) {
115
            $contents = $this->resolveReferencesInText($dsl['body']);
@@ 139-141 (lines=3) @@
136
     */
137
    protected function prepend($dsl, $context)
138
    {
139
        if (!isset($dsl['file']) || (!isset($dsl['body']) && !isset($dsl['template']))) {
140
            throw new \Exception("Can not prepend to file: name or body or template missing");
141
        }
142
143
        if (is_string($dsl['body'])) {
144
            $contents = $this->resolveReferencesInText($dsl['body']);