| 1 | <?php |
||
| 9 | class SlideThumbnailNavMigrationTask extends BuildTask |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $title = 'FlexSlider Default Values'; |
||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $description = 'Set default values for slider after the thumbnail nav update'; |
||
| 19 | /** |
||
| 20 | * @var bool |
||
| 21 | */ |
||
| 22 | protected $enabled = true; |
||
| 23 | /** |
||
| 24 | * @param $request |
||
| 25 | */ |
||
| 26 | public function run($request) |
||
| 30 | /** |
||
| 31 | * |
||
| 32 | */ |
||
| 33 | public function defaultSliderSettings() |
||
| 65 | } |
This check marks implicit conversions of arrays to boolean values in a comparison. While in PHP an empty array is considered to be equal (but not identical) to false, this is not always apparent.
Consider making the comparison explicit by using
empty(..)or! empty(...)instead.