| Total Complexity | 2 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class GetEnvKeyTest extends ConfigKeeperTestCase |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Tenta recuperar a chave que será inserida |
||
| 14 | * no arquivo de ambiente |
||
| 15 | * |
||
| 16 | * @return void |
||
| 17 | */ |
||
| 18 | public function testGetEnvKey() |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Verifica se consegue pegar env_key caso não esteja definida |
||
| 29 | * no arquivo de configuração do pacote. |
||
| 30 | * Por padrão, deve retornar o CURRENT_THEME |
||
| 31 | * |
||
| 32 | * @return void |
||
| 33 | */ |
||
| 34 | public function testDefaultGetEnvKey() |
||
| 43 | } |
||
| 44 | } |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.