Passed
Branch dev (1a31b5)
by Dispositif
03:03
created

DataAnalysis::process()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 2
rs 10
1
<?php
2
/**
3
 * This file is part of dispositif/wikibot application
4
 * 2019 © Philippe M. <[email protected]>
5
 * For the full copyright and MIT license information, please view the LICENSE file.
6
 */
7
8
declare(strict_types=1);
9
10
11
namespace App\Application;
12
13
/**
14
 * Juste pour faire des analyses de texte
15
 * Class DataAnalysis
16
 *
17
 * @package App\Application
18
 */
19
class DataAnalysis
20
{
21
    /**
22
     * @param string|null $text
23
     * @param string|null $title
24
     */
25
    public function process(?string $text = null, ?string $title = null): void
0 ignored issues
show
Unused Code introduced by
The parameter $text is not used and could be removed. ( Ignorable by Annotation )

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

25
    public function process(/** @scrutinizer ignore-unused */ ?string $text = null, ?string $title = null): void

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $title is not used and could be removed. ( Ignorable by Annotation )

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

25
    public function process(?string $text = null, /** @scrutinizer ignore-unused */ ?string $title = null): void

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
26
    {
27
//        $this->text = $text;
28
//        $this->title = $title;
29
30
    }
31
32
}
33