Completed
Branch dependabot/composer/tijsverkoy... (491ea6)
by
unknown
32:00 queued 25:42
created
core/services/request/files/FileSubmissionInterface.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -14,37 +14,37 @@
 block discarded – undo
14 14
  */
15 15
 interface FileSubmissionInterface
16 16
 {
17
-    /**
18
-     * @return string
19
-     */
20
-    public function getName();
17
+	/**
18
+	 * @return string
19
+	 */
20
+	public function getName();
21 21
 
22
-    /**
23
-     * @return string
24
-     */
25
-    public function getType();
22
+	/**
23
+	 * @return string
24
+	 */
25
+	public function getType();
26 26
 
27
-    /**
28
-     * @return int
29
-     */
30
-    public function getSize();
27
+	/**
28
+	 * @return int
29
+	 */
30
+	public function getSize();
31 31
 
32
-    /**
33
-     * @return string
34
-     */
35
-    public function getTmpFile();
32
+	/**
33
+	 * @return string
34
+	 */
35
+	public function getTmpFile();
36 36
 
37
-    /**
38
-     * Should just return the filename.
39
-     * @since 4.9.80.p
40
-     * @return string
41
-     */
42
-    public function __toString();
37
+	/**
38
+	 * Should just return the filename.
39
+	 * @since 4.9.80.p
40
+	 * @return string
41
+	 */
42
+	public function __toString();
43 43
 
44
-    /**
45
-     * @return string
46
-     */
47
-    public function getErrorCode();
44
+	/**
45
+	 * @return string
46
+	 */
47
+	public function getErrorCode();
48 48
 }
49 49
 // End of file FileSubmissionInterface.php
50 50
 // Location: EventEspresso\core\services\request\files/FileSubmissionInterface.php
Please login to merge, or discard this patch.
core/services/request/LegacyRequestInterface.php 1 patch
Indentation   +87 added lines, -87 removed lines patch added patch discarded remove patch
@@ -11,125 +11,125 @@
 block discarded – undo
11 11
  */
12 12
 interface LegacyRequestInterface
