Passed
Push — master ( f68dc4...291d13 )
by Thierry
02:15
created

DialogPluginTrait::getVersion()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/**
4
 * DialogPluginTrait.php
5
 *
6
 * Provides stub methods for the DialogPlugin class, so it can conform to the interfaces it implements.
7
 *
8
 * @package jaxon-core
0 ignored issues
show
Coding Style introduced by
Package name "jaxon-core" is not valid; consider "Jaxoncore" instead
Loading history...
9
 * @author Thierry Feuzeu <[email protected]>
10
 * @copyright 2022 Thierry Feuzeu <[email protected]>
11
 * @license https://opensource.org/licenses/BSD-3-Clause BSD 3-Clause License
12
 * @link https://github.com/jaxon-php/jaxon-dialogs
13
 */
0 ignored issues
show
Coding Style introduced by
PHP version not specified
Loading history...
Coding Style introduced by
Missing @category tag in file comment
Loading history...
14
15
namespace Jaxon\Plugin\Response\Dialog;
16
17
trait DialogPluginTrait
0 ignored issues
show
Coding Style introduced by
Missing doc comment for trait DialogPluginTrait
Loading history...
18
{
19
    public function setReturnCode(bool $bReturnCode)
0 ignored issues
show
Unused Code introduced by
The parameter $bReturnCode 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

19
    public function setReturnCode(/** @scrutinizer ignore-unused */ bool $bReturnCode)

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...
Coding Style introduced by
Missing doc comment for function setReturnCode()
Loading history...
Coding Style introduced by
Expected 2 blank lines before function; 0 found
Loading history...
20
    {}
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
21
22
    public function getUri(): string
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function getUri()
Loading history...
23
    {
24
        return '';
25
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
26
27
    public function getSubdir(): string
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function getSubdir()
Loading history...
28
    {
29
        return '';
30
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 1 found
Loading history...
31
32
    public function getVersion(): string
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function getVersion()
Loading history...
33
    {
34
        return '';
35
    }
0 ignored issues
show
Coding Style introduced by
Expected 2 blank lines after function; 0 found
Loading history...
36
}
37