Code Duplication    Length = 11-11 lines in 2 locations

code/model/PageRow.php 2 locations

@@ 236-246 (lines=11) @@
233
                if(file_exists($folder)){
234
                    $fileName =
235
                        $folder . $this->templateForHTMLOutput($this->ClassName).'.ss';
236
                    if (! file_exists($fileName)) {
237
                        DB::alteration_message('✓ Creating ...' . $fileName, 'created');
238
                        file_put_contents(
239
                            $fileName,
240
        '<% include PageRowHeader %>
241
242
        <% include PageRowFooter %>'
243
                        );
244
                    } else {
245
                        DB::alteration_message('✓ Checked ...' . $fileName);
246
                    }
247
                }
248
            }
249
@@ 258-268 (lines=11) @@
255
            if(! file_exists($folder)) {
256
                mkdir($folder, 0755, true);
257
            }
258
            if (! file_exists($fileName)) {
259
                DB::alteration_message('✓ Creating ...' . $fileName, 'created');
260
                file_put_contents(
261
                    $fileName,
262
    '.'.strtolower($this->ClassName).'.row {
263
264
    }'
265
                );
266
            } else {
267
                DB::alteration_message('✓ Checked ...' . $fileName);
268
            }
269
        }
270
    }
271