This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
51
{
52
$key = $this->prefix . strtr($key, ':/', '-_');
53
54
// An extended key is needed to counteract a bug in APC.
The expression apcu_delete($key . 'smf'); of type boolean|string[] adds the type string[] to the return on line 56 which is incompatible with the return type declared by the interface cache_api_interface::putData of type boolean.
The expression apcu_store($key . 'smf', $value, $ttl); of type boolean|array adds the type array to the return on line 58 which is incompatible with the return type declared by the interface cache_api_interface::putData of type boolean.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.