Get Normalized Data Array

@return array
763420
public function getAll()
    {
        $all = parent::getAll();
        $res = [];
        foreach ($all as $key => $raw) {
            $res[$key] = $raw['value'];
        }

        return $res;
    }
1304550
protected function getEmbeddedData()
    {
        if ($old = old($this->column)) {
            return $old;
        }

        if (empty($this->value)) {
            return [];
        }

        if (is_string($this->value)) {
            return json_decode($this->value, true);
        }

        return (array) $this->value;
    }
638161
public function getData()
    {
        $data   = [];
        $path   = $this->getPath();
        $dir    = new Folder($path);
        $files  = (array) $dir->find('.*\.php');

        if (count($files) > 0) {
            foreach ($files as $file) {
                $name     = FS::filename($file);
                $segments = explode('_', $name);
                $version  = array_shift($segments);
                $class    = Inflector::camelize(implode('_', $segments));

                $data[$version] = [
                    'class' => $class,
                    'path'  => $path . DS . $file
                ];
            }
        }

        return $data;
    }
1076656
protected function getData()
    {
        $data = [];
        foreach ($this->data as $dataValue) {
            $row = [];
            foreach ($this->table->getColumns() as $column) {
                if ($column instanceof ColumnInterface) {
                    $row[$column->getData()] = $column->getContent($dataValue);
                    continue;
                }

                if (is_callable($column->getFormatter())) {
                    $row[$column->getData()] = call_user_func_array(
                        $column->getFormatter(),
                        [
                            $dataValue[$column->getData()],
                            $dataValue
                        ]
                    );
                } else {
                    $row[$column->getData()] = (string)$dataValue[$column->getData()];
                }
            }
            $data[] = $row;
        }

        return $data;
    }
196944
public function toArray()
    {
        return [
            'platform'        => $this->platform,
            'environment'     => $this->environment,
            'version'         => $this->version,
            'majorVersion'    => $this->majorVersion,
            'minorVersion'    => $this->minorVersion,
            'patchVersion'    => $this->patchVersion,
            'deviceOsVersion' => $this->deviceOsVersion,
            'device'          => $this->device,
        ];
    }
187219
public function toArray()
    {
        $data = [];

        foreach ($this->keys() as $key) {
            $data[$key] = $this->offsetGet($key);
        }

        return $data;
    }
803354
public function toArray(): array
    {
        /* Enable extraction of data and priority */
        $this->setExtractFlags(self::EXTR_BOTH);

        /* Prepare output */
        $data = [];

        /* Iterate yourself */
        foreach ($this as $item) {
            $data[] = $item;
        }

        return $data;
    }
563102
public function toArray(): array
    {
        $data = [
            'meta'          => $this->getMetadata(),
            'links'         => $this->linksToArray(),
            'attributes'    => $this->getAttributes(),
            'relationships' => $this->relationshipsToArray()
        ];

        return array_merge(
            $this->resourceToArray(),
            array_filter($data, 'count')
        );
    }
208516
public function toArray()
    {
        return array_merge($this->wrappedObject->toArray(), [
            'human_status'        => $this->human_status(),
            'latest_update_id'    => $this->latest() ? $this->latest()->id : null,
            'latest_status'       => $this->latest_status(),
            'latest_human_status' => $this->latest_human_status(),
            'latest_icon'         => $this->latest_icon(),
            'permalink'           => $this->permalink(),
            'duration'            => $this->duration(),
            'meta'                => $this->meta(),
            'occurred_at'         => $this->occurred_at(),
            'created_at'          => $this->created_at(),
            'updated_at'          => $this->updated_at(),
        ]);
    }
371610
public function getDatasourcesAsArray()
    {

        // initialize the array
        $datasources = array();

        // prepare the array with the datasources
        foreach ($this->getDatasources() as $datasource) {
            $datasources[$datasource->getPrimaryKey()] = $datasource;
        }

        // return the array with the datasources
        return $datasources;
    }
99214
public function toArray()
    {
        $data = [
            'name' => $this->getName(),
            'text' => $this->getText(),
            'type' => $this->getType(),
            'style' => $this->getStyle(),
        ];

        if($this->getUrl()) $data['url'] = $this->getUrl();
        if($this->getValue()) $data['value'] = $this->getValue();
        if($this->getConfirm()) $data['confirm'] = $this->getConfirm()->toArray();
        if($this->getOptions()) $data['options'] = $this->getOptions();
        if($this->getOptionGroups()) $data['option_groups'] = $this->getOptionGroups();
        if($this->getDataSource()) $data['data_source'] = $this->getDataSource();
        if($this->getSelectedOptions()) $data['selected_options'] = $this->getSelectedOptions();
        if($this->getMinQueryLength()) $data['min_query_length'] = $this->getMinQueryLength();

        return $data;
    }
704513
protected function normalizeData($rawData)
    {
        $data = array();
        foreach ($rawData as $key => $value) {
            if (is_array($value)) {
                $item = array('text' => $key, 'children' => $this->normalizeData($rawData[$key]));
            } else {
                $item = array('id' => $key, 'text' => $value);
            }
            $data[] = $item;
        }
        return $data;
    }
1057773
public function toArray()
    {
        $data = array(
            self::ID         => $this->id,
            self::STATUS     => $this->status,
            self::START_TIME => $this->startTime->getTimestamp(),
        );

        if (! is_null($this->endTime)) {
            $data[self::END_TIME] = $this->endTime->getTimestamp();
        }

        return $data;
    }
710162
public function asArray()
    {
        $fields = [
            '@type' => $this->type(),
            '@key'  => $this->key(),
        ];

        foreach ($this->fields as $name => $field) {
            $fields[$name] = $field->value;
        }

        return $fields;
    }
140699
public function getDataAsTdbArray()
    {
        $data = (null === $this->getStatusData()) ? array() : $this->getStatusData()->all();
        $data = serialize($data);

        return array(
            'shop_order_id' => $this->getOrder()->id,
            'shop_order_status_code_id' => $this->getShopOrderStatusCodeObject()->id,
            'status_date' => date('Y-m-d H:i:s', $this->getStatusTimestamp()),
            'info' => $this->getInfo(),
            'data' => $data,
        );
    }
267722
public function toArray()
    {
        $data = [];

        for ($this->rewind(); $this->valid(); $this->next()) {
            $data[] = $this->current();
        }

        return $data;
    }
25824
public function getData() : array
    {
        $data = [];
        $request = $this->getRequest();
        $method = $request->getMethod();

        switch ($method) {

            //GET
            case Request::METHOD_GET:
                $data = $_GET ?: [];
            break;

            //POST
            case Request::METHOD_POST:
                $data = $_POST ?: [];
            break;

            //Other supported
            case Request::METHOD_DELETE:
            case Request::METHOD_PUT:
            case Request::METHOD_PATCH:
                parse_str($request->getRequestBody(), $data);
            break;

        }

        return $data;
    }