SublimeOpener   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 12
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A open() 0 6 2
1
<?php
2
3
namespace Webfactor\Laravel\Generators\Recipes;
4
5
use Webfactor\Laravel\Generators\Contracts\OpenInIdeAbstract;
6
use Webfactor\Laravel\Generators\Contracts\OpenInIdeInterface;
7
8
class SublimeOpener extends OpenInIdeAbstract implements OpenInIdeInterface
9
{
10
    /**
11
     *  Opens all given files in Sublime
12
     */
13
    public function open()
14
    {
15
        foreach ($this->files as $file) {
16
            exec('subl ' . $file->getPathname());
17
        }
18
    }
19
}
20