| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | 2 | public function __construct($container, $object) |
|
| 22 | { |
||
| 23 | 2 | $this->container = $container; |
|
| 24 | 2 | $this->filename = basename($object->name); |
|
| 25 | 2 | $this->pathname = $object->name; |
|
| 26 | 2 | $this->size = (int)$object->contentLength; |
|
| 27 | 2 | $this->lastModified = $object->lastModified->getTimestamp(); |
|
|
|
|||
| 28 | 2 | } |
|
| 29 | |||
| 43 | } |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.