13 13
 {
14
-    /**
15
-     * @return array
16
-     */
17
-    public function get_params();
14
+	/**
15
+	 * @return array
16
+	 */
17
+	public function get_params();
18 18
 
19 19
 
20
-    /**
21
-     * @return array
22
-     */
23
-    public function post_params();
20
+	/**
21
+	 * @return array
22
+	 */
23
+	public function post_params();
24 24
 
25 25
 
26
-    /**
27
-     * @return array
28
-     */
29
-    public function cookie_params();
26
+	/**
27
+	 * @return array
28
+	 */
29
+	public function cookie_params();
30 30
 
31 31
 
32
-    /**
33
-     * @return array
34
-     */
35
-    public function server_params();
32
+	/**
33
+	 * @return array
34
+	 */
35
+	public function server_params();
36 36
 
37 37
 
38
-    /**
39
-     * returns sanitized contents of $_REQUEST
40
-     *
41
-     * @return array
42
-     */
43
-    public function params();
38
+	/**
39
+	 * returns sanitized contents of $_REQUEST
40
+	 *
41
+	 * @return array
42
+	 */
43
+	public function params();
44 44
 
45 45
 
46
-    /**
47
-     * @param      $key
48
-     * @param      $value
49
-     * @param bool $override_ee
50
-     * @return    void
51
-     */
52
-    public function set($key, $value, $override_ee = false);
46
+	/**
47
+	 * @param      $key
48
+	 * @param      $value
49
+	 * @param bool $override_ee
50
+	 * @return    void
51
+	 */
52
+	public function set($key, $value, $override_ee = false);
53 53
 
54 54
 
55
-    /**
56
-     * returns   the value for a request param if the given key exists
57
-     *
58
-     * @param       $key
59
-     * @param null  $default
60
-     * @return mixed
61
-     */
62
-    public function get($key, $default = null);
55
+	/**
56
+	 * returns   the value for a request param if the given key exists
57
+	 *
58
+	 * @param       $key
59
+	 * @param null  $default
60
+	 * @return mixed
61
+	 */
62
+	public function get($key, $default = null);
63 63
 
64 64
 
65
-    /**
66
-     * check if param exists
67
-     *
68
-     * @param       $key
69
-     * @return bool
70
-     */
71
-    public function is_set($key);
65
+	/**
66
+	 * check if param exists
67
+	 *
68
+	 * @param       $key
69
+	 * @return bool
70
+	 */
71
+	public function is_set($key);
72 72
 
73 73
 
74
-    /**
75
-     * remove param
76
-     *
77
-     * @param      $key
78
-     * @param bool $unset_from_global_too
79
-     */
80
-    public function un_set($key, $unset_from_global_too = false);
74
+	/**
75
+	 * remove param
76
+	 *
77
+	 * @param      $key
78
+	 * @param bool $unset_from_global_too
79
+	 */
80
+	public function un_set($key, $unset_from_global_too = false);
81 81
 
82 82
 
83
-    /**
84
-     * @return string
85
-     */
86
-    public function ip_address();
83
+	/**
84
+	 * @return string
85
+	 */
86
+	public function ip_address();
87 87
 
88 88
 
89
-    /**
90
-     * @return bool
91
-     */
92
-    public function isAdmin();
89
+	/**
90
+	 * @return bool
91
+	 */
92
+	public function isAdmin();
93 93
 
94 94
 
95
-    /**
96
-     * @return mixed
97
-     */
98
-    public function isAjax();
95
+	/**
96
+	 * @return mixed
97
+	 */
98
+	public function isAjax();
99 99
 
100 100
 
101
-    /**
102
-     * @return mixed
103
-     */
104
-    public function isFrontAjax();
101
+	/**
102
+	 * @return mixed
103
+	 */
104
+	public function isFrontAjax();
105 105
 
106 106
 
107
-    /**
108
-     * @return mixed|string
109
-     */
110
-    public function requestUri();
107
+	/**
108
+	 * @return mixed|string
109
+	 */
110
+	public function requestUri();
111 111
 
112 112
 
113
-    /**
114
-     * @return string
115
-     */
116
-    public function userAgent();
113
+	/**
114
+	 * @return string
115
+	 */
116
+	public function userAgent();
117 117
 
118 118
 
119
-    /**
120
-     * @param string $user_agent
121
-     */
122
-    public function setUserAgent($user_agent = '');
119
+	/**
120
+	 * @param string $user_agent
121
+	 */
122
+	public function setUserAgent($user_agent = '');
123 123
 
124 124
 
125
-    /**
126
-     * @return bool
127
-     */
128
-    public function isBot();
125
+	/**
126
+	 * @return bool
127
+	 */
128
+	public function isBot();
129 129
 
130 130
 
131
-    /**
132
-     * @param bool $is_bot
133
-     */
134
-    public function setIsBot($is_bot);
131
+	/**
132
+	 * @param bool $is_bot
133
+	 */
134
+	public function setIsBot($is_bot);
135 135
 }
Please login to merge, or discard this patch.
core/services/routing/PrimaryRoute.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -20,31 +20,31 @@
 block discarded – undo
20 20
  */
21 21
 abstract class PrimaryRoute extends Route
