public function fetchScriptSettings()
    {
        $data = [];

        $scriptSettings = $this->factory->getConnection()->getModeScriptSettings();

        /**
         * @var string $i
         */
        $i = 1;
        foreach ($scriptSettings as $name => $value) {
            $data[] = [
                'index' => $i++,
                'name' => $name,
                'value' => $value,
            ];
        }

        return $data;
    }
public function fetchScriptSettings()
    {
        $data = [];

        $scriptSettings = $this->factory->getConnection()->getModeScriptSettings();

        /**
         * @var string $i
         */
        $i = 1;
        foreach ($scriptSettings as $name => $value) {
            $data[] = [
                'index' => $i++,
                'name' => $name,
                'value' => $value,
            ];
        }

        return $data;
    }
public function fetchScriptSettings ( ) { $ data = [ ] ; $ scriptSettings = $ this -> factory -> getConnection ( ) -> getModeScriptSettings ( ) ; /**
         * @var string $i
         */ $ i = 1 ; foreach ( $ scriptSettings as $ name => $ value ) { $ data [ ] = [ 'index' => $ i ++ , 'name' => $ name , 'value' => $ value , ] ; } return $ data ; }
helper function to fetch script settings
helper function to fetch script settings