@param array $stack

@return string
6650
protected function getType(array $stack)
    {
        if (!isset($stack['function'])) {
            return null;
        }

        if (isset($stack['namespace']) && isset($stack['class'])) {
            return $stack['namespace'] . '\\' . $stack['class'] . $stack['type'] . $stack['function'];
        } elseif (isset($stack['namespace'])) {
            return $stack['namespace'] . '\\' . $stack['function'];
        } else {
            return $stack['function'];
        }
    }
458548
public function activateStack(Stack $stack)
    {
        if (null !== $this->activeStack) {
            $stack->setParent($this->activeStack);
        }

        $this->activeStack = $stack;
    }
591892
public function format(StackTrace $stack)
	{
		$ret = "<table class=\"nettools_core_exceptionhandlers_exception\"><tr><th>File</th><th>Line</th><th>Function</th></tr>";
		
		foreach ( $stack->stack as $item )
			$ret .= '<tr><td>' . implode('</td><td>', array_slice($item, 0, 3)) . '</td></tr>';
		
		$ret .= "</table>";
		return $ret;
	}
609680
public function join(array $array)
    {
        $function = $this->_function;
        $valuesFunction = $this->_valuesFunction;
        $result = '';
        foreach ($array as $key => $value) {
            if (!$this->_skipNulls || ($this->_skipNulls && $value)) {
                $result .= (
                    $function ? $function($key, $value) :
                        ($valuesFunction ? $valuesFunction($value) : $value)
                    ) . $this->_separator;
            }
        }
        return rtrim($result, $this->_separator);
    }
198345
public function getStack($stackName, $organization = '')
    {
        $contents = $this
            ->call('GET', implode('/', [self::STACK_RESOURCE, $this->getOrganizationName($organization), $stackName]))
            ->getBody()
            ->getContents();

        return Stack::createFromJsonResponse($contents);
    }
1250905
private static function _stack($matches = false)
    {
        static $safe_blocks = [];
        if ($matches !== false) {
            $key = '<' . count($safe_blocks) . '>';
            $safe_blocks[$key] = $matches[0];
            return $key;
        } else {
            $tmp = $safe_blocks;
            unset($safe_blocks);
            return $tmp;
        }
    }
1295173
public function convertArrayToDotNotation(array $array)
    {
        $recursiveIterator = new \RecursiveIteratorIterator(new \RecursiveArrayIterator($array));

        $newArray = [];

        foreach ($recursiveIterator as $leafValue) {
            $keys = [];

            foreach (range(0, $recursiveIterator->getDepth()) as $depth) {
                $keys[] = $recursiveIterator->getSubIterator($depth)->key();
            }

            $newArray[implode('.', $keys)] = $leafValue;
        }

        return $newArray;
    }
825570
public function transform(array $array): string
    {
        return json_encode(
            $array,
            JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_TAG | JSON_FORCE_OBJECT | JSON_PRETTY_PRINT |
            JSON_UNESCAPED_SLASHES
        );
    }
1139395
public function addStack(StackInterface $stack): ResultInterface
    {
        $this->stack->addStack($stack, false);
        return $this;
    }
1195451
public static function mock(array $stack = []): ApiClient
    {
        $mock = new MockHandler($stack);

        $handler = HandlerStack::create($mock);

        $client = new Client(['handler' => $handler, 'verify' => false]);

        app()->instance('ej:sdk:guzzle', $client);

        return resolve(__CLASS__);
    }
364575
protected static function encodeArray($array)
    {
        if (Arrays::isAssoc($array)) {
            $output = [];
            foreach ($array as $key => $val) {
                $output[] = $key . ':' . \addcslashes($val, ': ');
            }

            return self::encodeString(\implode(' ', $output));
        }

        $output = [];
        foreach ($array as $val) {
            $output[] = \addcslashes($val, ': ');
        }

        return self::encodeString(\implode(' ', $output));
    }
1243534
public static function pushTransitionsOnStack($stack, $transitions)
    {
        $returnValue = array();

        
    	foreach ($transitions as $t){
    		array_push($stack, $t);
    	}
    	
    	$returnValue = $stack;
        

        return (array) $returnValue;
    }
1113416
public static function arrayToKey(array $array): string {
        $result = "";
        \array_walk_recursive($array, function ($key, $value) use (&$result) {
            $result .= $key . $value;
        });
        return $result;
    }
877652
protected static function readArray(array $array): string
    {
        $data = [];

        foreach ($array as $key => $value) {
            $data[] = sprintf('%s => %s', $key, static::toString($value));
        }

        return sprintf('Array(%s)', implode(', ', $data));
    }
541305
public function getChildrenStacks(Stack $parent)
    {
        return array_filter($this->data['stacks'], function (Stack $stack) use ($parent) {
            return $stack->getParent() === $parent;
        });
    }
301037
public static function associativeArray(array $array) {
        $string = '[ ';
        foreach($array as $key => $item) {
            $string .= $key . ' => ' . $item;
            if($item !== last($array)) {
                $string .= ', ';
            }
        }
        $string .= ' ]';

        return $string;
    }
865763
public static function parseArrayToPg($array)
	{
		foreach ($array as $key => $value) {
			if (is_array($value)) {
				$array[$key] = self::parseArrayToPg($value);
			}
		}

		return '{' . implode(',', $array) . '}';
	}