22 22
 {
23
-    const ROUTE_REQUEST_TYPE_ACTIVATION = 'ACTIVATION';
23
+	const ROUTE_REQUEST_TYPE_ACTIVATION = 'ACTIVATION';
24 24
 
25
-    const ROUTE_REQUEST_TYPE_REGULAR = 'REGULAR';
25
+	const ROUTE_REQUEST_TYPE_REGULAR = 'REGULAR';
26 26
 
27 27
 
28
-    /**
29
-     * @var string $route_request_type
30
-     */
31
-    protected $route_request_type = '';
28
+	/**
29
+	 * @var string $route_request_type
30
+	 */
31
+	protected $route_request_type = '';
32 32
 
33 33
 
34
-    /**
35
-     * @param string $route_request_type
36
-     */
37
-    public function setRouteRequestType(string $route_request_type = '')
38
-    {
39
-        $this->route_request_type = $route_request_type;
40
-    }
34
+	/**
35
+	 * @param string $route_request_type
36
+	 */
37
+	public function setRouteRequestType(string $route_request_type = '')
38
+	{
39
+		$this->route_request_type = $route_request_type;
40
+	}
41 41
 
42 42
 
43
-    /**
44
-     * @return string
45
-     */
46
-    public function getRouteRequestType(): string
47
-    {
48
-        return $this->route_request_type;
49
-    }
43
+	/**
44
+	 * @return string
45
+	 */
46
+	public function getRouteRequestType(): string
47
+	{
48
+		return $this->route_request_type;
49
+	}
50 50
 }
Please login to merge, or discard this patch.
core/services/routing/RouteMatchSpecificationFactory.php 1 patch
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -22,44 +22,44 @@
 block discarded – undo
22 22
  */
23 23
 class RouteMatchSpecificationFactory extends FactoryWithDependencyResolver
24 24
 {
25
-    /**
26
-     * RouteMatchSpecificationFactory constructor
27
-     *
28
-     * @param RouteMatchSpecificationDependencyResolver $dependency_resolver
29
-     * @param LoaderInterface                           $loader
30
-     */
31
-    public function __construct(RouteMatchSpecificationDependencyResolver $dependency_resolver, LoaderInterface $loader)
32
-    {
33
-        parent::__construct($dependency_resolver, $loader);
34
-    }
25
+	/**
26
+	 * RouteMatchSpecificationFactory constructor
27
+	 *
28
+	 * @param RouteMatchSpecificationDependencyResolver $dependency_resolver
29
+	 * @param LoaderInterface                           $loader
30
+	 */
31
+	public function __construct(RouteMatchSpecificationDependencyResolver $dependency_resolver, LoaderInterface $loader)
32
+	{
33
+		parent::__construct($dependency_resolver, $loader);
34
+	}
35 35
 
36
-    /**
37
-     * @param $fqcn
38
-     * @return RouteMatchSpecification
39
-     * @throws InvalidDataTypeException
40
-     * @since 4.9.71.p
41
-     */
42
-    public function createNewRouteMatchSpecification($fqcn)
43
-    {
44
-        $this->dependencyResolver()->resolveDependenciesForClass($fqcn);
45
-        return $this->loader()->getShared($fqcn);
46
-    }
36
+	/**
37
+	 * @param $fqcn
38
+	 * @return RouteMatchSpecification
39
+	 * @throws InvalidDataTypeException
40
+	 * @since 4.9.71.p
41
+	 */
42
+	public function createNewRouteMatchSpecification($fqcn)
43
+	{
44
+		$this->dependencyResolver()->resolveDependenciesForClass($fqcn);
45
+		return $this->loader()->getShared($fqcn);
46
+	}
47 47
 
48 48
 
49
-    /**
50
-     * @param $fqcn
51
-     * @return RouteMatchSpecification
52
-     * @throws InvalidArgumentException
53
-     * @throws InvalidDataTypeException
54
-     * @throws InvalidInterfaceException
55
-     * @since 4.9.71.p
56
-     */
57
-    public static function create($fqcn)
58
-    {
59
-        /** @var RouteMatchSpecificationFactory $specification_factory */
60
-        $specification_factory = LoaderFactory::getLoader()->getShared(
61
-            'EventEspresso\core\services\routing\RouteMatchSpecificationFactory'
62
-        );
63
-        return $specification_factory->createNewRouteMatchSpecification($fqcn);
64
-    }
49
+	/**
50
+	 * @param $fqcn
51
+	 * @return RouteMatchSpecification
52
+	 * @throws InvalidArgumentException
53
+	 * @throws InvalidDataTypeException
54
+	 * @throws InvalidInterfaceException
55
+	 * @since 4.9.71.p
56
+	 */
57
+	public static function create($fqcn)
58
+	{
59
+		/** @var RouteMatchSpecificationFactory $specification_factory */
60
+		$specification_factory = LoaderFactory::getLoader()->getShared(
61
+			'EventEspresso\core\services\routing\RouteMatchSpecificationFactory'
62
+		);
63
+		return $specification_factory->createNewRouteMatchSpecification($fqcn);
64
+	}
65 65
 }
