Passed
Push — master ( afdc6b...e39cc4 )
by Adrien
03:24
created

JsController::remoteJsAction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 0
c 2
b 0
f 0
dl 0
loc 2
ccs 0
cts 2
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
class JsController extends Zend_Controller_Action
4
{
5
    public function init(): void
6
    {
7
        $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
        $this->_helper->headers('application/javascript');
9
    }
10
11
    public function remoteJsAction(): void
12
    {
13
        // action body
14
    }
15
16
    public function mqueueUserJsAction(): void
17
    {
18
        // action body
19
    }
20
}
21