src/Contao/View/Contao2BackendView/FileSelect.php
private function runAjaxRequest()
    {
        // Ajax request.
        // @codingStandardsIgnoreStart - We need POST access here.
        if (!($_POST && Environment::get('isAjaxRequest'))) // @codingStandardsIgnoreEnd
        {
            return null;
        }

        $ajax = new Ajax(Input::post('action'));
        $ajax->executePreActions();

        return $ajax;
    }
private function runAjaxRequest()
    {
        // Ajax request.
        // @codingStandardsIgnoreStart - We need POST access here.
        if (!($_POST && Environment::get('isAjaxRequest'))) // @codingStandardsIgnoreEnd
        {
            return null;
        }

        $ajax = new Ajax(Input::post('action'));
        $ajax->executePreActions();

        return $ajax;
    }
private function runAjaxRequest ( ) { // Ajax request. // @codingStandardsIgnoreStart - We need POST access here. if ( ! ( $ _POST && Environment :: get ( 'isAjaxRequest' ) ) ) // @codingStandardsIgnoreEnd { return null ; } $ ajax = new Ajax ( Input :: post ( 'action' ) ) ; $ ajax -> executePreActions ( ) ; return $ ajax ; }
Run the ajax request if is determine for run.

@SuppressWarnings(PHPMD.Superglobals)

@return Ajax|null
Run the ajax request if is determine for run .