Please login to merge, or discard this patch.
core/services/routing/RouteMatchSpecificationDependencyResolver.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -21,18 +21,18 @@
 block discarded – undo
21 21
  */
22 22
 class RouteMatchSpecificationDependencyResolver extends DependencyResolver
23 23
 {
24
-    /**
25
-     * Used to configure and/or setup any aliases or namespace roots required by the DependencyResolver
26
-     *
27
-     * @since 4.9.71.p
28
-     * @throws InvalidAliasException
29
-     */
30
-    public function initialize()
31
-    {
32
-        $this->addAlias(
33
-            'EventEspresso\core\services\request\Request',
34
-            'EventEspresso\core\services\request\RequestInterface'
35
-        );
36
-        $this->addNamespaceRoot('EventEspresso\core\domain\entities\routing\specifications');
37
-    }
24
+	/**
25
+	 * Used to configure and/or setup any aliases or namespace roots required by the DependencyResolver
26
+	 *
27
+	 * @since 4.9.71.p
28
+	 * @throws InvalidAliasException
29
+	 */
30
+	public function initialize()
31
+	{
32
+		$this->addAlias(
33
+			'EventEspresso\core\services\request\Request',
34
+			'EventEspresso\core\services\request\RequestInterface'
35
+		);
36
+		$this->addNamespaceRoot('EventEspresso\core\domain\entities\routing\specifications');
37
+	}
38 38
 }
Please login to merge, or discard this patch.
core/services/routing/RouteMatchSpecificationCollection.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -15,36 +15,36 @@
 block discarded – undo
15 15
  */
16 16
 class RouteMatchSpecificationCollection extends Collection
17 17
 {
18
-    const COLLECTION_NAME = 'route_match_specifications';
18
+	const COLLECTION_NAME = 'route_match_specifications';
19 19
 
20 20
 
21
-    /**
22
-     * RouteMatchSpecificationCollection constructor
23
-     *
24
-     * @throws InvalidInterfaceException
25
-     */
26
-    public function __construct()
27
-    {
28
-        parent::__construct(
29
-            'EventEspresso\core\domain\entities\routing\specifications\RouteMatchSpecificationInterface',
30
-            RouteMatchSpecificationCollection::COLLECTION_NAME
31
-        );
32
-    }
21
+	/**
22
+	 * RouteMatchSpecificationCollection constructor
23
+	 *
24
+	 * @throws InvalidInterfaceException
25
+	 */
26
+	public function __construct()
27
+	{
28
+		parent::__construct(
29
+			'EventEspresso\core\domain\entities\routing\specifications\RouteMatchSpecificationInterface',
30
+			RouteMatchSpecificationCollection::COLLECTION_NAME
31
+		);
32
+	}
33 33
 
34 34
 
35
-    /**
36
-     * getIdentifier
37
-     * Overrides EventEspresso\core\services\collections\Collection::getIdentifier()
38
-     * If no $identifier is supplied, then the  fully qualified class name is used
39
-     *
40
-     * @param        $object
41
-     * @param  mixed $identifier
42
-     * @return bool
43
-     */
44
-    public function getIdentifier($object, $identifier = null)
45
-    {
46
-        return ! empty($identifier)
47
-            ? $identifier
48
-            : get_class($object);
49
-    }
35
+	/**
36
+	 * getIdentifier
37
+	 * Overrides EventEspresso\core\services\collections\Collection::getIdentifier()
38
+	 * If no $identifier is supplied, then the  fully qualified class name is used
39
+	 *
40
+	 * @param        $object
41
+	 * @param  mixed $identifier
42
+	 * @return bool
43
+	 */
44
+	public function getIdentifier($object, $identifier = null)
45
+	{
46
+		return ! empty($identifier)
47
+			? $identifier
48
+			: get_class($object);
49
+	}
50 50
 }
