Passed
Push — master ( 09abe8...7f2391 )
by Federico
02:56
created

Items::makePage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 11

Duplication

Lines 17
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 11
c 1
b 0
f 1
nc 1
nop 0
dl 17
loc 17
rs 9.4285
1
<?php
2 View Code Duplication
	class Items extends Template {
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
3
		public function __construct( $_parameters ) {
4
			parent::__construct( $_parameters );
5
			$this->tags["title"]		= "JATE - Items";
6
			$this->tags["content"]	= $this->makePage();
7
		}
8
		public function makePage() {
9
			jBlock();
10
			?>
11
			<div class="row" style="margin-top:70px;">
12
				<div class="col-lg-12">
13
					<div class="well well-sm">
14
						Items!<br>
15
						<?php
16
						var_dump($this->parameters["page"]);
0 ignored issues
show
Security Debugging Code introduced by
var_dump($this->parameters['page']); looks like debug code. Are you sure you do not want to remove it? This might expose sensitive data.
Loading history...
17
						?>
18
					</div>
19
				</div>
20
			</div>
21
			<?php
22
			$temp = jBlockClose();
23
			return $temp;
24
		}
25
	}
26
?>
27