Passed
Push — master ( cf57bc...9eba79 )
by Michael
01:41
created

EntriesHandler   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php namespace XoopsModules\Gbook;
2
3
/**
4
 * ****************************************************************************
5
 *  GBOOK - MODULE FOR XOOPS
6
 *  Copyright (c) 2007 - 2012
7
 *  Ingo H. de Boer (http://www.winshell.org)
8
 *
9
 *  This program is free software; you can redistribute it and/or modify
10
 *  it under the terms of the GNU General Public License as published by
11
 *  the Free Software Foundation; either version 2 of the License, or
12
 *  (at your option) any later version.
13
 *
14
 *  You may not change or alter any portion of this comment or credits
15
 *  of supporting developers from this source code or any supporting
16
 *  source code which is considered copyrighted (c) material of the
17
 *  original comment or credit authors.
18
 *
19
 *  This program is distributed in the hope that it will be useful,
20
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
21
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
 *  GNU General Public License for more details.
23
 *  ---------------------------------------------------------------------------
24
 *
25
 * @copyright       Ingo H. de Boer (http://www.winshell.org)
26
 * @license         GNU General Public License (GPL)
27
 * @package         GBook
28
 * @author          Ingo H. de Boer ([email protected])
29
 *
30
 * ****************************************************************************
31
 */
32
33
use Xmf\Request;
0 ignored issues
show
Bug introduced by
The type Xmf\Request was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
34
use XoopsModules\Gbook;
35
36
37
/**
38
 * @package   kernel
39
 * @copyright copyright &copy; 2000 XOOPS.org
40
 */
41
class EntriesHandler extends \XoopsPersistableObjectHandler
0 ignored issues
show
Bug introduced by
The type XoopsPersistableObjectHandler was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
42
{
43
    /**
44
     * @param null|\XoopsDatabase $db
45
     */
46
    public function __construct(\XoopsDatabase $db)
0 ignored issues
show
Bug introduced by
The type XoopsDatabase was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
47
    {
48
        parent::__construct($db, 'gbook_entries', Entries::class, 'id', 'name', 'email', 'url', 'message', 'note', 'time', 'date', 'ip', 'admin');
49
    }
50
}
51