Code Duplication    Length = 21-24 lines in 8 locations

examples/01essential/bundles/controllers/Home.php 1 location

@@ 2-22 (lines=21) @@
1
<?php
2
	class Home extends Template {
3
		public function __construct( $_parameters ) {
4
			parent::__construct( $_parameters );
5
			$this->tags["title"]		= "JATE - Home";
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
						Hello World!
15
					</div>
16
				</div>
17
			</div>
18
			<?php
19
			$temp = jBlockClose();
20
			return $temp;
21
		}
22
	}
23
?>
24

examples/01essential/bundles/controllers/Page01.php 1 location

@@ 2-22 (lines=21) @@
1
<?php
2
	class Page01 extends Template {
3
		public function __construct( $_parameters ) {
4
			parent::__construct( $_parameters );
5
			$this->tags["title"]		= "JATE - Page01";
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
						Page 1!
15
					</div>
16
				</div>
17
			</div>
18
			<?php
19
			$temp = jBlockClose();
20
			return $temp;
21
		}
22
	}
23
?>
24

examples/01essential/bundles/controllers/Page404.php 1 location

@@ 2-22 (lines=21) @@
1
<?php
2
	class Page404 extends Template {
3
		public function __construct( $_parameters ) {
4
			parent::__construct( $_parameters );
5
			$this->tags["title"]		= "JATE - 404";
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
						404 Page not found!
15
					</div>
16
				</div>
17
			</div>
18
			<?php
19
			$temp = jBlockClose();
20
			return $temp;
21
		}
22
	}
23
?>
24

examples/03pageParameters/bundles/controllers/Home.php 1 location

@@ 2-25 (lines=24) @@
1
<?php
2
	class Home extends Template {
3
		public function __construct( $_parameters ) {
4
			parent::__construct( $_parameters );
5
			$this->tags["title"]		= "JATE - Home";
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
						Home!<br>
15
						<?php
16
							var_dump($this->parameters["page"]);
17
						?>
18
					</div>
19
				</div>
20
			</div>
21
			<?php
22
			$temp = jBlockClose();
23
			return $temp;
24
		}
25
	}
26
?>
27

examples/03pageParameters/bundles/controllers/Items.php 1 location

@@ 2-25 (lines=24) @@
1
<?php
2
	class Items extends Template {
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"]);
17
						?>
18
					</div>
19
				</div>
20
			</div>
21
			<?php
22
			$temp = jBlockClose();
23
			return $temp;
24
		}
25
	}
26
?>
27

examples/03pageParameters/bundles/controllers/Page404.php 1 location

@@ 2-22 (lines=21) @@
1
<?php
2
	class Page404 extends Template {
3
		public function __construct( $_parameters ) {
4
			parent::__construct();
5
			$this->tags["title"]		= "JATE - 404";
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
						404 Page not found!
15
					</div>
16
				</div>
17
			</div>
18
			<?php
19
			$temp = jBlockClose();
20
			return $temp;
21
		}
22
	}
23
?>
24

examples/05database/bundles/controllers/Page01.php 1 location

@@ 2-22 (lines=21) @@
1
<?php
2
	class Page01 extends Template {
3
		public function __construct( $_parameters ) {
4
			parent::__construct( $_parameters );
5
			$this->tags["title"]		= "JATE - Page01";
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
						Page 1!
15
					</div>
16
				</div>
17
			</div>
18
			<?php
19
			$temp = jBlockClose();
20
			return $temp;
21
		}
22
	}
23
?>
24

examples/05database/bundles/controllers/Page404.php 1 location

@@ 2-22 (lines=21) @@
1
<?php
2
	class Page404 extends Template {
3
		public function __construct( $_parameters ) {
4
			parent::__construct( $_parameters );
5
			$this->tags["title"]		= "JATE - 404";
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
						404 Page not found!
15
					</div>
16
				</div>
17
			</div>
18
			<?php
19
			$temp = jBlockClose();
20
			return $temp;
21
		}
22
	}
23
?>
24