Determine the auto load functions registered.

@param array $previous The previous autoload functions.

@return array
17593
private function determineRegisteredAutoLoader($previous)
    {
        $found = array();
        $after = spl_autoload_functions();
        foreach ($after as $loader) {
            if (!in_array($loader, $previous)) {
                spl_autoload_unregister($loader);
                $found[] = $loader;
            }
        }

        return $found;
    }
109932
public function autoload($class)
    {
        $filePath = $this->folder . '/' . str_replace('\\', '/', $class) . '.php';

        if (file_exists($filePath)) {
            return ( (require_once $filePath) === false ? true : false );
        }

        return false;
    }
2119
public function prev()
    {
        return $this->getParent() !== null ? $this->getParent()->getChildByIndex($this->getIndex() - 1) : null;
    }
491740
public function autoloadTypes()
    {
        //loaded and static
        if (self::$loaded) {
            return;
        }

        if (!$this->kernel->isDebug() && $this->loadFromCacheCache()) {
            self::$loaded = true;

            return;
        }

        self::$loaded = true;

        foreach ($this->kernel->getBundles() as $bundle) {
            $path = $bundle->getPath().'/Type';
            if (file_exists($path)) {
                $this->registerBundleTypes($path, $bundle->getNamespace());
            }
        }

        if (Kernel::VERSION_ID >= 40000) {
            $path = $this->kernel->getRootDir().'/Type';
            if (file_exists($path)) {
                $this->registerBundleTypes($path, 'App');
            }
        }

        $this->saveCache();
    }
1198915
public function auto_load() {
		/**
		 * do UI loader locations
		 *
		 * @param ui $this Current instance of this class
		 */
		do_action( 'uix_register', $this );
		// init the share object
		uix_share();

		// go over each locations
		foreach ( $this->locations as $type => $paths ) {

			if ( $this->is_callable( $type ) ) {
				$this->process_paths( $type, $paths );
			}
		}
	}
1124298
public static function fromArray(array $method, ?Throwable $previous = null): self
    {
        $className = get_class($method[0]);
        $methodName = $method[1];

        $method = sprintf('%s::%s', $className, $methodName);

        return self::make($method, $previous);
    }
1158852
private function get_defaults()
    {
        return [
            'echo'                => true,
            'range'               => 5,
            'custom_query'        => false,
            'show_first_last'     => true,
            'show_previous_next'  => true,
            'active_link_wrapper' => '<li class="active">%s</li>',
            'link_wrapper'        => '<li><a href="%s" itemprop="url"><span itemprop="name">%s</span></a></li>',
            'first_wrapper'       => '<li><a href="%s" itemprop="url"><span itemprop="name">' . __('First page', 'snap') . '</span></a></li>',
            'previous_wrapper'    => '<li><a href="%s" itemprop="url"><span itemprop="name">' . __('Previous', 'snap') . '</span></a></li>',
            'next_wrapper'        => '<li><a href="%s" itemprop="url"><span itemprop="name">' . __('Next', 'snap') . '</span></a></li>',
            'last_wrapper'        => '<li><a href="%s" itemprop="url"><span itemprop="name">' . __('Last page', 'snap') . '</span></a></li>',
            'before_output'       => '<nav aria-label="' . __('Pagination', 'snap') . '"><ul role="navigation" itemscope itemtype="http://schema.org/SiteNavigationElement">',
            'after_output'        => '</ul></nav>',
        ];
    }
