Completed
Push — develop ( 8eb671...133594 )
by Mike
19:30 queued 09:24
created

tests/data/TokenIteratorTestFixture.php (2 issues)

parameters are used.

Unused Code Minor

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
/**
3
 * File docblock
4
 *
5
 * @package    Tokens
6
 * @subpackage Tests
7
 */
8
9
/**
10
 * @package    Tokens
11
 * @subpackage Tests
12
 */
13
14
namespace
15
{
16
    define('TEST', -1);
17
    define('TEST2', 1);
18
}
19
20
namespace Test\Tests5
21
{
22
23
    interface iTest extends \Countable
24
    {
25
    }
26
27
    abstract class test implements iTest
28
    {
29
        public function count()
30
        {
31
        }
32
33
        abstract public function count2();
34
    }
35
36
    require 'test2.php';
37
    require_once 'test2.php';
38
    include('test2.php');
39
    include_once 'test2.php';
40
41
    const GLOBAL_CONST = '1';
42
    const GLOBAL_CONST3 = 2, GLOBAL_CONST4 = '1';
43
    const GLOBAL_CONST2 = '2';
44
45
    /**
46
     * Function docblock for SingleFunction
47
     *
48
     * This is a code block:
49
     *
50
     *     block of code
51
     *
52
     * @param int $argument
53
     * @param Test\SingleClass $argument2 This is a test argument
54
     */
55
    function single_function($argument = 'test', $argument2 = 'test2')
56
    {
57
    }
58
59
    /**
60
     * This is a test method
61
     *
62
     * @return int description
63
     */
64
    function test_function()
65
    {
66
    }
67
68
    /**
69
     * This is a test method
70
     *
71
     * @return int description
72
     */
73
    function test_function2()
74
    {
75
    }
76
77
}
78
79
namespace Test
80
{
81
82
    /**
83
     * test.
84
     *
85
     * This is a class test
86
     *
87
     * @author Mike
88
     */
89
    class SingleClass
90
    {
91
        private $test = null;
92
93
        private $test2 = ['test' => 1];
94
95
        private $test3 = 1;
96
97
        /**
98
         * This is a property test
99
         *
100
         * @var boolean
101
         */
102
        private $test4 = true;
103
104
        /**
105
         * Method Docblock for StaticPublicMethod
106
         *
107
         * I have explicitly added a **long** description _containing_ some markup to:
108
         *
109
         * * demonstrate what it looks like
110
         * * test the markdown conversion process
111
         *
112
         * @param array $argument_a test argument
113
         * @param FooBarClass $argument_b test argument
114
         */
115
        public static function StaticPublicMethod(array $argument_a, FooBarClass $argument_b = null)
0 ignored issues
show
The parameter $argument_a is not used and could be removed.

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

Loading history...
The parameter $argument_b is not used and could be removed.

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

Loading history...
116
        {
117
        }
118
119
        /**
120
         * Method Docblock
121
         *
122
         * @param int $argument test argument
123
         */
124
        public function PublicMethod($argument)
125
        {
126
        }
127
128
        protected function ProtectedMethod()
129
        {
130
        }
131
    }
132
133
    abstract class FooBarClass extends SingleClass implements Reflector, Traversable
134
    {
135
        const TEST = 'test2';
136
    }
137
138
    class FooBarClass2 extends SingleClass
139
    {
140
        const TEST = 'test2';
141
    }
142
}
143