IndexController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 23
ccs 9
cts 9
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A indexAction() 0 14 1
1
<?php
2
3
namespace BsbPhingService\Controller;
4
5
use Zend\Mvc\Controller\AbstractActionController;
6
use Zend\View\Model\ViewModel;
7
8
class IndexController extends AbstractActionController
9
{
10
11
    /**
12
     * Runs example phing file and returns
13
     *
14
     * @return ViewModel
15
     */
16 1
    public function indexAction()
17
    {
18 1
        $buildResult = $this
19 1
            ->getServiceLocator()
20 1
            ->get('BsbPhingService')
21 1
            ->build('show-defaults dist' /* target */, array(
22
                'buildFile' => __DIR__ . '/../../data/build-example.xml'
23 1
            ));
24
25 1
        $view = new ViewModel();
26 1
        $view->setVariable('process', $buildResult);
27
28 1
        return $view;
29
    }
30
}
31