Please login to merge, or discard this patch.
core/services/routing/RouteCollection.php 1 patch
Indentation   +64 added lines, -64 removed lines patch added patch discarded remove patch
@@ -16,76 +16,76 @@
 block discarded – undo
16 16
  */
17 17
 class RouteCollection extends Collection
18 18
 {
19
-    const COLLECTION_NAME = 'routes';
19
+	const COLLECTION_NAME = 'routes';
20 20
 
21 21
 
22
-    /**
23
-     * RouteMatchSpecificationCollection constructor
24
-     *
25
-     * @throws InvalidInterfaceException
26
-     */
27
-    public function __construct()
28
-    {
29
-        parent::__construct(
30
-            'EventEspresso\core\services\routing\RouteInterface',
31
-            RouteCollection::COLLECTION_NAME
32
-        );
33
-    }
22
+	/**
23
+	 * RouteMatchSpecificationCollection constructor
24
+	 *
25
+	 * @throws InvalidInterfaceException
26
+	 */
27
+	public function __construct()
28
+	{
29
+		parent::__construct(
30
+			'EventEspresso\core\services\routing\RouteInterface',
31
+			RouteCollection::COLLECTION_NAME
32
+		);
33
+	}
34 34
 
35 35
 
36
-    /**
37
-     * getIdentifier
38
-     * Overrides EventEspresso\core\services\collections\Collection::getIdentifier()
39
-     * If no $identifier is supplied, then the  fully qualified class name is used
40
-     *
41
-     * @param        $object
42
-     * @param mixed  $identifier
43
-     * @return bool
44
-     */
45
-    public function getIdentifier($object, $identifier = null)
46
-    {
47
-        return ! empty($identifier)
48
-            ? $identifier
49
-            : get_class($object);
50
-    }
36
+	/**
37
+	 * getIdentifier
38
+	 * Overrides EventEspresso\core\services\collections\Collection::getIdentifier()
39
+	 * If no $identifier is supplied, then the  fully qualified class name is used
40
+	 *
41
+	 * @param        $object
42
+	 * @param mixed  $identifier
43
+	 * @return bool
44
+	 */
45
+	public function getIdentifier($object, $identifier = null)
46
+	{
47
+		return ! empty($identifier)
48
+			? $identifier
49
+			: get_class($object);
50
+	}
51 51
 
52 52
 
53
-    /**
54
-     * finds and returns all Routes that have yet to be handled
55
-     *
56
-     * @return RouteInterface[]
57
-     */
58
-    public function getRoutesForCurrentRequest()
59
-    {
60
-        $routes = [];
61
-        $this->rewind();
62
-        while ($this->valid()) {
63
-            /** @var RouteInterface $route */
64
-            $route = $this->current();
65
-            if ($route->matchesCurrentRequest()) {
66
-                $routes[] = $route;
67
-            }
68
-            $this->next();
69
-        }
70
-        $this->rewind();
71
-        return $routes;
72
-    }
53
+	/**
54
+	 * finds and returns all Routes that have yet to be handled
55
+	 *
56
+	 * @return RouteInterface[]
57
+	 */
58
+	public function getRoutesForCurrentRequest()
59
+	{
60
+		$routes = [];
61
+		$this->rewind();
62
+		while ($this->valid()) {
63
+			/** @var RouteInterface $route */
64
+			$route = $this->current();
65
+			if ($route->matchesCurrentRequest()) {
66
+				$routes[] = $route;
67
+			}
68
+			$this->next();
69
+		}
70
+		$this->rewind();
71
+		return $routes;
72
+	}
73 73
 
74 74
 
75
-    /**
76
-     * calls RouteInterface::handleRequest() on all Routes that
77
-     *      - match current request
78
-     *      - have yet to be handled
79
-     *
80
-     * @return void
81
-     */
82
-    public function handleRoutesForCurrentRequest()
83
-    {
84
-        $this->rewind();
85
-        while ($this->valid()) {
86
-            $this->current()->handleRequest();
87
-            $this->next();
88
-        }
89
-        $this->rewind();
90
-    }
75
+	/**
76
+	 * calls RouteInterface::handleRequest() on all Routes that
77
+	 *      - match current request
78
+	 *      - have yet to be handled
79
+	 *
80
+	 * @return void
81
+	 */
82
+	public function handleRoutesForCurrentRequest()
83
+	{
84
+		$this->rewind();
85
+		while ($this->valid()) {
86
+			$this->current()->handleRequest();
87
+			$this->next();
88
+		}
89
+		$this->rewind();
90
+	}
91 91
 }
