Passed
Push — main ( e5ef3a...f1ef56 )
by N.
04:15
created

Limiter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 69
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 42
dl 0
loc 69
ccs 56
cts 56
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A tt_gränser() 0 63 1
1
<?php
2
3
/**
4
 * Klass Limiter.
5
 * @author Niklas Dougherty
6
 */
7
8
declare(strict_types=1);
9
10
namespace Tips\Moduler\Ajax\TTAjax;
11
12
use Tips\Moduler\TT\Konstanter;
13
14
/**
15
 * Klass Limiter.
16
 */
17
class Limiter extends Kod {
18
	use Konstanter;
19
20
	/**
21
	 * Spara limiter för Topptipset.
22
	 */
23 1
	protected function tt_gränser(): void {
24 1
		$this->db_preferenser->validera_indata(
25 1
			'tt_odds_rätt_min',
26 1
			0,
27 1
			self::TT_MATCHANTAL,
0 ignored issues
show
Bug introduced by
The constant Tips\Moduler\Ajax\TTAjax\Limiter::TT_MATCHANTAL was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
28 1
			self::TT_ODDS_RÄTT_MIN,
0 ignored issues
show
Bug introduced by
The constant Tips\Moduler\Ajax\TTAjax...iter::TT_ODDS_RÄTT_MIN was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
29 1
			'topptips.odds_rätt_min'
30 1
		);
31
32 1
		$this->db_preferenser->validera_indata(
33 1
			'tt_odds_rätt_max',
34 1
			0,
35 1
			self::TT_MATCHANTAL,
36 1
			self::TT_ODDS_RÄTT_MAX,
0 ignored issues
show
Bug introduced by
The constant Tips\Moduler\Ajax\TTAjax...iter::TT_ODDS_RÄTT_MAX was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
37 1
			'topptips.odds_rätt_max'
38 1
		);
39
40 1
		$this->db_preferenser->validera_indata(
41 1
			'tt_antal_1_min',
42 1
			0,
43 1
			self::TT_MATCHANTAL,
44 1
			self::TT_ANTAL_1_MIN,
0 ignored issues
show
Bug introduced by
The constant Tips\Moduler\Ajax\TTAjax\Limiter::TT_ANTAL_1_MIN was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
45 1
			'topptips.antal_1_min'
46 1
		);
47
48 1
		$this->db_preferenser->validera_indata(
49 1
			'tt_antal_1_max',
50 1
			0,
51 1
			self::TT_MATCHANTAL,
52 1
			self::TT_ANTAL_1_MAX,
0 ignored issues
show
Bug introduced by
The constant Tips\Moduler\Ajax\TTAjax\Limiter::TT_ANTAL_1_MAX was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
53 1
			'topptips.antal_1_max'
54 1
		);
55
56 1
		$this->db_preferenser->validera_indata(
57 1
			'tt_antal_X_min',
58 1
			0,
59 1
			self::TT_MATCHANTAL,
60 1
			self::TT_ANTAL_X_MIN,
0 ignored issues
show
Bug introduced by
The constant Tips\Moduler\Ajax\TTAjax\Limiter::TT_ANTAL_X_MIN was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
61 1
			'topptips.antal_X_min'
62 1
		);
63
64 1
		$this->db_preferenser->validera_indata(
65 1
			'tt_antal_X_max',
66 1
			0,
67 1
			self::TT_MATCHANTAL,
68 1
			self::TT_ANTAL_X_MAX,
0 ignored issues
show
Bug introduced by
The constant Tips\Moduler\Ajax\TTAjax\Limiter::TT_ANTAL_X_MAX was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
69 1
			'topptips.antal_X_max'
70 1
		);
71
72 1
		$this->db_preferenser->validera_indata(
73 1
			'tt_antal_2_min',
74 1
			0,
75 1
			self::TT_MATCHANTAL,
76 1
			self::TT_ANTAL_2_MIN,
0 ignored issues
show
Bug introduced by
The constant Tips\Moduler\Ajax\TTAjax\Limiter::TT_ANTAL_2_MIN was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
77 1
			'topptips.antal_2_min'
78 1
		);
79
80 1
		$this->db_preferenser->validera_indata(
81 1
			'tt_antal_2_max',
82 1
			0,
83 1
			self::TT_MATCHANTAL,
84 1
			self::TT_ANTAL_2_MAX,
0 ignored issues
show
Bug introduced by
The constant Tips\Moduler\Ajax\TTAjax\Limiter::TT_ANTAL_2_MAX was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
85 1
			'topptips.antal_2_max'
86 1
		);
87
	}
88
}
89