@@ -24,7 +24,7 @@ public function __construct(
24
24
#[Autowire('%kernel.shopware_version% ' )]
25
25
private readonly string $ shopwareVersion ,
26
26
#[Autowire(service: 'cache.object ' )]
27
- private readonly CacheInterface $ cacheObject
27
+ private readonly CacheInterface $ cacheObject,
28
28
) {}
29
29
30
30
public function collect (HealthCollection $ collection ): void
@@ -38,7 +38,7 @@ public function collect(HealthCollection $collection): void
38
38
private function refreshPlugins (Connection $ connection ): void
39
39
{
40
40
$ result = $ connection ->executeQuery (
41
- 'SELECT COUNT(*) FROM plugin WHERE updated_at < DATE_SUB(NOW(), INTERVAL 1 DAY) '
41
+ 'SELECT COUNT(*) FROM plugin WHERE updated_at < DATE_SUB(NOW(), INTERVAL 1 DAY) ' ,
42
42
)->fetchOne ();
43
43
44
44
if (empty ($ result )) {
@@ -98,8 +98,8 @@ private function determineSecurityIssue(HealthCollection $collection): void
98
98
'Cannot check security.json from shopware-static-data ' ,
99
99
'not accessible ' ,
100
100
'accessible ' ,
101
- 'https://raw.githubusercontent.com/FriendsOfShopware/shopware-static-data/main/data/security.json '
102
- )
101
+ 'https://raw.githubusercontent.com/FriendsOfShopware/shopware-static-data/main/data/security.json ' ,
102
+ ),
103
103
);
104
104
}
105
105
@@ -113,8 +113,8 @@ private function determineSecurityIssue(HealthCollection $collection): void
113
113
'Security update ' ,
114
114
'Shopware outdated ' ,
115
115
'Update Shopware to the latest version or install recent version of the plugin SwagPlatformSecurity ' ,
116
- 'https://store.shopware.com/en/swag136939272659f/shopware-6-security-plugin.html '
117
- )
116
+ 'https://store.shopware.com/en/swag136939272659f/shopware-6-security-plugin.html ' ,
117
+ ),
118
118
);
119
119
}
120
120
@@ -133,8 +133,8 @@ private function determineEolSupport(HealthCollection $collection): void
133
133
$ snippet ,
134
134
'releases.json not accessible ' ,
135
135
'accessible ' ,
136
- 'https://raw.githubusercontent.com/shopware/shopware/trunk/releases.json '
137
- )
136
+ 'https://raw.githubusercontent.com/shopware/shopware/trunk/releases.json ' ,
137
+ ),
138
138
);
139
139
140
140
return ;
@@ -148,8 +148,8 @@ private function determineEolSupport(HealthCollection $collection): void
148
148
$ id ,
149
149
$ snippet ,
150
150
'unknown, possibly ended security support ' ,
151
- $ recommended
152
- )
151
+ $ recommended,
152
+ ),
153
153
);
154
154
155
155
return ;
@@ -163,8 +163,8 @@ private function determineEolSupport(HealthCollection $collection): void
163
163
$ id ,
164
164
$ snippet ,
165
165
'ended security support on ' . $ releaseSupport ['security_eol ' ],
166
- $ recommended
167
- )
166
+ $ recommended,
167
+ ),
168
168
);
169
169
170
170
return ;
@@ -176,8 +176,8 @@ private function determineEolSupport(HealthCollection $collection): void
176
176
$ id ,
177
177
$ snippet ,
178
178
'less than six months ( ' . $ releaseSupport ['security_eol ' ] . ') ' ,
179
- $ recommended
180
- )
179
+ $ recommended,
180
+ ),
181
181
);
182
182
183
183
return ;
@@ -189,8 +189,8 @@ private function determineEolSupport(HealthCollection $collection): void
189
189
$ id ,
190
190
$ snippet ,
191
191
'less than one year ( ' . $ releaseSupport ['security_eol ' ] . ') ' ,
192
- $ recommended
193
- )
192
+ $ recommended,
193
+ ),
194
194
);
195
195
196
196
return ;
@@ -200,8 +200,8 @@ private function determineEolSupport(HealthCollection $collection): void
200
200
SettingsResult::ok (
201
201
$ id ,
202
202
$ snippet ,
203
- 'until ' . $ releaseSupport ['security_eol ' ]
204
- )
203
+ 'until ' . $ releaseSupport ['security_eol ' ],
204
+ ),
205
205
);
206
206
}
207
207
0 commit comments