Please login to merge, or discard this patch.
core/services/loaders/CachingLoaderDecoratorInterface.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -10,21 +10,21 @@
 block discarded – undo
10 10
  */
11 11
 interface CachingLoaderDecoratorInterface extends LoaderDecoratorInterface
12 12
 {
13
-    /**
14
-     * @param string $fqcn
15
-     * @param mixed  $object
16
-     * @param array  $arguments
17
-     * @return bool
18
-     * @throws InvalidArgumentException
19
-     */
20
-    public function share($fqcn, $object, array $arguments = []);
13
+	/**
14
+	 * @param string $fqcn
15
+	 * @param mixed  $object
16
+	 * @param array  $arguments
17
+	 * @return bool
18
+	 * @throws InvalidArgumentException
19
+	 */
20
+	public function share($fqcn, $object, array $arguments = []);
21 21
 
22 22
 
23
-    /**
24
-     * @param string $fqcn
25
-     * @param array  $arguments
26
-     * @return bool
27
-     * @throws InvalidArgumentException
28
-     */
29
-    public function remove($fqcn, array $arguments = []);
23
+	/**
24
+	 * @param string $fqcn
25
+	 * @param array  $arguments
26
+	 * @return bool
27
+	 * @throws InvalidArgumentException
28
+	 */
29
+	public function remove($fqcn, array $arguments = []);
30 30
 }
Please login to merge, or discard this patch.
core/services/loaders/LoaderFactory.php 1 patch
Indentation   +61 added lines, -61 removed lines patch added patch discarded remove patch
@@ -70,71 +70,71 @@
 block discarded – undo
70 70
  */
71 71
 class LoaderFactory
