src/controllers/ElementController.php
Method actionRunExport
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Invalid
Invalid
public function actionRunExport()
{
$body = $this->request->getBodyParams();
$elementId = Craft::$app->getRequest()->getRequiredBodyParam('elementId');
$export = ExportElement::findOne(['id' => $elementId]);
Method actionStep2
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function actionStep2()
{
$body = $this->request->getBodyParams();
$elementId = Craft::$app->getRequest()->getRequiredBodyParam('elementId');
$export = ExportElement::findOne(['id' => $elementId]);