1064990
protected function removeDeletedArrayEntries(array $array = null, array $previousArray)
    {
        foreach ($previousArray as $item) {
            if ($item['type'] === 'array') {
                $this->removeDeletedArrayEntries($array[$item['index']], $item['value']);
            } elseif ($this->getTypeName($item['type']) === 'object' && !($item['type'] === 'DateTime' || $item['type'] === 'SplObjectStorage')) {
                if (!$this->persistenceSession->hasIdentifier($item['value']['identifier'])) {
                    // ingore this identifier, assume it was blocked by security query rewriting
                    continue;
                }

                $object = $this->persistenceSession->getObjectByIdentifier($item['value']['identifier']);
                if ($array === null || !$this->arrayContainsObject($array, $object, $item['value']['identifier'])) {
                    if ($this->reflectionService->getClassSchema($item['type'])->getModelType() === ClassSchema::MODELTYPE_ENTITY
                            && $this->reflectionService->getClassSchema($item['type'])->isAggregateRoot() === false) {
                        $this->removeEntity($this->persistenceSession->getObjectByIdentifier($item['value']['identifier']));
                    } elseif ($this->reflectionService->getClassSchema($item['type'])->getModelType() === ClassSchema::MODELTYPE_VALUEOBJECT) {
                        $this->removeValueObject($this->persistenceSession->getObjectByIdentifier($item['value']['identifier']));
                    }
                }
            }
        }
    }
924501
public function previousElementSibling()
    {
        $p = $this->_prev();
        return $p ? new self($this->doc, $p) : null;
    }
18733
public function _mergeWithPrevious($previous)
    {
        if (!$previous)
        {
            return $this;
        }
        if ($previous instanceof DeleteOperation)
        {
            return new SetOperation($this->objects);
        }
        if ($previous instanceof SetOperation)
        {
            $oldValue = $previous->getValue();
            $result = $this->_apply($oldValue, null, null);

            return new SetOperation($result);
        }
        if ($previous instanceof AddUniqueOperation)
        {
            $oldList = $previous->getValue();
            $result = $this->_apply($oldList, null, null);

            return new AddUniqueOperation($result);
        }
        throw new AVException('Operation is invalid after previous operation.');
    }
945123
public function previous($key = null)
    {
        if (is_null($key)) {
            return $this->oldAttributes;
        }

        return $this->oldAttributes[$key];
    }
349228
public function getPreviousPage()
    {
        $previousPageIndex = $this->currentPage->getIndex() - 1;
        if (!$this->formDefinition->hasPageWithIndex($previousPageIndex)) {
            return null;
        }
        return $this->formDefinition->getPageByIndex($previousPageIndex);
    }
1310329
public function prev()
    {

        $index = $this->parent->indexOf($this) - 1;

        return isset($this->parent->children[$index]) ? $this->parent->children[$index] : null;
    }
769042
public function autoload( $class ) {
		$parent               = explode( '\\', get_class( $this ) );
		$class_array          = explode( '\\', $class );
		$intersect            = array_intersect_assoc( $parent, $class_array );
		$intersect_depth      = count( $intersect );
		$autoload_match_depth = static::$autoload_ns_match_depth;
		// Confirm $class is in same namespace as this autoloader.
		if ( $intersect_depth >= $autoload_match_depth ) {
			$file = $this->get_file_name_from_class( $class );
			if ( 'classmap' === static::$autoload_type && is_array( $this->autoload_dir ) ) {
				foreach ( $this->autoload_dir as $dir ) {
					$this->load_file( $this->installed_dir . $dir . $file );
				}
			} else {
				$this->load_file( $this->installed_dir . $file );
			}
		}

	}
686537
protected function flattenArray(array $values, $previous = '')
    {
        $result = array();
        foreach ($values as $key => $value) {
            if ($previous) {
                $key = $previous.'['.$key.']';
            }
            if (is_array($value)) {
                $result = $result + $this->flattenArray($value, $key);
            } else {
                $result[$key] = $value;
            }
        }

        return $result;
    }
292587
public function load($input)
    {
        foreach ($this->strategies as $strategy) {
            if ($strategy->supports($input)) {
                return array_map([$this, 'createJsonDefinition'], $strategy->load($input));
            }
        }

        return [];
    }
132077
public function getDefaults($args = null)
    {
        if (!is_null($args)) {
            if (is_array($args)) {
                return array_only($this->defaults, $args);
            }
            if (array_key_exists($args, $this->defaults)) {
                return $this->defaults[$args];
            }
        }
        return $this->defaults;
    }