| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function __construct($airlines, $flightNumber = null, $indicator = null) |
||
| 40 | { |
||
| 41 | foreach ($airlines as $count=>$airline) { |
||
| 42 | if ($count === 0) { |
||
| 43 | $this->flightIdentification[] = new FlightIdentification($airline, $flightNumber); |
||
| 44 | } else { |
||
| 45 | $this->flightIdentification[] = new FlightIdentification($airline); |
||
| 46 | } |
||
| 47 | } |
||
| 48 | |||
| 49 | $this->excludeAirlineIndicator = $indicator; |
||
| 50 | } |
||
| 51 | } |
||
| 52 |
This check looks for
@paramannotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.