Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2.351 |
Changes | 0 |
1 | <?php |
||
42 | 1 | private function storeId( string $type, int $id ): bool { |
|
43 | 1 | if ( $id === 1 ) { |
|
44 | 1 | return $this->database->insert( |
|
45 | 1 | 'page_props', |
|
46 | 1 | $this->getInsertValues( $type, $id ) |
|
47 | ); |
||
48 | } |
||
49 | |||
50 | return $this->database->update( |
||
51 | 'page_props', |
||
52 | [ 'pp_value' => $id ], |
||
53 | $this->getWhere( $type ) |
||
54 | ); |
||
55 | } |
||
56 | |||
75 |