Simplify __construct() method

Make it more simple and easy to read.
```php
$this->input = $input ?: new JInput;
```

Same for the others