Failed Conditions
Push — master ( 1a6d63...dcbc0d )
by Adrien
05:26
created

JsController   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A remoteJsAction() 0 2 1
A mqueueUserJsAction() 0 2 1
A init() 0 4 1
1
<?php
2
3
class JsController extends Zend_Controller_Action
4
{
5 2
    public function init(): void
6
    {
7 2
        $this->_helper->layout->disableLayout();
0 ignored issues
show
Bug introduced by
The method disableLayout() does not exist on Zend_Controller_Action_Helper_Abstract. It seems like you code against a sub-type of Zend_Controller_Action_Helper_Abstract such as Zend_Controller_Action_Helper_Cache or Zend_Controller_Action_Helper_Redirector or Zend_Layout_Controller_Action_Helper_Layout. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

7
        $this->_helper->layout->/** @scrutinizer ignore-call */ 
8
                                disableLayout();
Loading history...
8 2
        $this->_helper->headers('application/javascript');
9 2
    }
10
11 1
    public function remoteJsAction(): void
12
    {
13
        // action body
14 1
    }
15
16 1
    public function mqueueUserJsAction(): void
17
    {
18
        // action body
19 1
    }
20
}
21