From 448ebf5d0ecb3989f15c226e2058bed57c51f634 Mon Sep 17 00:00:00 2001 From: nnagornyy Date: Thu, 20 Aug 2020 18:54:44 +0300 Subject: [PATCH] =?UTF-8?q?chore:=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=BC=D0=B5=D0=BB=D0=BA=D0=B8=D0=B5=20=D0=BE?= =?UTF-8?q?=D1=88=D0=B8=D0=B1=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/block/gallery/gallery.conf.json | 2 +- lib/block/defaulthandler.php | 2 +- lib/block/handler.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/block/gallery/gallery.conf.json b/app/src/block/gallery/gallery.conf.json index 83e6463..2643ef7 100644 --- a/app/src/block/gallery/gallery.conf.json +++ b/app/src/block/gallery/gallery.conf.json @@ -1,6 +1,6 @@ { "name": "Список изображений с описанием", - "type": "galleryWithDescription", + "type": "gallery", "handler": "", "conf" : { "foo": "bar", diff --git a/lib/block/defaulthandler.php b/lib/block/defaulthandler.php index da20e5e..46550fb 100644 --- a/lib/block/defaulthandler.php +++ b/lib/block/defaulthandler.php @@ -8,7 +8,7 @@ class DefaultHandler implements Handler{ */ private $block; - public function getData(): array + public function getData() { return $this->block->getData(); } diff --git a/lib/block/handler.php b/lib/block/handler.php index 60ecf26..cc1a9aa 100644 --- a/lib/block/handler.php +++ b/lib/block/handler.php @@ -6,7 +6,7 @@ interface Handler { * return block data * @return array */ - public function getData(): array; + public function getData(); public function setBlock(Block $block): void; } \ No newline at end of file