Driver_Text   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A combine() 0 13 2
1
<?php
2
3
/**
4
 * Provides view functionality for text files
5
 *
6
 * PHP Version 5
7
 *
8
 * @category  Core
9
 * @package   View
10
 * @author    Hans-Joachim Piepereit <[email protected]>
11
 * @copyright 2013 cSphere Team
12
 * @license   http://opensource.org/licenses/bsd-license Simplified BSD License
13
 * @link      http://www.csphere.eu
14
 **/
15
16
namespace csphere\core\view;
17
18
/**
19
 * Provides view functionality for text files
20
 *
21
 * @category  Core
22
 * @package   View
23
 * @author    Hans-Joachim Piepereit <[email protected]>
24
 * @copyright 2013 cSphere Team
25
 * @license   http://opensource.org/licenses/bsd-license Simplified BSD License
26
 * @link      http://www.csphere.eu
27
 **/
28
29
class Driver_Text extends Base
30
{
31
    /**
32
     * Content type header
33
     **/
34
    protected $type = 'text/plain; charset=UTF-8';
35
36
    /**
37
     * Combine content parts on usual requests
38
     *
39
     * @param boolean $box Special case for box mode
40
     *
41
     * @return string
42
     **/
0 ignored issues
show
Coding Style introduced by
There must be no blank lines after the function comment
Loading history...
43
44
    protected function combine($box)
45
    {
46
        unset($box);
47
48
        $output = '';
49
50
        foreach ($this->content AS $part) {
51
52
            $output .= $part . "\n";
53
        }
54
55
        return $output;
56
    }
57
}
58