File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ public function getStatusCounters(): array
137137
138138 foreach ($ this ->cache ->getAll () as $ resourceType => $ resources ) {
139139 foreach ($ resources as $ resource ) {
140- if ($ resourceType === Resource::TYPE_ROW && is_string ($ resource )) {
140+ if (( $ resourceType === Resource::TYPE_ROW || $ resourceType === Resource:: TYPE_DOCUMENT ) && is_string ($ resource )) {
141141 $ rowStatus = $ resource ;
142142 $ status [$ resourceType ][$ rowStatus ]++;
143143
@@ -281,7 +281,7 @@ public function getReport(string $statusLevel = ''): array
281281
282282 foreach ($ cache as $ type => $ resources ) {
283283 foreach ($ resources as $ id => $ resource ) {
284- if ($ type === Resource::TYPE_ROW && is_string ($ resource )) {
284+ if (( $ type === Resource::TYPE_ROW || $ type === Resource:: TYPE_DOCUMENT ) && is_string ($ resource )) {
285285 if ($ statusLevel && $ resource !== $ statusLevel ) {
286286 continue ;
287287 }
You can’t perform that action at this time.
0 commit comments