Issues (50)

programs/init.php (2 issues)

Labels
Severity
1
<?php
2
//-------------------------------------------------------------------------
3
// OVIDENTIA http://www.ovidentia.org
4
// Ovidentia is free software; you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation; either version 2, or (at your option)
7
// any later version.
8
//
9
// This program is distributed in the hope that it will be useful, but
10
// WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
// See the GNU General Public License for more details.
13
//
14
// You should have received a copy of the GNU General Public License
15
// along with this program; if not, write to the Free Software
16
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
17
// USA.
18
//-------------------------------------------------------------------------
19
/**
20
 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL)
21
 * @copyright Copyright (c) 2006 by CANTICO ({@link http://www.cantico.fr})
22
 */
23
24
// @codingStandardsIgnoreStart
25
26
27
function libphonenumber_onDeleteAddon()
28
{
29
    $addon = bab_getAddonInfosInstance('libphonenumber');
0 ignored issues
show
The function bab_getAddonInfosInstance was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

29
    $addon = /** @scrutinizer ignore-call */ bab_getAddonInfosInstance('libphonenumber');
Loading history...
30
31
    $addon->unregisterFunctionality('PhoneNumber');
32
33
    return true;
34
}
35
36
37
38
function libphonenumber_upgrade()
39
{
40
    $addon = bab_getAddonInfosInstance('libphonenumber');
0 ignored issues
show
The function bab_getAddonInfosInstance was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

40
    $addon = /** @scrutinizer ignore-call */ bab_getAddonInfosInstance('libphonenumber');
Loading history...
41
42
    $addon->registerFunctionality('PhoneNumber', 'phonenumber.class.php');
43
44
    return true;
45
}
46
47
// @codingStandardsIgnoreEnd
48