Completed
Push — master ( 416cb1...222de5 )
by Anton
03:44
created

Secret::define()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 8
Ratio 100 %
Metric Value
dl 8
loc 8
rs 9.4286
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace Modules\Entitizer\Definition\User {
4
5
	use Modules\Entitizer;
6
7 View Code Duplication
	class Secret extends Entitizer\Utils\Definition {
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...
8
9
		use Entitizer\Common\User\Secret;
10
11
		# Define presets
12
13
		protected function define() {
14
15
			# Add params
16
17
			$this->addTextual       ('code',            true, 40, true, true, true);
18
			$this->addTextual       ('ip',              true, 255, false, true, false);
19
			$this->addInteger       ('time',            false, 10, 0, true, false);
20
		}
21
	}
22
}
23