These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | /* |
||
4 | * This file is part of the PHP Translation package. |
||
5 | * |
||
6 | * (c) PHP Translation team <[email protected]> |
||
7 | * |
||
8 | * For the full copyright and license information, please view the LICENSE |
||
9 | * file that was distributed with this source code. |
||
10 | */ |
||
11 | |||
12 | namespace Translation\Common; |
||
13 | |||
14 | use Translation\Common\Model\Message; |
||
15 | |||
16 | /** |
||
17 | * The storage is a place when you can store your translations. A database, filesystem or a third party platform. |
||
18 | */ |
||
19 | interface Storage |
||
20 | { |
||
21 | /** |
||
22 | * Get a translation. |
||
23 | * |
||
24 | * @param string $locale |
||
25 | * @param string $domain |
||
26 | * @param string $key |
||
27 | * |
||
28 | * @return Message |
||
29 | */ |
||
30 | public function get($locale, $domain, $key); |
||
31 | |||
32 | /** |
||
33 | * Update a translation. |
||
34 | * |
||
35 | * @param string $locale |
||
0 ignored issues
–
show
|
|||
36 | * @param string $domain |
||
0 ignored issues
–
show
There is no parameter named
$domain . Was it maybe removed?
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. Consider the following example. The parameter /**
* @param array $germany
* @param array $island
* @param array $italy
*/
function finale($germany, $island) {
return "2:1";
}
The most likely cause is that the parameter was removed, but the annotation was not.
Loading history...
|
|||
37 | * @param string $key |
||
0 ignored issues
–
show
There is no parameter named
$key . Was it maybe removed?
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. Consider the following example. The parameter /**
* @param array $germany
* @param array $island
* @param array $italy
*/
function finale($germany, $island) {
return "2:1";
}
The most likely cause is that the parameter was removed, but the annotation was not.
Loading history...
|
|||
38 | * @param string $message |
||
39 | */ |
||
40 | public function update(Message $message); |
||
41 | |||
42 | /** |
||
43 | * Remove a translation from the storage. |
||
44 | * |
||
45 | * @param string $locale |
||
46 | * @param string $domain |
||
47 | * @param string $key |
||
48 | */ |
||
49 | public function delete($locale, $domain, $key); |
||
50 | } |
||
51 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.