Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 238 Bytes

RedundantFunctionCall.md

File metadata and controls

12 lines (8 loc) · 238 Bytes

RedundantFunctionCall

Emitted when a function call (array_values, strtolower, ksort etc.) is redundant.

<?php

$a = ['already', 'a', 'list'];

$redundant = array_values($a);
$alreadyLower = strtolower($redundant[0]);