@param array $entry

@return string
12064
protected function getEntryPath(array $entry)
    {
        $path = '';

        foreach ($entry['path_collection']['entries'] as $folder) {
            if ($folder['id'] == self::ROOT_DIR_ID) {
                continue;
            }

            $path .= $folder['name'] . '/';
        }

        $path .= $entry['name'];

        return $path;
    }
982739
public function get($entry)
    {
        $value = false;

        foreach ($this->caches as $cache) {
            $value = $cache->get($entry);
            if ($value !== false) {
                return $value;
            }
        }
        return $value;
    }
721469
public function format($mask, Entry $entry)
    {
        return $this->formatter->format($mask, function ($key) use ($entry) {
            if ($key === 'id') {
                return $entry->getID();
            }
            
            $attribute = $entry->getAttribute($key);
            if ($attribute) {
                return $attribute;
            }

            $association = $entry->getAssociation($key);
            if (is_object($association)) {
                return $association->getSelectedEntry()->getLabel();
            }
        });
    }
1077348
protected function normalize(array $entry)
    {
        if (isset($entry['name']) && is_array($entry['name'])) {
            $files = [];
            foreach ($entry['name'] as $index => $name) {
                if ($entry['error'][$index] === UPLOAD_ERR_NO_FILE) {
                    continue;
                }

                $files[$index] = [
                    'name' => $name,
                    'tmp_name' => $entry['tmp_name'][$index],
                    'size' => $entry['size'][$index],
                    'type' => $entry['type'][$index],
                    'error' => $entry['error'][$index]
                ];
            }

            return new self($files);
        }

        return new self($entry);
    }
1054290
public function insertSlide($entry) {
        $return_value = $this->connection->insert('site_sliders')
                ->fields($entry)
                ->execute();

        return $return_value;
    }
616099
protected function parseHeaders(array $entry)
    {
        $headers = array();

        if (!is_array($entry['msgstr'])) {
            return $headers;
        }

        foreach ($entry['msgstr'] as $headerRaw) {
            $parts = explode(':', $headerRaw);
            if (count($parts) < 2) {
                continue;
            }

            $parts[1] = ltrim($parts[1]);
            $values = array_slice($parts, 1);
            $headerValue = rtrim(implode(':', $values));

            $headers[$parts[0]] = $headerValue;
        }

        return $headers;
    }
431897
public function onEntry($entry)
    {
        if (is_array($entry)) {
            // First item from laravel-zmq is the channel name
            $channel = $entry[0];

            // Second is the actual message (in JSON format)
            $entry = json_decode($entry[1], true);

            // Put the channel name back into the payload
            $entry['channel'] = $channel;

            // And re-encode so it can be sent to clients
            $entry = json_encode($entry);
        }

        // No channel found in the payload or channel doesn't have any subscribers
        if (! $channel || ! array_key_exists($channel, $this->subscribedTopics)) {
            return;
        }

        if (starts_with($channel, 'private-')) {
            // Only get the subscribers to the channel that this should be published on
            $subs = $this->subscribedTopics[$channel];

            foreach ($subs as $to) {
                $this->send($to, $entry);
            }
        } else {
            // If it's public, send to all clients
            $this->sendAll($entry);
        }
    }
414970
public static function fromRawEntry($entry)
	{
		$className = get_called_class();
		$class = new $className();

		foreach ($entry as $property=> $value)
			$class->{$property} = $value;

		return $class;
	}
721237
protected function _createItem( array $entry )
	{
		$item = $this->_manager->createItem();

		foreach( $entry as $name => $value )
		{
			switch( $name )
			{
				case 'price.id': $item->setId( $value ); break;
				case 'price.label': $item->setLabel( $value ); break;
				case 'price.domain': $item->setDomain( $value ); break;
				case 'price.typeid': $item->setTypeId( $value ); break;
				case 'price.status': $item->setStatus( $value ); break;
				case 'price.value': $item->setValue( $value ); break;
				case 'price.costs': $item->setCosts( $value ); break;
				case 'price.rebate': $item->setRebate( $value ); break;
				case 'price.taxrate': $item->setTaxRate( $value ); break;
				case 'price.quantity': $item->setQuantity( $value ); break;
				case 'price.currencyid': $item->setCurrencyId( $value ); break;
			}
		}

		return $item;
	}
