@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | Event::on( |
232 | 232 | CraftVariable::class, |
233 | 233 | CraftVariable::EVENT_INIT, |
234 | - function (Event $event) { |
|
234 | + function(Event $event) { |
|
235 | 235 | /** @var CraftVariable $variable */ |
236 | 236 | $variable = $event->sender; |
237 | 237 | $variable->set('imageOptimize', ImageOptimizeVariable::class); |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | Event::on( |
243 | 243 | Fields::class, |
244 | 244 | Fields::EVENT_REGISTER_FIELD_TYPES, |
245 | - function (RegisterComponentTypesEvent $event) { |
|
245 | + function(RegisterComponentTypesEvent $event) { |
|
246 | 246 | Craft::debug( |
247 | 247 | 'Fields::EVENT_REGISTER_FIELD_TYPES', |
248 | 248 | __METHOD__ |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | Event::on( |
282 | 282 | Assets::class, |
283 | 283 | Assets::EVENT_GET_ASSET_URL, |
284 | - function (GetAssetUrlEvent $event) { |
|
284 | + function(GetAssetUrlEvent $event) { |
|
285 | 285 | Craft::debug( |
286 | 286 | 'Assets::EVENT_GET_ASSET_URL', |
287 | 287 | __METHOD__ |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | Event::on( |
298 | 298 | Assets::class, |
299 | 299 | Assets::EVENT_GET_ASSET_THUMB_URL, |
300 | - function (GetAssetThumbUrlEvent $event) { |
|
300 | + function(GetAssetThumbUrlEvent $event) { |
|
301 | 301 | Craft::debug( |
302 | 302 | 'Assets::EVENT_GET_ASSET_THUMB_URL', |
303 | 303 | __METHOD__ |
@@ -313,7 +313,7 @@ discard block |
||
313 | 313 | Event::on( |
314 | 314 | AssetTransforms::class, |
315 | 315 | AssetTransforms::EVENT_GENERATE_TRANSFORM, |
316 | - function (GenerateTransformEvent $event) { |
|
316 | + function(GenerateTransformEvent $event) { |
|
317 | 317 | Craft::debug( |
318 | 318 | 'AssetTransforms::EVENT_GENERATE_TRANSFORM', |
319 | 319 | __METHOD__ |
@@ -329,7 +329,7 @@ discard block |
||
329 | 329 | Event::on( |
330 | 330 | AssetTransforms::class, |
331 | 331 | AssetTransforms::EVENT_AFTER_DELETE_TRANSFORMS, |
332 | - function (AssetTransformImageEvent $event) { |
|
332 | + function(AssetTransformImageEvent $event) { |
|
333 | 333 | Craft::debug( |
334 | 334 | 'AssetTransforms::EVENT_AFTER_DELETE_TRANSFORMS', |
335 | 335 | __METHOD__ |
@@ -345,7 +345,7 @@ discard block |
||
345 | 345 | Event::on( |
346 | 346 | Assets::class, |
347 | 347 | Assets::EVENT_BEFORE_REPLACE_ASSET, |
348 | - function (ReplaceAssetEvent $event) { |
|
348 | + function(ReplaceAssetEvent $event) { |
|
349 | 349 | Craft::debug( |
350 | 350 | 'Assets::EVENT_BEFORE_REPLACE_ASSET', |
351 | 351 | __METHOD__ |
@@ -367,7 +367,7 @@ discard block |
||
367 | 367 | Event::on( |
368 | 368 | Assets::class, |
369 | 369 | Assets::EVENT_AFTER_REPLACE_ASSET, |
370 | - function (ReplaceAssetEvent $event) { |
|
370 | + function(ReplaceAssetEvent $event) { |
|
371 | 371 | Craft::debug( |
372 | 372 | 'Assets::EVENT_AFTER_REPLACE_ASSET', |
373 | 373 | __METHOD__ |
@@ -390,7 +390,7 @@ discard block |
||
390 | 390 | Event::on( |
391 | 391 | Assets::class, |
392 | 392 | Elements::EVENT_BEFORE_SAVE_ELEMENT, |
393 | - function (ElementEvent $event) { |
|
393 | + function(ElementEvent $event) { |
|
394 | 394 | Craft::debug( |
395 | 395 | 'Elements::EVENT_BEFORE_SAVE_ELEMENT', |
396 | 396 | __METHOD__ |
@@ -414,7 +414,7 @@ discard block |
||
414 | 414 | Event::on( |
415 | 415 | Asset::class, |
416 | 416 | Elements::EVENT_BEFORE_DELETE_ELEMENT, |
417 | - function (ElementEvent $event) { |
|
417 | + function(ElementEvent $event) { |
|
418 | 418 | Craft::debug( |
419 | 419 | 'Elements::EVENT_BEFORE_DELETE_ELEMENT', |
420 | 420 | __METHOD__ |
@@ -442,7 +442,7 @@ discard block |
||
442 | 442 | Event::on( |
443 | 443 | Fields::class, |
444 | 444 | Fields::EVENT_AFTER_SAVE_FIELD, |
445 | - function (FieldEvent $event) { |
|
445 | + function(FieldEvent $event) { |
|
446 | 446 | Craft::debug( |
447 | 447 | 'Fields::EVENT_AFTER_SAVE_FIELD', |
448 | 448 | __METHOD__ |
@@ -459,7 +459,7 @@ discard block |
||
459 | 459 | Event::on( |
460 | 460 | Plugins::class, |
461 | 461 | Plugins::EVENT_AFTER_SAVE_PLUGIN_SETTINGS, |
462 | - function (PluginEvent $event) { |
|
462 | + function(PluginEvent $event) { |
|
463 | 463 | if ($event->plugin === $this) { |
464 | 464 | Craft::debug( |
465 | 465 | 'Plugins::EVENT_AFTER_SAVE_PLUGIN_SETTINGS', |
@@ -478,7 +478,7 @@ discard block |
||
478 | 478 | Event::on( |
479 | 479 | Volumes::class, |
480 | 480 | Volumes::EVENT_AFTER_SAVE_VOLUME, |
481 | - function (VolumeEvent $event) { |
|
481 | + function(VolumeEvent $event) { |
|
482 | 482 | Craft::debug( |
483 | 483 | 'Volumes::EVENT_AFTER_SAVE_VOLUME', |
484 | 484 | __METHOD__ |
@@ -499,7 +499,7 @@ discard block |
||
499 | 499 | Event::on( |
500 | 500 | Plugins::class, |
501 | 501 | Plugins::EVENT_AFTER_INSTALL_PLUGIN, |
502 | - function (PluginEvent $event) { |
|
502 | + function(PluginEvent $event) { |
|
503 | 503 | if ($event->plugin === $this) { |
504 | 504 | $request = Craft::$app->getRequest(); |
505 | 505 | if ($request->isCpRequest) { |
@@ -533,7 +533,7 @@ discard block |
||
533 | 533 | Event::on( |
534 | 534 | UrlManager::class, |
535 | 535 | UrlManager::EVENT_REGISTER_SITE_URL_RULES, |
536 | - function (RegisterUrlRulesEvent $event) { |
|
536 | + function(RegisterUrlRulesEvent $event) { |
|
537 | 537 | Craft::debug( |
538 | 538 | 'UrlManager::EVENT_REGISTER_SITE_URL_RULES', |
539 | 539 | __METHOD__ |
@@ -556,12 +556,12 @@ discard block |
||
556 | 556 | Event::on( |
557 | 557 | Plugins::class, |
558 | 558 | Plugins::EVENT_AFTER_LOAD_PLUGINS, |
559 | - function () { |
|
559 | + function() { |
|
560 | 560 | // Install these only after all other plugins have loaded |
561 | 561 | Event::on( |
562 | 562 | View::class, |
563 | 563 | View::EVENT_REGISTER_CP_TEMPLATE_ROOTS, |
564 | - function (RegisterTemplateRootsEvent $e) { |
|
564 | + function(RegisterTemplateRootsEvent $e) { |
|
565 | 565 | // Register the root directodies |
566 | 566 | $allImageTransformTypes = ImageOptimize::$plugin->optimize->getAllImageTransformTypes(); |
567 | 567 | /** @var ImageTransformInterface $imageTransformType */ |