SpreadsheetParserService::parseSpreadsheet()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
1
<?php
2
3
namespace Linio\Component\SpreadsheetParser;
4
5
class SpreadsheetParserService
6
{
7
    /**
8
     * @param string $filePath
9
     * @param string $fileType
0 ignored issues
show
Documentation introduced by
Should the type for parameter $fileType not be string|null?

This check looks for @param annotations 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.

Loading history...
10
     * @param array $options
11
     *
12
     * @return Spreadsheet
13
     */
14
    public function parseSpreadsheet($filePath, $fileType = null, array $options = [])
15
    {
16
        return new Spreadsheet($filePath, $fileType, $options);
17
    }
18
}
19