Skip to content

Commit c46e17a

Browse files
committed
Finalize remove mixed types
1 parent 56737ba commit c46e17a

File tree

5 files changed

+18
-17
lines changed

5 files changed

+18
-17
lines changed

Block/Tab/Panel.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,9 @@ public function __construct(
3030
}
3131

3232
/**
33-
* Used only in phtml
34-
*
3533
* @param $key
3634
* @param $index
37-
* @return array|\Magento\Framework\DataObject|mixed|string|null
35+
* @return array|\Magento\Framework\DataObject|string|null
3836
* @throws \Exception
3937
*/
4038
public function getData($key = '', $index = null)

Helper/Register.php

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,53 +103,56 @@ public function getContextData()
103103
}
104104

105105
/**
106-
* @return mixed
106+
* @return \Magento\Framework\DataObject|null
107107
*/
108108
public function getObservers()
109109
{
110110
return $this->getRegisteredData('observers');
111111
}
112112

113113
/**
114-
* @return mixed
114+
* @return \Magento\Framework\DataObject|null
115115
*/
116116
public function getEvents()
117117
{
118118
return $this->getRegisteredData('events');
119119
}
120120

121121
/**
122-
* @return mixed
122+
* @return \Magento\Framework\DataObject|null
123123
*/
124124
public function getCollections()
125125
{
126126
return $this->getRegisteredData('collections');
127127
}
128-
/**
129-
* @return array
130-
*/
131128

132129
/**
133-
* @return mixed
130+
* @return \Magento\Framework\DataObject|null
134131
*/
135132
public function getModels()
136133
{
137134
return $this->getRegisteredData('models');
138135
}
139136

140137
/**
141-
* @return mixed
138+
* @return \Magento\Framework\DataObject|null
142139
*/
143140
public function getBlocks()
144141
{
145142
return $this->getRegisteredData('blocks');
146143
}
147144

145+
/**
146+
* @return \Magento\Framework\DataObject|null
147+
*/
148148
public function getLayoutHandles()
149149
{
150150
return $this->getRegisteredData('layout_handles');
151151
}
152152

153+
/**
154+
* @return \Magento\Framework\DataObject|null
155+
*/
153156
public function getLayoutHierarchy()
154157
{
155158
return $this->getRegisteredData('layout_tree_blocks_hierarchy');

Observer/LayoutGenerateBlocksAfterObserver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function execute(Observer $observer)
4747

4848
/**
4949
* @param \Magento\Framework\View\LayoutInterface $layout
50-
* @return mixed
50+
* @return array
5151
*/
5252
protected function getHandles($layout)
5353
{

Plugin/Framework/App/Cache.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,13 @@ public function beforeLoad(CacheInterface $subject, string $identifier)
2525
$this->cacheService->addCache('load', $identifier);
2626
}
2727

28-
2928
/**
3029
* @param CacheInterface $subject
3130
* @param string $data
3231
* @param string $identifier
3332
* @param array $tags
3433
* @param $lifeTime
35-
* @return mixed
34+
* @return void
3635
*/
3736
public function beforeSave(
3837
CacheInterface $subject,

Plugin/PageCache/FrontController/BuiltinPlugin.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ class BuiltinPlugin
1616
*/
1717
private $cacheService;
1818

19+
/**
20+
* @param \ADM\QuickDevBar\Service\App\Cache $cacheService
21+
*/
1922
public function __construct(\ADM\QuickDevBar\Service\App\Cache $cacheService)
2023
{
2124
$this->cacheService = $cacheService;
2225
}
2326

24-
2527
/**
2628
* @param PageCache $subject
2729
* @param string $identifier
@@ -31,14 +33,13 @@ public function beforeLoad(PageCache $subject, string $identifier)
3133
$this->cacheService->addCache('load', $identifier);
3234
}
3335

34-
3536
/**
3637
* @param PageCache $subject
3738
* @param string $data
3839
* @param string $identifier
3940
* @param array $tags
4041
* @param $lifeTime
41-
* @return mixed
42+
* @return void
4243
*/
4344
public function beforeSave(
4445
PageCache $subject,

0 commit comments

Comments
 (0)