72 72
 {
73
-    /**
74
-     * @var LoaderInterface $loader ;
75
-     */
76
-    private static $loader;
73
+	/**
74
+	 * @var LoaderInterface $loader ;
75
+	 */
76
+	private static $loader;
77 77
 
78 78
 
79
-    /**
80
-     * @param EE_Registry|CoffeeShop   $generator   provided during very first instantiation in
81
-     *                                              BootstrapDependencyInjectionContainer::buildLoader()
82
-     *                                              otherwise can be left null
83
-     * @param ClassInterfaceCache|null $class_cache also provided during first instantiation
84
-     * @param ObjectIdentifier|null    $object_identifier
85
-     * @return LoaderInterface
86
-     * @throws InvalidArgumentException
87
-     * @throws InvalidDataTypeException
88
-     * @throws InvalidInterfaceException
89
-     */
90
-    public static function getLoader(
91
-        $generator = null,
92
-        ClassInterfaceCache $class_cache = null,
93
-        ObjectIdentifier $object_identifier = null
94
-    ): LoaderInterface {
95
-        if (
96
-            ! LoaderFactory::$loader instanceof LoaderInterface
97
-            && ($generator instanceof EE_Registry || $generator instanceof CoffeeShop)
98
-            && $class_cache instanceof ClassInterfaceCache
99
-            && $object_identifier instanceof ObjectIdentifier
100
-        ) {
101
-            $core_loader = new CoreLoader($generator);
102
-            LoaderFactory::$loader = new Loader(
103
-                $core_loader,
104
-                new CachingLoader(
105
-                    $core_loader,
106
-                    new LooseCollection(''),
107
-                    $object_identifier
108
-                ),
109
-                $class_cache
110
-            );
111
-        }
112
-        return LoaderFactory::$loader;
113
-    }
79
+	/**
80
+	 * @param EE_Registry|CoffeeShop   $generator   provided during very first instantiation in
81
+	 *                                              BootstrapDependencyInjectionContainer::buildLoader()
82
+	 *                                              otherwise can be left null
83
+	 * @param ClassInterfaceCache|null $class_cache also provided during first instantiation
84
+	 * @param ObjectIdentifier|null    $object_identifier
85
+	 * @return LoaderInterface
86
+	 * @throws InvalidArgumentException
87
+	 * @throws InvalidDataTypeException
88
+	 * @throws InvalidInterfaceException
89
+	 */
90
+	public static function getLoader(
91
+		$generator = null,
92
+		ClassInterfaceCache $class_cache = null,
93
+		ObjectIdentifier $object_identifier = null
94
+	): LoaderInterface {
95
+		if (
96
+			! LoaderFactory::$loader instanceof LoaderInterface
97
+			&& ($generator instanceof EE_Registry || $generator instanceof CoffeeShop)
98
+			&& $class_cache instanceof ClassInterfaceCache
99
+			&& $object_identifier instanceof ObjectIdentifier
100
+		) {
101
+			$core_loader = new CoreLoader($generator);
102
+			LoaderFactory::$loader = new Loader(
103
+				$core_loader,
104
+				new CachingLoader(
105
+					$core_loader,
106
+					new LooseCollection(''),
107
+					$object_identifier
108
+				),
109
+				$class_cache
110
+			);
111
+		}
112
+		return LoaderFactory::$loader;
113
+	}
114 114
 
115 115
 
116
-    /**
117
-     * Used for instantiating a new instance of a class
118
-     *
119
-     * @param FullyQualifiedName|string $fqcn
120
-     * @param array                     $arguments
121
-     * @return mixed
122
-     */
123
-    public static function getNew($fqcn, array $arguments = [])
124
-    {
125
-        return LoaderFactory::getLoader()->getNew($fqcn, $arguments);
126
-    }
116
+	/**
117
+	 * Used for instantiating a new instance of a class
118
+	 *
119
+	 * @param FullyQualifiedName|string $fqcn
120
+	 * @param array                     $arguments
121
+	 * @return mixed
122
+	 */
123
+	public static function getNew($fqcn, array $arguments = [])
124
+	{
125
+		return LoaderFactory::getLoader()->getNew($fqcn, $arguments);
126
+	}
127 127
 
128 128
 
129
-    /**
130
-     * Used for getting a shared instance of a class
131
-     *
132
-     * @param FullyQualifiedName|string $fqcn
133
-     * @param array                     $arguments
134
-     * @return mixed
135
-     */
136
-    public static function getShared($fqcn, array $arguments = [])
137
-    {
138
-        return LoaderFactory::getLoader()->getShared($fqcn, $arguments);
139
-    }
129
+	/**
130
+	 * Used for getting a shared instance of a class
131
+	 *
132
+	 * @param FullyQualifiedName|string $fqcn
133
+	 * @param array                     $arguments
134
+	 * @return mixed
135
+	 */
136
+	public static function getShared($fqcn, array $arguments = [])
137
+	{
138
+		return LoaderFactory::getLoader()->getShared($fqcn, $arguments);
139
+	}
140 140
 }
Please login to merge, or discard this patch.