Test Failed
Branch main (fda838)
by Rafael
50:22
created

BookKeeping::fetchAllBalance()   F

Complexity

Conditions 38
Paths 1290

Size

Total Lines 127
Code Lines 92

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 38
eloc 92
nc 1290
nop 7
dl 0
loc 127
rs 0
c 0
b 0
f 0

How to fix   Long Method    Complexity   

Long Method

Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.

For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.

Commonly applied refactorings include:

1
<?php
2
3
/* Copyright (C) 2014-2017  Olivier Geffroy     <[email protected]>
4
 * Copyright (C) 2015-2022  Alexandre Spangaro  <[email protected]>
5
 * Copyright (C) 2015-2020  Florian Henry       <[email protected]>
6
 * Copyright (C) 2018-2024  Frédéric France     <[email protected]>
7
 * Copyright (C) 2024		MDW							<[email protected]>
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 3 of the License, or
12
 * (at your option) any later version.
13
 *
14
 * This program is distributed in the hope that it will be useful,
15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
 * GNU General Public License for more details.
18
 *
19
 * You should have received a copy of the GNU General Public License
20
 * along with this program. If not, see <https://www.gnu.org/licenses/>.
21
 */
22
23
/**
24
 * \file        htdocs/accountancy/class/bookkeeping.class.php
25
 * \ingroup     Accountancy (Double entries)
26
 * \brief       File of class to manage Ledger (General Ledger and Subledger)
27
 *
28
 * Replaced by Deprecated/Modules/Accounting/Model/BookKeeping.php
29
 */
30