Completed
Push — master ( ca1f9f...41d3a2 )
by Baris
03:40
created

IndexController::indexAction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 8
rs 9.4286
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
/**
4
* architect - a PHP Framework for rapid developing
5
*
6
* @package  architect
7
* @author   Baris Kalaycioglu <[email protected]>
8
*/
9
10
namespace Modules\Common\Controllers;
11
12
class IndexController extends \Phalcon\Mvc\Controller 
13
{
14
    public function indexAction() 
15
    {	
16
		var_dump(
0 ignored issues
show
Security Debugging Code introduced by
var_dump(\Orders::findFirst(1)); looks like debug code. Are you sure you do not want to remove it? This might expose sensitive data.
Loading history...
17
			\Orders::findFirst(1)
18
		);
19
20
		die;
0 ignored issues
show
Coding Style Compatibility introduced by
The method indexAction() contains an exit expression.

An exit expression should only be used in rare cases. For example, if you write a short command line script.

In most cases however, using an exit expression makes the code untestable and often causes incompatibilities with other libraries. Thus, unless you are absolutely sure it is required here, we recommend to refactor your code to avoid its usage.

Loading history...
21
    }
22
}