| @@ -9,20 +9,20 @@ | ||
| 9 | 9 | require_once 'Header.php'; |
| 10 | 10 | require_once 'Pagination.php'; |
| 11 | 11 | |
| 12 | 12 | class Photo_List implements Printable { |
| 13 | - public $photos = []; | |
| 13 | + public array $photos = []; | |
| 14 | 14 | |
| 15 | - public $title_position; | |
| 16 | - public $row_constraints = []; | |
| 17 | - public $parent = 'stream'; | |
| 18 | - public $indent = "\t"; | |
| 19 | - public $short_code = []; | |
| 15 | + public string $title_position = 'tooltip'; | |
| 16 | + public array $row_constraints = []; | |
| 17 | + public string $parent = 'stream'; | |
| 18 | + public string $indent = "\t"; | |
| 19 | + public array $short_code = []; | |
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * @var Pagination $pagination |
| 23 | 23 | */ |
| 24 | - public $pagination; | |
| 24 | + public Pagination $pagination; | |
| 25 | 25 | |
| 26 | 26 | public function __construct(array $short_code) { |
| 27 | 27 | $this->short_code = $short_code; |
| 28 | 28 | $this->pagination = new Pagination(); |
| @@ -31,9 +31,9 @@ | ||
| 31 | 31 | private function custom_sort(Base $module) { |
| 32 | 32 | $this->photos = apply_filters('photonic_custom_sort_photos', $this->photos, $module->provider); |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - public function html(Base $module, Core_Layout $layout, $print = false): string { | |
| 35 | + public function html(Base $module, Core_Layout $layout, bool $print = false): string { | |
| 36 | 36 | $ret = ''; |
| 37 | 37 | |
| 38 | 38 | $this->custom_sort($module); |
| 39 | 39 | |