@@ -84,9 +84,9 @@ discard block |
||
| 84 | 84 | if ($field instanceof OptimizedImagesField && $element instanceof Asset) { |
| 85 | 85 | if ($this->fieldId === null || $field->id == $this->fieldId) { |
| 86 | 86 | if (Craft::$app instanceof ConsoleApplication) { |
| 87 | - echo $currentElement . '/' . $totalElements |
|
| 88 | - . ' - processing asset: ' . $element->title |
|
| 89 | - . ' from field: ' . $field->name . PHP_EOL; |
|
| 87 | + echo $currentElement.'/'.$totalElements |
|
| 88 | + . ' - processing asset: '.$element->title |
|
| 89 | + . ' from field: '.$field->name.PHP_EOL; |
|
| 90 | 90 | } |
| 91 | 91 | try { |
| 92 | 92 | ImageOptimize::$plugin->optimizedImages->updateOptimizedImageFieldData($field, $element); |
@@ -96,9 +96,9 @@ discard block |
||
| 96 | 96 | echo '[error]: ' |
| 97 | 97 | . $e->getMessage() |
| 98 | 98 | . ' while processing ' |
| 99 | - . $currentElement . '/' . $totalElements |
|
| 100 | - . ' - processing asset: ' . $element->title |
|
| 101 | - . ' from field: ' . $field->name . PHP_EOL; |
|
| 99 | + . $currentElement.'/'.$totalElements |
|
| 100 | + . ' - processing asset: '.$element->title |
|
| 101 | + . ' from field: '.$field->name.PHP_EOL; |
|
| 102 | 102 | } |
| 103 | 103 | } |
| 104 | 104 | } |
@@ -207,7 +207,7 @@ |
||
| 207 | 207 | if (!$asset->propagating) { |
| 208 | 208 | // If the scenario is Asset::SCENARIO_FILEOPS treat it as a new asset |
| 209 | 209 | $scenario = $asset->getScenario(); |
| 210 | - if ($isNew || $scenario === Asset::SCENARIO_FILEOPS ) { |
|
| 210 | + if ($isNew || $scenario === Asset::SCENARIO_FILEOPS) { |
|
| 211 | 211 | /** |
| 212 | 212 | * If this is a newly uploaded/created Asset, we can save the variants |
| 213 | 213 | * via a queue job to prevent it from blocking |