Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
12.50% |
1 / 8 |
|
12.50% |
1 / 8 |
CRAP | |
0.00% |
0 / 1 |
| dummy | |
12.50% |
1 / 8 |
|
12.50% |
1 / 8 |
50.88 | |
0.00% |
0 / 1 |
| is_enabled | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| disable | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| enable | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| add | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| delete | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_logs | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_log_count | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| get_valid_offset | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | /** |
| 3 | * |
| 4 | * This file is part of the phpBB Forum Software package. |
| 5 | * |
| 6 | * @copyright (c) phpBB Limited <https://www.phpbb.com> |
| 7 | * @license GNU General Public License, version 2 (GPL-2.0) |
| 8 | * |
| 9 | * For full copyright and license information, please see |
| 10 | * the docs/CREDITS.txt file. |
| 11 | * |
| 12 | */ |
| 13 | |
| 14 | namespace phpbb\log; |
| 15 | |
| 16 | /** |
| 17 | * Dummy logger |
| 18 | */ |
| 19 | class dummy implements log_interface |
| 20 | { |
| 21 | /** |
| 22 | * {@inheritdoc} |
| 23 | */ |
| 24 | public function is_enabled($type = '') |
| 25 | { |
| 26 | return false; |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * {@inheritdoc} |
| 31 | */ |
| 32 | public function disable($type = '') |
| 33 | { |
| 34 | } |
| 35 | |
| 36 | /** |
| 37 | * {@inheritdoc} |
| 38 | */ |
| 39 | public function enable($type = '') |
| 40 | { |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * {@inheritdoc} |
| 45 | */ |
| 46 | public function add($mode, $user_id, $log_ip, $log_operation, $log_time = false, $additional_data = array()) |
| 47 | { |
| 48 | return false; |
| 49 | } |
| 50 | |
| 51 | /** |
| 52 | * {@inheritdoc} |
| 53 | */ |
| 54 | public function delete($mode, $conditions = array()) |
| 55 | { |
| 56 | } |
| 57 | |
| 58 | /** |
| 59 | * {@inheritdoc} |
| 60 | */ |
| 61 | public function get_logs($mode, $count_logs = true, $limit = 0, $offset = 0, $forum_id = 0, $topic_id = 0, $user_id = 0, $log_time = 0, $sort_by = 'l.log_time DESC', $keywords = '') |
| 62 | { |
| 63 | return array(); |
| 64 | } |
| 65 | |
| 66 | /** |
| 67 | * {@inheritdoc} |
| 68 | */ |
| 69 | public function get_log_count() |
| 70 | { |
| 71 | return 0; |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * {@inheritdoc} |
| 76 | */ |
| 77 | public function get_valid_offset() |
| 78 | { |
| 79 | return 0; |
| 80 | } |
| 81 | } |