| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 23 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 17 | public function get(array $params = []) | ||
|  | |||
| 18 |     { | ||
| 19 | $data = []; | ||
| 20 | $versionFile = ROOT . '/VERSION'; | ||
| 21 | $gitHead = ROOT . '/.git/HEAD'; | ||
| 22 |         if (\file_exists($versionFile)) { | ||
| 23 | $data = Json::decode(\file_get_contents(ROOT . '/VERSION')); | ||
| 24 |         } elseif (\file_exists($gitHead)) { | ||
| 25 | $gitRevision = \file_get_contents($gitHead); | ||
| 26 |             $path = \explode('/', $gitRevision); | ||
| 27 | $data = [ | ||
| 28 |                 'build' => \str_replace("\n", '', 'dev-' . $path[2]), | ||
| 29 |                 'date' => date('D M d h:i:s T Y', \filemtime($gitHead)) | ||
| 30 | ]; | ||
| 31 |         } else { | ||
| 32 | $data = [ | ||
| 33 | 'build' => 'unknown', | ||
| 34 |                 'date' => date('D M d h:i:s T Y') | ||
| 35 | ]; | ||
| 36 | } | ||
| 37 | |||
| 38 | return $data; | ||
| 39 | } | ||
| 40 | } | ||
| 41 | 
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.