1303141
public function dumpEntry(): string
    {
        $output = $this->dumpEntryComments();

        $key = PoTokens::CONTEXT;
        if (!($this->entry[$key] === null)) {
            $output .= $key . $this->formatQuotedString($this->entry[$key]);
        }
        $key = PoTokens::MESSAGE;
        if (!($this->entry[$key] === null)) {
            $output .= $key . $this->formatQuotedString($this->entry[$key]);
            $key = PoTokens::PLURAL;
            if (!($this->entry[$key] === null)) {
                $output .= $key . $this->formatQuotedString($this->entry[$key]);
                $key = PoTokens::TRANSLATED;
                $plurals = $this->entry[$key];
                $plurals = is_array($plurals) ? $plurals : array('', '');
                foreach ($plurals as $i => $value) {
                    $output .= "{$key}[{$i}]" . $this->formatQuotedString($value);
                }
            } else {
                $key = PoTokens::TRANSLATED;
                $output .= $key . $this->formatQuotedString($this->entry[$key]);
            }
        }

        $output .= "\n";
        return $output;
    }
60609
protected function writeMsgStr(array $entry)
    {
        $result = '';

        if (!isset($entry['msgstr'])) {
            return $result;
        }

        $isPlural = isset($entry['msgid_plural']);

        foreach ($entry['msgstr'] as $i => $value) {
            if ($entry['obsolete']) {
                $result .= "#~ ";
            }

            if ($isPlural) {
                $result .= "msgstr[$i] ";
            } else {
                if ($i == 0) {
                    $result .= 'msgstr ';
                }
            }

            $result .= $this->cleanExport($value) . "\n";
        }

        return $result;
    }
1171485
private function residesInDirectory(array $entry): bool
    {
        if ($this->directory === '') {
            return true;
        }

        return strpos($entry['path'], $this->directory . '/') === 0;
    }
759743
public static function getDateModified(Entry $entry)
    {
        $dateModified = $entry->getDateModified();
        if (!empty($dateModified)) {
            return Core::make('helper/date')->formatDateTime($dateModified);
        } else {
            return Core::make('helper/date')->formatDateTime($entry->getDateCreated());
        }

    }
993898
function generateTraceEntry( $entry )
    {
        if ( isset( $entry['file'] ) )
        {
            $stackText = $entry['file'];
        }
        else
        {
            $stackText = "???";
        }
        $stackText .= ":";
        if ( isset( $entry['line'] ) )
        {
            $stackText .= $entry['line'];
        }
        else
        {
            $stackText .= "???";
        }
        $stackText .= " ";
        if ( isset( $entry['class'] ) )
        {
            $stackText .= $entry['class'];
        }
        else
        {
            $stackText .= "???";
        }
        $stackText .= "::";
        if ( isset( $entry['function'] ) )
        {
            $stackText .= $entry['function'];
        }
        else
        {
            $stackText .= "???";
        }
        return $stackText;
    }
458120
protected function _createItem( array $entry )
	{
		$item = $this->_manager->createItem();

		foreach( $entry as $name => $value )
		{
			switch( $name )
			{
				case 'order.base.id': $item->setId( $value ); break;
				case 'order.base.comment': $item->setComment( $value ); break;
				case 'order.base.customerid': $item->setCustomerId( $value ); break;
			}
		}

		return $item;
	}
848791
public function renderSitemapIndex(array $entries)
    {
        $data = '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL;
        $data .= '<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' . PHP_EOL;
        foreach ($entries as $entry) {
            $data .= '    <sitemap>' . PHP_EOL;
            $data .= '        <loc>' . $entry->getLoc() . '</loc>' . PHP_EOL;
            $data .= '        <lastmod>' . $entry->getLastMod() . '</lastmod>' . PHP_EOL;
            $data .= '    </sitemap>' . PHP_EOL;
        }

        $data .= '</sitemapindex>' . PHP_EOL;

        return $data;
    }
144241
protected function validateClassEntry($entry)
    {
        if (!is_string($entry) && !is_object($entry)) {
            $type = gettype($entry);
            $message = sprintf('Argument "entry" in "%s" must be a string or an object; "%s" was given.', __METHOD__, $type);
            throw new Exception\InvalidArgumentException($message);
        }

        if (is_string($entry) && !class_exists($entry)) {
            throw new Exception\ClassNotFoundException($entry);
        }
    }