UseComposer   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A findComposer() 0 8 2
1
<?php
2
3
namespace Acacha\AdminLTETemplateLaravel\Console\Traits;
4
5
/**
6
 * Trait UseComposer.
7
 */
8
trait UseComposer
9
{
10
    /**
11
     * Get the composer command for the environment.
12
     *
13
     * @return string
14
     */
15
    protected function findComposer()
16
    {
17
        if (file_exists(getcwd().'/composer.phar')) {
18
            return '"'.PHP_BINARY.'" composer.phar"';
19
        }
20
21
        return 'composer';
22
    }
23
}
24