Code Duplication    Length = 25-25 lines in 3 locations

Test/Fixture/AppleFixture.php 1 location

@@ 3-27 (lines=25) @@
1
<?php
2
3
class AppleFixture extends CakeTestFixture {
4
5
	public $fields = array(
6
		'id' => array('type' => 'integer', 'key' => 'primary'),
7
		'title' => array('type' => 'string', 'length' => 255, 'null' => false),
8
		'body' => 'text',
9
		'published' => array('type' => 'integer', 'default' => '0', 'null' => false),
10
		'created' => 'datetime',
11
		'updated' => 'datetime'
12
	);
13
14
	public function init() {
15
		$this->records = array(
16
			array(
17
				'id' => 1,
18
				'title' => 'First Article',
19
				'body' => 'First Article Body',
20
				'published' => '1',
21
				'created' => date('Y-m-d H:i:s'),
22
				'updated' => date('Y-m-d H:i:s'),
23
			),
24
		);
25
		parent::init();
26
	}
27
}

Test/Fixture/BananaFixture.php 1 location

@@ 3-27 (lines=25) @@
1
<?php
2
3
class BananaFixture extends CakeTestFixture {
4
5
	public $fields = array(
6
		'id' => array('type' => 'integer', 'key' => 'primary'),
7
		'title' => array('type' => 'string', 'length' => 255, 'null' => false),
8
		'body' => 'text',
9
		'published' => array('type' => 'integer', 'default' => '0', 'null' => false),
10
		'created' => 'datetime',
11
		'updated' => 'datetime'
12
	);
13
14
	public function init() {
15
		$this->records = array(
16
			array(
17
				'id' => 1,
18
				'title' => 'First Article',
19
				'body' => 'First Article Body',
20
				'published' => '1',
21
				'created' => date('Y-m-d H:i:s'),
22
				'updated' => date('Y-m-d H:i:s'),
23
			),
24
		);
25
		parent::init();
26
	}
27
}

Test/Fixture/PearFixture.php 1 location

@@ 3-27 (lines=25) @@
1
<?php
2
3
class PearFixture extends CakeTestFixture {
4
5
	public $fields = array(
6
		'id' => array('type' => 'integer', 'key' => 'primary'),
7
		'title' => array('type' => 'string', 'length' => 255, 'null' => false),
8
		'body' => 'text',
9
		'published' => array('type' => 'integer', 'default' => '0', 'null' => false),
10
		'created' => 'datetime',
11
		'updated' => 'datetime'
12
	);
13
14
	public function init() {
15
		$this->records = array(
16
			array(
17
				'id' => 1,
18
				'title' => 'First Article',
19
				'body' => 'First Article Body',
20
				'published' => '1',
21
				'created' => date('Y-m-d H:i:s'),
22
				'updated' => date('Y-m-d H:i:s'),
23
			),
24
		);
25
		parent::init();
26
	}
27
}