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