Passed
Push — master ( a034e0...fb1aac )
by
unknown
03:23
created
vendor/composer/ClassLoader.php 2 patches
Indentation   +534 added lines, -534 removed lines patch added patch discarded remove patch
@@ -42,538 +42,538 @@
 block discarded – undo
42 42
  */
43 43
 class ClassLoader
44 44
 {
45
-    /** @var \Closure(string):void */
46
-    private static $includeFile;
47
-
48
-    /** @var string|null */
49
-    private $vendorDir;
50
-
51
-    // PSR-4
52
-    /**
53
-     * @var array<string, array<string, int>>
54
-     */
55
-    private $prefixLengthsPsr4 = array();
56
-    /**
57
-     * @var array<string, list<string>>
58
-     */
59
-    private $prefixDirsPsr4 = array();
60
-    /**
61
-     * @var list<string>
62
-     */
63
-    private $fallbackDirsPsr4 = array();
64
-
65
-    // PSR-0
66
-    /**
67
-     * List of PSR-0 prefixes
68
-     *
69
-     * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2')))
70
-     *
71
-     * @var array<string, array<string, list<string>>>
72
-     */
73
-    private $prefixesPsr0 = array();
74
-    /**
75
-     * @var list<string>
76
-     */
77
-    private $fallbackDirsPsr0 = array();
78
-
79
-    /** @var bool */
80
-    private $useIncludePath = false;
81
-
82
-    /**
83
-     * @var array<string, string>
84
-     */
85
-    private $classMap = array();
86
-
87
-    /** @var bool */
88
-    private $classMapAuthoritative = false;
89
-
90
-    /**
91
-     * @var array<string, bool>
92
-     */
93
-    private $missingClasses = array();
94
-
95
-    /** @var string|null */
96
-    private $apcuPrefix;
97
-
98
-    /**
99
-     * @var array<string, self>
100
-     */
101
-    private static $registeredLoaders = array();
102
-
103
-    /**
104
-     * @param string|null $vendorDir
105
-     */
106
-    public function __construct($vendorDir = null)
107
-    {
108
-        $this->vendorDir = $vendorDir;
109
-        self::initializeIncludeClosure();
110
-    }
111
-
112
-    /**
113
-     * @return array<string, list<string>>
114
-     */
115
-    public function getPrefixes()
116
-    {
117
-        if (!empty($this->prefixesPsr0)) {
118
-            return call_user_func_array('array_merge', array_values($this->prefixesPsr0));
119
-        }
120
-
121
-        return array();
122
-    }
123
-
124
-    /**
125
-     * @return array<string, list<string>>
126
-     */
127
-    public function getPrefixesPsr4()
128
-    {
129
-        return $this->prefixDirsPsr4;
130
-    }
131
-
132
-    /**
133
-     * @return list<string>
134
-     */
135
-    public function getFallbackDirs()
136
-    {
137
-        return $this->fallbackDirsPsr0;
138
-    }
139
-
140
-    /**
141
-     * @return list<string>
142
-     */
143
-    public function getFallbackDirsPsr4()
144
-    {
145
-        return $this->fallbackDirsPsr4;
146
-    }
147
-
148
-    /**
149
-     * @return array<string, string> Array of classname => path
150
-     */
151
-    public function getClassMap()
152
-    {
153
-        return $this->classMap;
154
-    }
155
-
156
-    /**
157
-     * @param array<string, string> $classMap Class to filename map
158
-     *
159
-     * @return void
160
-     */
161
-    public function addClassMap(array $classMap)
162
-    {
163
-        if ($this->classMap) {
164
-            $this->classMap = array_merge($this->classMap, $classMap);
165
-        } else {
166
-            $this->classMap = $classMap;
167
-        }
168
-    }
169
-
170
-    /**
171
-     * Registers a set of PSR-0 directories for a given prefix, either
172
-     * appending or prepending to the ones previously set for this prefix.
173
-     *
174
-     * @param string              $prefix  The prefix
175
-     * @param list<string>|string $paths   The PSR-0 root directories
176
-     * @param bool                $prepend Whether to prepend the directories
177
-     *
178
-     * @return void
179
-     */
180
-    public function add($prefix, $paths, $prepend = false)
181
-    {
182
-        $paths = (array) $paths;
183
-        if (!$prefix) {
184
-            if ($prepend) {
185
-                $this->fallbackDirsPsr0 = array_merge(
186
-                    $paths,
187
-                    $this->fallbackDirsPsr0
188
-                );
189
-            } else {
190
-                $this->fallbackDirsPsr0 = array_merge(
191
-                    $this->fallbackDirsPsr0,
192
-                    $paths
193
-                );
194
-            }
195
-
196
-            return;
197
-        }
198
-
199
-        $first = $prefix[0];
200
-        if (!isset($this->prefixesPsr0[$first][$prefix])) {
201
-            $this->prefixesPsr0[$first][$prefix] = $paths;
202
-
203
-            return;
204
-        }
205
-        if ($prepend) {
206
-            $this->prefixesPsr0[$first][$prefix] = array_merge(
207
-                $paths,
208
-                $this->prefixesPsr0[$first][$prefix]
209
-            );
210
-        } else {
211
-            $this->prefixesPsr0[$first][$prefix] = array_merge(
212
-                $this->prefixesPsr0[$first][$prefix],
213
-                $paths
214
-            );
215
-        }
216
-    }
217
-
218
-    /**
219
-     * Registers a set of PSR-4 directories for a given namespace, either
220
-     * appending or prepending to the ones previously set for this namespace.
221
-     *
222
-     * @param string              $prefix  The prefix/namespace, with trailing '\\'
223
-     * @param list<string>|string $paths   The PSR-4 base directories
224
-     * @param bool                $prepend Whether to prepend the directories
225
-     *
226
-     * @throws \InvalidArgumentException
227
-     *
228
-     * @return void
229
-     */
230
-    public function addPsr4($prefix, $paths, $prepend = false)
231
-    {
232
-        $paths = (array) $paths;
233
-        if (!$prefix) {
234
-            // Register directories for the root namespace.
235
-            if ($prepend) {
236
-                $this->fallbackDirsPsr4 = array_merge(
237
-                    $paths,
238
-                    $this->fallbackDirsPsr4
239
-                );
240
-            } else {
241
-                $this->fallbackDirsPsr4 = array_merge(
242
-                    $this->fallbackDirsPsr4,
243
-                    $paths
244
-                );
245
-            }
246
-        } elseif (!isset($this->prefixDirsPsr4[$prefix])) {
247
-            // Register directories for a new namespace.
248
-            $length = strlen($prefix);
249
-            if ('\\' !== $prefix[$length - 1]) {
250
-                throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
251
-            }
252
-            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
253
-            $this->prefixDirsPsr4[$prefix] = $paths;
254
-        } elseif ($prepend) {
255
-            // Prepend directories for an already registered namespace.
256
-            $this->prefixDirsPsr4[$prefix] = array_merge(
257
-                $paths,
258
-                $this->prefixDirsPsr4[$prefix]
259
-            );
260
-        } else {
261
-            // Append directories for an already registered namespace.
262
-            $this->prefixDirsPsr4[$prefix] = array_merge(
263
-                $this->prefixDirsPsr4[$prefix],
264
-                $paths
265
-            );
266
-        }
267
-    }
268
-
269
-    /**
270
-     * Registers a set of PSR-0 directories for a given prefix,
271
-     * replacing any others previously set for this prefix.
272
-     *
273
-     * @param string              $prefix The prefix
274
-     * @param list<string>|string $paths  The PSR-0 base directories
275
-     *
276
-     * @return void
277
-     */
278
-    public function set($prefix, $paths)
279
-    {
280
-        if (!$prefix) {
281
-            $this->fallbackDirsPsr0 = (array) $paths;
282
-        } else {
283
-            $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
284
-        }
285
-    }
286
-
287
-    /**
288
-     * Registers a set of PSR-4 directories for a given namespace,
289
-     * replacing any others previously set for this namespace.
290
-     *
291
-     * @param string              $prefix The prefix/namespace, with trailing '\\'
292
-     * @param list<string>|string $paths  The PSR-4 base directories
293
-     *
294
-     * @throws \InvalidArgumentException
295
-     *
296
-     * @return void
297
-     */
298
-    public function setPsr4($prefix, $paths)
299
-    {
300
-        if (!$prefix) {
301
-            $this->fallbackDirsPsr4 = (array) $paths;
302
-        } else {
303
-            $length = strlen($prefix);
304
-            if ('\\' !== $prefix[$length - 1]) {
305
-                throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
306
-            }
307
-            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
308
-            $this->prefixDirsPsr4[$prefix] = (array) $paths;
309
-        }
310
-    }
311
-
312
-    /**
313
-     * Turns on searching the include path for class files.
314
-     *
315
-     * @param bool $useIncludePath
316
-     *
317
-     * @return void
318
-     */
319
-    public function setUseIncludePath($useIncludePath)
320
-    {
321
-        $this->useIncludePath = $useIncludePath;
322
-    }
323
-
324
-    /**
325
-     * Can be used to check if the autoloader uses the include path to check
326
-     * for classes.
327
-     *
328
-     * @return bool
329
-     */
330
-    public function getUseIncludePath()
331
-    {
332
-        return $this->useIncludePath;
333
-    }
334
-
335
-    /**
336
-     * Turns off searching the prefix and fallback directories for classes
337
-     * that have not been registered with the class map.
338
-     *
339
-     * @param bool $classMapAuthoritative
340
-     *
341
-     * @return void
342
-     */
343
-    public function setClassMapAuthoritative($classMapAuthoritative)
344
-    {
345
-        $this->classMapAuthoritative = $classMapAuthoritative;
346
-    }
347
-
348
-    /**
349
-     * Should class lookup fail if not found in the current class map?
350
-     *
351
-     * @return bool
352
-     */
353
-    public function isClassMapAuthoritative()
354
-    {
355
-        return $this->classMapAuthoritative;
356
-    }
357
-
358
-    /**
359
-     * APCu prefix to use to cache found/not-found classes, if the extension is enabled.
360
-     *
361
-     * @param string|null $apcuPrefix
362
-     *
363
-     * @return void
364
-     */
365
-    public function setApcuPrefix($apcuPrefix)
366
-    {
367
-        $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
368
-    }
369
-
370
-    /**
371
-     * The APCu prefix in use, or null if APCu caching is not enabled.
372
-     *
373
-     * @return string|null
374
-     */
375
-    public function getApcuPrefix()
376
-    {
377
-        return $this->apcuPrefix;
378
-    }
379
-
380
-    /**
381
-     * Registers this instance as an autoloader.
382
-     *
383
-     * @param bool $prepend Whether to prepend the autoloader or not
384
-     *
385
-     * @return void
386
-     */
387
-    public function register($prepend = false)
388
-    {
389
-        spl_autoload_register(array($this, 'loadClass'), true, $prepend);
390
-
391
-        if (null === $this->vendorDir) {
392
-            return;
393
-        }
394
-
395
-        if ($prepend) {
396
-            self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
397
-        } else {
398
-            unset(self::$registeredLoaders[$this->vendorDir]);
399
-            self::$registeredLoaders[$this->vendorDir] = $this;
400
-        }
401
-    }
402
-
403
-    /**
404
-     * Unregisters this instance as an autoloader.
405
-     *
406
-     * @return void
407
-     */
408
-    public function unregister()
409
-    {
410
-        spl_autoload_unregister(array($this, 'loadClass'));
411
-
412
-        if (null !== $this->vendorDir) {
413
-            unset(self::$registeredLoaders[$this->vendorDir]);
414
-        }
415
-    }
416
-
417
-    /**
418
-     * Loads the given class or interface.
419
-     *
420
-     * @param  string    $class The name of the class
421
-     * @return true|null True if loaded, null otherwise
422
-     */
423
-    public function loadClass($class)
424
-    {
425
-        if ($file = $this->findFile($class)) {
426
-            $includeFile = self::$includeFile;
427
-            $includeFile($file);
428
-
429
-            return true;
430
-        }
431
-
432
-        return null;
433
-    }
434
-
435
-    /**
436
-     * Finds the path to the file where the class is defined.
437
-     *
438
-     * @param string $class The name of the class
439
-     *
440
-     * @return string|false The path if found, false otherwise
441
-     */
442
-    public function findFile($class)
443
-    {
444
-        // class map lookup
445
-        if (isset($this->classMap[$class])) {
446
-            return $this->classMap[$class];
447
-        }
448
-        if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
449
-            return false;
450
-        }
451
-        if (null !== $this->apcuPrefix) {
452
-            $file = apcu_fetch($this->apcuPrefix.$class, $hit);
453
-            if ($hit) {
454
-                return $file;
455
-            }
456
-        }
457
-
458
-        $file = $this->findFileWithExtension($class, '.php');
459
-
460
-        // Search for Hack files if we are running on HHVM
461
-        if (false === $file && defined('HHVM_VERSION')) {
462
-            $file = $this->findFileWithExtension($class, '.hh');
463
-        }
464
-
465
-        if (null !== $this->apcuPrefix) {
466
-            apcu_add($this->apcuPrefix.$class, $file);
467
-        }
468
-
469
-        if (false === $file) {
470
-            // Remember that this class does not exist.
471
-            $this->missingClasses[$class] = true;
472
-        }
473
-
474
-        return $file;
475
-    }
476
-
477
-    /**
478
-     * Returns the currently registered loaders keyed by their corresponding vendor directories.
479
-     *
480
-     * @return array<string, self>
481
-     */
482
-    public static function getRegisteredLoaders()
483
-    {
484
-        return self::$registeredLoaders;
485
-    }
486
-
487
-    /**
488
-     * @param  string       $class
489
-     * @param  string       $ext
490
-     * @return string|false
491
-     */
492
-    private function findFileWithExtension($class, $ext)
493
-    {
494
-        // PSR-4 lookup
495
-        $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
496
-
497
-        $first = $class[0];
498
-        if (isset($this->prefixLengthsPsr4[$first])) {
499
-            $subPath = $class;
500
-            while (false !== $lastPos = strrpos($subPath, '\\')) {
501
-                $subPath = substr($subPath, 0, $lastPos);
502
-                $search = $subPath . '\\';
503
-                if (isset($this->prefixDirsPsr4[$search])) {
504
-                    $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
505
-                    foreach ($this->prefixDirsPsr4[$search] as $dir) {
506
-                        if (file_exists($file = $dir . $pathEnd)) {
507
-                            return $file;
508
-                        }
509
-                    }
510
-                }
511
-            }
512
-        }
513
-
514
-        // PSR-4 fallback dirs
515
-        foreach ($this->fallbackDirsPsr4 as $dir) {
516
-            if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
517
-                return $file;
518
-            }
519
-        }
520
-
521
-        // PSR-0 lookup
522
-        if (false !== $pos = strrpos($class, '\\')) {
523
-            // namespaced class name
524
-            $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
525
-                . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
526
-        } else {
527
-            // PEAR-like class name
528
-            $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
529
-        }
530
-
531
-        if (isset($this->prefixesPsr0[$first])) {
532
-            foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
533
-                if (0 === strpos($class, $prefix)) {
534
-                    foreach ($dirs as $dir) {
535
-                        if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
536
-                            return $file;
537
-                        }
538
-                    }
539
-                }
540
-            }
541
-        }
542
-
543
-        // PSR-0 fallback dirs
544
-        foreach ($this->fallbackDirsPsr0 as $dir) {
545
-            if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
546
-                return $file;
547
-            }
548
-        }
549
-
550
-        // PSR-0 include paths.
551
-        if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
552
-            return $file;
553
-        }
554
-
555
-        return false;
556
-    }
557
-
558
-    /**
559
-     * @return void
560
-     */
561
-    private static function initializeIncludeClosure()
562
-    {
563
-        if (self::$includeFile !== null) {
564
-            return;
565
-        }
566
-
567
-        /**
568
-         * Scope isolated include.
569
-         *
570
-         * Prevents access to $this/self from included files.
571
-         *
572
-         * @param  string $file
573
-         * @return void
574
-         */
575
-        self::$includeFile = \Closure::bind(static function($file) {
576
-            include $file;
577
-        }, null, null);
578
-    }
45
+	/** @var \Closure(string):void */
46
+	private static $includeFile;
47
+
48
+	/** @var string|null */
49
+	private $vendorDir;
50
+
51
+	// PSR-4
52
+	/**
53
+	 * @var array<string, array<string, int>>
54
+	 */
55
+	private $prefixLengthsPsr4 = array();
56
+	/**
57
+	 * @var array<string, list<string>>
58
+	 */
59
+	private $prefixDirsPsr4 = array();
60
+	/**
61
+	 * @var list<string>
62
+	 */
63
+	private $fallbackDirsPsr4 = array();
64
+
65
+	// PSR-0
66
+	/**
67
+	 * List of PSR-0 prefixes
68
+	 *
69
+	 * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2')))
70
+	 *
71
+	 * @var array<string, array<string, list<string>>>
72
+	 */
73
+	private $prefixesPsr0 = array();
74
+	/**
75
+	 * @var list<string>
76
+	 */
77
+	private $fallbackDirsPsr0 = array();
78
+
79
+	/** @var bool */
80
+	private $useIncludePath = false;
81
+
82
+	/**
83
+	 * @var array<string, string>
84
+	 */
85
+	private $classMap = array();
86
+
87
+	/** @var bool */
88
+	private $classMapAuthoritative = false;
89
+
90
+	/**
91
+	 * @var array<string, bool>
92
+	 */
93
+	private $missingClasses = array();
94
+
95
+	/** @var string|null */
96
+	private $apcuPrefix;
97
+
98
+	/**
99
+	 * @var array<string, self>
100
+	 */
101
+	private static $registeredLoaders = array();
102
+
103
+	/**
104
+	 * @param string|null $vendorDir
105
+	 */
106
+	public function __construct($vendorDir = null)
107
+	{
108
+		$this->vendorDir = $vendorDir;
109
+		self::initializeIncludeClosure();
110
+	}
111
+
112
+	/**
113
+	 * @return array<string, list<string>>
114
+	 */
115
+	public function getPrefixes()
116
+	{
117
+		if (!empty($this->prefixesPsr0)) {
118
+			return call_user_func_array('array_merge', array_values($this->prefixesPsr0));
119
+		}
120
+
121
+		return array();
122
+	}
123
+
124
+	/**
125
+	 * @return array<string, list<string>>
126
+	 */
127
+	public function getPrefixesPsr4()
128
+	{
129
+		return $this->prefixDirsPsr4;
130
+	}
131
+
132
+	/**
133
+	 * @return list<string>
134
+	 */
135
+	public function getFallbackDirs()
136
+	{
137
+		return $this->fallbackDirsPsr0;
138
+	}
139
+
140
+	/**
141
+	 * @return list<string>
142
+	 */
143
+	public function getFallbackDirsPsr4()
144
+	{
145
+		return $this->fallbackDirsPsr4;
146
+	}
147
+
148
+	/**
149
+	 * @return array<string, string> Array of classname => path
150
+	 */
151
+	public function getClassMap()
152
+	{
153
+		return $this->classMap;
154
+	}
155
+
156
+	/**
157
+	 * @param array<string, string> $classMap Class to filename map
158
+	 *
159
+	 * @return void
160
+	 */
161
+	public function addClassMap(array $classMap)
162
+	{
163
+		if ($this->classMap) {
164
+			$this->classMap = array_merge($this->classMap, $classMap);
165
+		} else {
166
+			$this->classMap = $classMap;
167
+		}
168
+	}
169
+
170
+	/**
171
+	 * Registers a set of PSR-0 directories for a given prefix, either
172
+	 * appending or prepending to the ones previously set for this prefix.
173
+	 *
174
+	 * @param string              $prefix  The prefix
175
+	 * @param list<string>|string $paths   The PSR-0 root directories
176
+	 * @param bool                $prepend Whether to prepend the directories
177
+	 *
178
+	 * @return void
179
+	 */
180
+	public function add($prefix, $paths, $prepend = false)
181
+	{
182
+		$paths = (array) $paths;
183
+		if (!$prefix) {
184
+			if ($prepend) {
185
+				$this->fallbackDirsPsr0 = array_merge(
186
+					$paths,
187
+					$this->fallbackDirsPsr0
188
+				);
189
+			} else {
190
+				$this->fallbackDirsPsr0 = array_merge(
191
+					$this->fallbackDirsPsr0,
192
+					$paths
193
+				);
194
+			}
195
+
196
+			return;
197
+		}
198
+
199
+		$first = $prefix[0];
200
+		if (!isset($this->prefixesPsr0[$first][$prefix])) {
201
+			$this->prefixesPsr0[$first][$prefix] = $paths;
202
+
203
+			return;
204
+		}
205
+		if ($prepend) {
206
+			$this->prefixesPsr0[$first][$prefix] = array_merge(
207
+				$paths,
208
+				$this->prefixesPsr0[$first][$prefix]
209
+			);
210
+		} else {
211
+			$this->prefixesPsr0[$first][$prefix] = array_merge(
212
+				$this->prefixesPsr0[$first][$prefix],
213
+				$paths
214
+			);
215
+		}
216
+	}
217
+
218
+	/**
219
+	 * Registers a set of PSR-4 directories for a given namespace, either
220
+	 * appending or prepending to the ones previously set for this namespace.
221
+	 *
222
+	 * @param string              $prefix  The prefix/namespace, with trailing '\\'
223
+	 * @param list<string>|string $paths   The PSR-4 base directories
224
+	 * @param bool                $prepend Whether to prepend the directories
225
+	 *
226
+	 * @throws \InvalidArgumentException
227
+	 *
228
+	 * @return void
229
+	 */
230
+	public function addPsr4($prefix, $paths, $prepend = false)
231
+	{
232
+		$paths = (array) $paths;
233
+		if (!$prefix) {
234
+			// Register directories for the root namespace.
235
+			if ($prepend) {
236
+				$this->fallbackDirsPsr4 = array_merge(
237
+					$paths,
238
+					$this->fallbackDirsPsr4
239
+				);
240
+			} else {
241
+				$this->fallbackDirsPsr4 = array_merge(
242
+					$this->fallbackDirsPsr4,
243
+					$paths
244
+				);
245
+			}
246
+		} elseif (!isset($this->prefixDirsPsr4[$prefix])) {
247
+			// Register directories for a new namespace.
248
+			$length = strlen($prefix);
249
+			if ('\\' !== $prefix[$length - 1]) {
250
+				throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
251
+			}
252
+			$this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
253
+			$this->prefixDirsPsr4[$prefix] = $paths;
254
+		} elseif ($prepend) {
255
+			// Prepend directories for an already registered namespace.
256
+			$this->prefixDirsPsr4[$prefix] = array_merge(
257
+				$paths,
258
+				$this->prefixDirsPsr4[$prefix]
259
+			);
260
+		} else {
261
+			// Append directories for an already registered namespace.
262
+			$this->prefixDirsPsr4[$prefix] = array_merge(
263
+				$this->prefixDirsPsr4[$prefix],
264
+				$paths
265
+			);
266
+		}
267
+	}
268
+
269
+	/**
270
+	 * Registers a set of PSR-0 directories for a given prefix,
271
+	 * replacing any others previously set for this prefix.
272
+	 *
273
+	 * @param string              $prefix The prefix
274
+	 * @param list<string>|string $paths  The PSR-0 base directories
275
+	 *
276
+	 * @return void
277
+	 */
278
+	public function set($prefix, $paths)
279
+	{
280
+		if (!$prefix) {
281
+			$this->fallbackDirsPsr0 = (array) $paths;
282
+		} else {
283
+			$this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
284
+		}
285
+	}
286
+
287
+	/**
288
+	 * Registers a set of PSR-4 directories for a given namespace,
289
+	 * replacing any others previously set for this namespace.
290
+	 *
291
+	 * @param string              $prefix The prefix/namespace, with trailing '\\'
292
+	 * @param list<string>|string $paths  The PSR-4 base directories
293
+	 *
294
+	 * @throws \InvalidArgumentException
295
+	 *
296
+	 * @return void
297
+	 */
298
+	public function setPsr4($prefix, $paths)
299
+	{
300
+		if (!$prefix) {
301
+			$this->fallbackDirsPsr4 = (array) $paths;
302
+		} else {
303
+			$length = strlen($prefix);
304
+			if ('\\' !== $prefix[$length - 1]) {
305
+				throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
306
+			}
307
+			$this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
308
+			$this->prefixDirsPsr4[$prefix] = (array) $paths;
309
+		}
310
+	}
311
+
312
+	/**
313
+	 * Turns on searching the include path for class files.
314
+	 *
315
+	 * @param bool $useIncludePath
316
+	 *
317
+	 * @return void
318
+	 */
319
+	public function setUseIncludePath($useIncludePath)
320
+	{
321
+		$this->useIncludePath = $useIncludePath;
322
+	}
323
+
324
+	/**
325
+	 * Can be used to check if the autoloader uses the include path to check
326
+	 * for classes.
327
+	 *
328
+	 * @return bool
329
+	 */
330
+	public function getUseIncludePath()
331
+	{
332
+		return $this->useIncludePath;
333
+	}
334
+
335
+	/**
336
+	 * Turns off searching the prefix and fallback directories for classes
337
+	 * that have not been registered with the class map.
338
+	 *
339
+	 * @param bool $classMapAuthoritative
340
+	 *
341
+	 * @return void
342
+	 */
343
+	public function setClassMapAuthoritative($classMapAuthoritative)
344
+	{
345
+		$this->classMapAuthoritative = $classMapAuthoritative;
346
+	}
347
+
348
+	/**
349
+	 * Should class lookup fail if not found in the current class map?
350
+	 *
351
+	 * @return bool
352
+	 */
353
+	public function isClassMapAuthoritative()
354
+	{
355
+		return $this->classMapAuthoritative;
356
+	}
357
+
358
+	/**
359
+	 * APCu prefix to use to cache found/not-found classes, if the extension is enabled.
360
+	 *
361
+	 * @param string|null $apcuPrefix
362
+	 *
363
+	 * @return void
364
+	 */
365
+	public function setApcuPrefix($apcuPrefix)
366
+	{
367
+		$this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
368
+	}
369
+
370
+	/**
371
+	 * The APCu prefix in use, or null if APCu caching is not enabled.
372
+	 *
373
+	 * @return string|null
374
+	 */
375
+	public function getApcuPrefix()
376
+	{
377
+		return $this->apcuPrefix;
378
+	}
379
+
380
+	/**
381
+	 * Registers this instance as an autoloader.
382
+	 *
383
+	 * @param bool $prepend Whether to prepend the autoloader or not
384
+	 *
385
+	 * @return void
386
+	 */
387
+	public function register($prepend = false)
388
+	{
389
+		spl_autoload_register(array($this, 'loadClass'), true, $prepend);
390
+
391
+		if (null === $this->vendorDir) {
392
+			return;
393
+		}
394
+
395
+		if ($prepend) {
396
+			self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
397
+		} else {
398
+			unset(self::$registeredLoaders[$this->vendorDir]);
399
+			self::$registeredLoaders[$this->vendorDir] = $this;
400
+		}
401
+	}
402
+
403
+	/**
404
+	 * Unregisters this instance as an autoloader.
405
+	 *
406
+	 * @return void
407
+	 */
408
+	public function unregister()
409
+	{
410
+		spl_autoload_unregister(array($this, 'loadClass'));
411
+
412
+		if (null !== $this->vendorDir) {
413
+			unset(self::$registeredLoaders[$this->vendorDir]);
414
+		}
415
+	}
416
+
417
+	/**
418
+	 * Loads the given class or interface.
419
+	 *
420
+	 * @param  string    $class The name of the class
421
+	 * @return true|null True if loaded, null otherwise
422
+	 */
423
+	public function loadClass($class)
424
+	{
425
+		if ($file = $this->findFile($class)) {
426
+			$includeFile = self::$includeFile;
427
+			$includeFile($file);
428
+
429
+			return true;
430
+		}
431
+
432
+		return null;
433
+	}
434
+
435
+	/**
436
+	 * Finds the path to the file where the class is defined.
437
+	 *
438
+	 * @param string $class The name of the class
439
+	 *
440
+	 * @return string|false The path if found, false otherwise
441
+	 */
442
+	public function findFile($class)
443
+	{
444
+		// class map lookup
445
+		if (isset($this->classMap[$class])) {
446
+			return $this->classMap[$class];
447
+		}
448
+		if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
449
+			return false;
450
+		}
451
+		if (null !== $this->apcuPrefix) {
452
+			$file = apcu_fetch($this->apcuPrefix.$class, $hit);
453
+			if ($hit) {
454
+				return $file;
455
+			}
456
+		}
457
+
458
+		$file = $this->findFileWithExtension($class, '.php');
459
+
460
+		// Search for Hack files if we are running on HHVM
461
+		if (false === $file && defined('HHVM_VERSION')) {
462
+			$file = $this->findFileWithExtension($class, '.hh');
463
+		}
464
+
465
+		if (null !== $this->apcuPrefix) {
466
+			apcu_add($this->apcuPrefix.$class, $file);
467
+		}
468
+
469
+		if (false === $file) {
470
+			// Remember that this class does not exist.
471
+			$this->missingClasses[$class] = true;
472
+		}
473
+
474
+		return $file;
475
+	}
476
+
477
+	/**
478
+	 * Returns the currently registered loaders keyed by their corresponding vendor directories.
479
+	 *
480
+	 * @return array<string, self>
481
+	 */
482
+	public static function getRegisteredLoaders()
483
+	{
484
+		return self::$registeredLoaders;
485
+	}
486
+
487
+	/**
488
+	 * @param  string       $class
489
+	 * @param  string       $ext
490
+	 * @return string|false
491
+	 */
492
+	private function findFileWithExtension($class, $ext)
493
+	{
494
+		// PSR-4 lookup
495
+		$logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
496
+
497
+		$first = $class[0];
498
+		if (isset($this->prefixLengthsPsr4[$first])) {
499
+			$subPath = $class;
500
+			while (false !== $lastPos = strrpos($subPath, '\\')) {
501
+				$subPath = substr($subPath, 0, $lastPos);
502
+				$search = $subPath . '\\';
503
+				if (isset($this->prefixDirsPsr4[$search])) {
504
+					$pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
505
+					foreach ($this->prefixDirsPsr4[$search] as $dir) {
506
+						if (file_exists($file = $dir . $pathEnd)) {
507
+							return $file;
508
+						}
509
+					}
510
+				}
511
+			}
512
+		}
513
+
514
+		// PSR-4 fallback dirs
515
+		foreach ($this->fallbackDirsPsr4 as $dir) {
516
+			if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
517
+				return $file;
518
+			}
519
+		}
520
+
521
+		// PSR-0 lookup
522
+		if (false !== $pos = strrpos($class, '\\')) {
523
+			// namespaced class name
524
+			$logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
525
+				. strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
526
+		} else {
527
+			// PEAR-like class name
528
+			$logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
529
+		}
530
+
531
+		if (isset($this->prefixesPsr0[$first])) {
532
+			foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
533
+				if (0 === strpos($class, $prefix)) {
534
+					foreach ($dirs as $dir) {
535
+						if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
536
+							return $file;
537
+						}
538
+					}
539
+				}
540
+			}
541
+		}
542
+
543
+		// PSR-0 fallback dirs
544
+		foreach ($this->fallbackDirsPsr0 as $dir) {
545
+			if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
546
+				return $file;
547
+			}
548
+		}
549
+
550
+		// PSR-0 include paths.
551
+		if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
552
+			return $file;
553
+		}
554
+
555
+		return false;
556
+	}
557
+
558
+	/**
559
+	 * @return void
560
+	 */
561
+	private static function initializeIncludeClosure()
562
+	{
563
+		if (self::$includeFile !== null) {
564
+			return;
565
+		}
566
+
567
+		/**
568
+		 * Scope isolated include.
569
+		 *
570
+		 * Prevents access to $this/self from included files.
571
+		 *
572
+		 * @param  string $file
573
+		 * @return void
574
+		 */
575
+		self::$includeFile = \Closure::bind(static function($file) {
576
+			include $file;
577
+		}, null, null);
578
+	}
579 579
 }
Please login to merge, or discard this patch.
Braces   +46 added lines, -59 removed lines patch added patch discarded remove patch
@@ -103,8 +103,7 @@  discard block
 block discarded – undo
103 103
     /**
104 104
      * @param string|null $vendorDir
105 105
      */
106
-    public function __construct($vendorDir = null)
107
-    {
106
+    public function __construct($vendorDir = null) {
108 107
         $this->vendorDir = $vendorDir;
109 108
         self::initializeIncludeClosure();
110 109
     }
@@ -112,8 +111,7 @@  discard block
 block discarded – undo
112 111
     /**
113 112
      * @return array<string, list<string>>
114 113
      */
115
-    public function getPrefixes()
116
-    {
114
+    public function getPrefixes() {
117 115
         if (!empty($this->prefixesPsr0)) {
118 116
             return call_user_func_array('array_merge', array_values($this->prefixesPsr0));
119 117
         }
@@ -124,32 +122,28 @@  discard block
 block discarded – undo
124 122
     /**
125 123
      * @return array<string, list<string>>
126 124
      */
127
-    public function getPrefixesPsr4()
128
-    {
125
+    public function getPrefixesPsr4() {
129 126
         return $this->prefixDirsPsr4;
130 127
     }
131 128
 
132 129
     /**
133 130
      * @return list<string>
134 131
      */
135
-    public function getFallbackDirs()
136
-    {
132
+    public function getFallbackDirs() {
137 133
         return $this->fallbackDirsPsr0;
138 134
     }
139 135
 
140 136
     /**
141 137
      * @return list<string>
142 138
      */
143
-    public function getFallbackDirsPsr4()
144
-    {
139
+    public function getFallbackDirsPsr4() {
145 140
         return $this->fallbackDirsPsr4;
146 141
     }
147 142
 
148 143
     /**
149 144
      * @return array<string, string> Array of classname => path
150 145
      */
151
-    public function getClassMap()
152
-    {
146
+    public function getClassMap() {
153 147
         return $this->classMap;
154 148
     }
155 149
 
@@ -158,11 +152,11 @@  discard block
 block discarded – undo
158 152
      *
159 153
      * @return void
160 154
      */
161
-    public function addClassMap(array $classMap)
162
-    {
155
+    public function addClassMap(array $classMap) {
163 156
         if ($this->classMap) {
164 157
             $this->classMap = array_merge($this->classMap, $classMap);
165
-        } else {
158
+        }
159
+        else {
166 160
             $this->classMap = $classMap;
167 161
         }
168 162
     }
@@ -177,8 +171,7 @@  discard block
 block discarded – undo
177 171
      *
178 172
      * @return void
179 173
      */
180
-    public function add($prefix, $paths, $prepend = false)
181
-    {
174
+    public function add($prefix, $paths, $prepend = false) {
182 175
         $paths = (array) $paths;
183 176
         if (!$prefix) {
184 177
             if ($prepend) {
@@ -186,7 +179,8 @@  discard block
 block discarded – undo
186 179
                     $paths,
187 180
                     $this->fallbackDirsPsr0
188 181
                 );
189
-            } else {
182
+            }
183
+            else {
190 184
                 $this->fallbackDirsPsr0 = array_merge(
191 185
                     $this->fallbackDirsPsr0,
192 186
                     $paths
@@ -207,7 +201,8 @@  discard block
 block discarded – undo
207 201
                 $paths,
208 202
                 $this->prefixesPsr0[$first][$prefix]
209 203
             );
210
-        } else {
204
+        }
205
+        else {
211 206
             $this->prefixesPsr0[$first][$prefix] = array_merge(
212 207
                 $this->prefixesPsr0[$first][$prefix],
213 208
                 $paths
@@ -227,8 +222,7 @@  discard block
 block discarded – undo
227 222
      *
228 223
      * @return void
229 224
      */
230
-    public function addPsr4($prefix, $paths, $prepend = false)
231
-    {
225
+    public function addPsr4($prefix, $paths, $prepend = false) {
232 226
         $paths = (array) $paths;
233 227
         if (!$prefix) {
234 228
             // Register directories for the root namespace.
@@ -237,13 +231,15 @@  discard block
 block discarded – undo
237 231
                     $paths,
238 232
                     $this->fallbackDirsPsr4
239 233
                 );
240
-            } else {
234
+            }
235
+            else {
241 236
                 $this->fallbackDirsPsr4 = array_merge(
242 237
                     $this->fallbackDirsPsr4,
243 238
                     $paths
244 239
                 );
245 240
             }
246
-        } elseif (!isset($this->prefixDirsPsr4[$prefix])) {
241
+        }
242
+        elseif (!isset($this->prefixDirsPsr4[$prefix])) {
247 243
             // Register directories for a new namespace.
248 244
             $length = strlen($prefix);
249 245
             if ('\\' !== $prefix[$length - 1]) {
@@ -251,13 +247,15 @@  discard block
 block discarded – undo
251 247
             }
252 248
             $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
253 249
             $this->prefixDirsPsr4[$prefix] = $paths;
254
-        } elseif ($prepend) {
250
+        }
251
+        elseif ($prepend) {
255 252
             // Prepend directories for an already registered namespace.
256 253
             $this->prefixDirsPsr4[$prefix] = array_merge(
257 254
                 $paths,
258 255
                 $this->prefixDirsPsr4[$prefix]
259 256
             );
260
-        } else {
257
+        }
258
+        else {
261 259
             // Append directories for an already registered namespace.
262 260
             $this->prefixDirsPsr4[$prefix] = array_merge(
263 261
                 $this->prefixDirsPsr4[$prefix],
@@ -275,11 +273,11 @@  discard block
 block discarded – undo
275 273
      *
276 274
      * @return void
277 275
      */
278
-    public function set($prefix, $paths)
279
-    {
276
+    public function set($prefix, $paths) {
280 277
         if (!$prefix) {
281 278
             $this->fallbackDirsPsr0 = (array) $paths;
282
-        } else {
279
+        }
280
+        else {
283 281
             $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
284 282
         }
285 283
     }
@@ -295,11 +293,11 @@  discard block
 block discarded – undo
295 293
      *
296 294
      * @return void
297 295
      */
298
-    public function setPsr4($prefix, $paths)
299
-    {
296
+    public function setPsr4($prefix, $paths) {
300 297
         if (!$prefix) {
301 298
             $this->fallbackDirsPsr4 = (array) $paths;
302
-        } else {
299
+        }
300
+        else {
303 301
             $length = strlen($prefix);
304 302
             if ('\\' !== $prefix[$length - 1]) {
305 303
                 throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
@@ -316,8 +314,7 @@  discard block
 block discarded – undo
316 314
      *
317 315
      * @return void
318 316
      */
319
-    public function setUseIncludePath($useIncludePath)
320
-    {
317
+    public function setUseIncludePath($useIncludePath) {
321 318
         $this->useIncludePath = $useIncludePath;
322 319
     }
323 320
 
@@ -327,8 +324,7 @@  discard block
 block discarded – undo
327 324
      *
328 325
      * @return bool
329 326
      */
330
-    public function getUseIncludePath()
331
-    {
327
+    public function getUseIncludePath() {
332 328
         return $this->useIncludePath;
333 329
     }
334 330
 
@@ -340,8 +336,7 @@  discard block
 block discarded – undo
340 336
      *
341 337
      * @return void
342 338
      */
343
-    public function setClassMapAuthoritative($classMapAuthoritative)
344
-    {
339
+    public function setClassMapAuthoritative($classMapAuthoritative) {
345 340
         $this->classMapAuthoritative = $classMapAuthoritative;
346 341
     }
347 342
 
@@ -350,8 +345,7 @@  discard block
 block discarded – undo
350 345
      *
351 346
      * @return bool
352 347
      */
353
-    public function isClassMapAuthoritative()
354
-    {
348
+    public function isClassMapAuthoritative() {
355 349
         return $this->classMapAuthoritative;
356 350
     }
357 351
 
@@ -362,8 +356,7 @@  discard block
 block discarded – undo
362 356
      *
363 357
      * @return void
364 358
      */
365
-    public function setApcuPrefix($apcuPrefix)
366
-    {
359
+    public function setApcuPrefix($apcuPrefix) {
367 360
         $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
368 361
     }
369 362
 
@@ -372,8 +365,7 @@  discard block
 block discarded – undo
372 365
      *
373 366
      * @return string|null
374 367
      */
375
-    public function getApcuPrefix()
376
-    {
368
+    public function getApcuPrefix() {
377 369
         return $this->apcuPrefix;
378 370
     }
379 371
 
@@ -384,8 +376,7 @@  discard block
 block discarded – undo
384 376
      *
385 377
      * @return void
386 378
      */
387
-    public function register($prepend = false)
388
-    {
379
+    public function register($prepend = false) {
389 380
         spl_autoload_register(array($this, 'loadClass'), true, $prepend);
390 381
 
391 382
         if (null === $this->vendorDir) {
@@ -394,7 +385,8 @@  discard block
 block discarded – undo
394 385
 
395 386
         if ($prepend) {
396 387
             self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
397
-        } else {
388
+        }
389
+        else {
398 390
             unset(self::$registeredLoaders[$this->vendorDir]);
399 391
             self::$registeredLoaders[$this->vendorDir] = $this;
400 392
         }
@@ -405,8 +397,7 @@  discard block
 block discarded – undo
405 397
      *
406 398
      * @return void
407 399
      */
408
-    public function unregister()
409
-    {
400
+    public function unregister() {
410 401
         spl_autoload_unregister(array($this, 'loadClass'));
411 402
 
412 403
         if (null !== $this->vendorDir) {
@@ -420,8 +411,7 @@  discard block
 block discarded – undo
420 411
      * @param  string    $class The name of the class
421 412
      * @return true|null True if loaded, null otherwise
422 413
      */
423
-    public function loadClass($class)
424
-    {
414
+    public function loadClass($class) {
425 415
         if ($file = $this->findFile($class)) {
426 416
             $includeFile = self::$includeFile;
427 417
             $includeFile($file);
@@ -439,8 +429,7 @@  discard block
 block discarded – undo
439 429
      *
440 430
      * @return string|false The path if found, false otherwise
441 431
      */
442
-    public function findFile($class)
443
-    {
432
+    public function findFile($class) {
444 433
         // class map lookup
445 434
         if (isset($this->classMap[$class])) {
446 435
             return $this->classMap[$class];
@@ -479,8 +468,7 @@  discard block
 block discarded – undo
479 468
      *
480 469
      * @return array<string, self>
481 470
      */
482
-    public static function getRegisteredLoaders()
483
-    {
471
+    public static function getRegisteredLoaders() {
484 472
         return self::$registeredLoaders;
485 473
     }
486 474
 
@@ -489,8 +477,7 @@  discard block
 block discarded – undo
489 477
      * @param  string       $ext
490 478
      * @return string|false
491 479
      */
492
-    private function findFileWithExtension($class, $ext)
493
-    {
480
+    private function findFileWithExtension($class, $ext) {
494 481
         // PSR-4 lookup
495 482
         $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
496 483
 
@@ -523,7 +510,8 @@  discard block
 block discarded – undo
523 510
             // namespaced class name
524 511
             $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
525 512
                 . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
526
-        } else {
513
+        }
514
+        else {
527 515
             // PEAR-like class name
528 516
             $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
529 517
         }
@@ -558,8 +546,7 @@  discard block
 block discarded – undo
558 546
     /**
559 547
      * @return void
560 548
      */
561
-    private static function initializeIncludeClosure()
562
-    {
549
+    private static function initializeIncludeClosure() {
563 550
         if (self::$includeFile !== null) {
564 551
             return;
565 552
         }
Please login to merge, or discard this patch.
vendor/composer/autoload_real.php 3 patches
Indentation   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -4,45 +4,45 @@
 block discarded – undo
4 4
 
5 5
 class ComposerAutoloaderInit153a56a781a72686b71399955d98204f
6 6
 {
7
-    private static $loader;
8
-
9
-    public static function loadClassLoader($class)
10
-    {
11
-        if ('Composer\Autoload\ClassLoader' === $class) {
12
-            require __DIR__ . '/ClassLoader.php';
13
-        }
14
-    }
15
-
16
-    /**
17
-     * @return \Composer\Autoload\ClassLoader
18
-     */
19
-    public static function getLoader()
20
-    {
21
-        if (null !== self::$loader) {
22
-            return self::$loader;
23
-        }
24
-
25
-        spl_autoload_register(array('ComposerAutoloaderInit153a56a781a72686b71399955d98204f', 'loadClassLoader'), true, true);
26
-        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27
-        spl_autoload_unregister(array('ComposerAutoloaderInit153a56a781a72686b71399955d98204f', 'loadClassLoader'));
28
-
29
-        require __DIR__ . '/autoload_static.php';
30
-        call_user_func(\Composer\Autoload\ComposerStaticInit153a56a781a72686b71399955d98204f::getInitializer($loader));
31
-
32
-        $loader->register(true);
33
-
34
-        $filesToLoad = \Composer\Autoload\ComposerStaticInit153a56a781a72686b71399955d98204f::$files;
35
-        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
36
-            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
37
-                $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
38
-
39
-                require $file;
40
-            }
41
-        }, null, null);
42
-        foreach ($filesToLoad as $fileIdentifier => $file) {
43
-            $requireFile($fileIdentifier, $file);
44
-        }
45
-
46
-        return $loader;
47
-    }
7
+	private static $loader;
8
+
9
+	public static function loadClassLoader($class)
10
+	{
11
+		if ('Composer\Autoload\ClassLoader' === $class) {
12
+			require __DIR__ . '/ClassLoader.php';
13
+		}
14
+	}
15
+
16
+	/**
17
+	 * @return \Composer\Autoload\ClassLoader
18
+	 */
19
+	public static function getLoader()
20
+	{
21
+		if (null !== self::$loader) {
22
+			return self::$loader;
23
+		}
24
+
25
+		spl_autoload_register(array('ComposerAutoloaderInit153a56a781a72686b71399955d98204f', 'loadClassLoader'), true, true);
26
+		self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27
+		spl_autoload_unregister(array('ComposerAutoloaderInit153a56a781a72686b71399955d98204f', 'loadClassLoader'));
28
+
29
+		require __DIR__ . '/autoload_static.php';
30
+		call_user_func(\Composer\Autoload\ComposerStaticInit153a56a781a72686b71399955d98204f::getInitializer($loader));
31
+
32
+		$loader->register(true);
33
+
34
+		$filesToLoad = \Composer\Autoload\ComposerStaticInit153a56a781a72686b71399955d98204f::$files;
35
+		$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
36
+			if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
37
+				$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
38
+
39
+				require $file;
40
+			}
41
+		}, null, null);
42
+		foreach ($filesToLoad as $fileIdentifier => $file) {
43
+			$requireFile($fileIdentifier, $file);
44
+		}
45
+
46
+		return $loader;
47
+	}
48 48
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $loader->register(true);
33 33
 
34 34
         $filesToLoad = \Composer\Autoload\ComposerStaticInit153a56a781a72686b71399955d98204f::$files;
35
-        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
35
+        $requireFile = \Closure::bind(static function($fileIdentifier, $file) {
36 36
             if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
37 37
                 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
38 38
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -6,8 +6,7 @@  discard block
 block discarded – undo
6 6
 {
7 7
     private static $loader;
8 8
 
9
-    public static function loadClassLoader($class)
10
-    {
9
+    public static function loadClassLoader($class) {
11 10
         if ('Composer\Autoload\ClassLoader' === $class) {
12 11
             require __DIR__ . '/ClassLoader.php';
13 12
         }
@@ -16,8 +15,7 @@  discard block
 block discarded – undo
16 15
     /**
17 16
      * @return \Composer\Autoload\ClassLoader
18 17
      */
19
-    public static function getLoader()
20
-    {
18
+    public static function getLoader() {
21 19
         if (null !== self::$loader) {
22 20
             return self::$loader;
23 21
         }
Please login to merge, or discard this patch.
vendor/composer/autoload_classmap.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 	'MAPIProvider' => $baseDir . '/lib/grommunio/mapiprovider.php',
53 53
 	'MAPIStreamWrapper' => $baseDir . '/lib/grommunio/mapistreamwrapper.php',
54 54
 	'MAPIUtils' => $baseDir . '/lib/grommunio/mapiutils.php',
55
-    'Mail_RFC822' => $baseDir . '/lib/utils/g_RFC822.php',
55
+	'Mail_RFC822' => $baseDir . '/lib/utils/g_RFC822.php',
56 56
 	'MeetingResponse' => $baseDir . '/lib/request/meetingresponse.php',
57 57
 	'Meetingrequest' => '/usr/share/php-mapi/class.meetingrequest.php',
58 58
 	'MoveItems' => $baseDir . '/lib/request/moveitems.php',
Please login to merge, or discard this patch.
vendor/composer/autoload_static.php 1 patch
Indentation   +160 added lines, -160 removed lines patch added patch discarded remove patch
@@ -6,167 +6,167 @@
 block discarded – undo
6 6
 
7 7
 class ComposerStaticInit153a56a781a72686b71399955d98204f
8 8
 {
9
-    public static $files = array (
10
-        '158e247719544c05f5e89c414f630c24' => __DIR__ . '/../..' . '/version.php',
11
-        'f2969980cdf0dddd210ef5448430b9c0' => __DIR__ . '/../..' . '/lib/core/gsyncdefs.php',
12
-        'd2a63a53b4a43a2bd71de0cec5c1abfb' => __DIR__ . '/../..' . '/lib/utils/compat.php',
13
-    );
9
+	public static $files = array (
10
+		'158e247719544c05f5e89c414f630c24' => __DIR__ . '/../..' . '/version.php',
11
+		'f2969980cdf0dddd210ef5448430b9c0' => __DIR__ . '/../..' . '/lib/core/gsyncdefs.php',
12
+		'd2a63a53b4a43a2bd71de0cec5c1abfb' => __DIR__ . '/../..' . '/lib/utils/compat.php',
13
+	);
14 14
 
15
-    public static $classMap = array (
16
-        'ASDevice' => __DIR__ . '/../..' . '/lib/core/asdevice.php',
17
-        'AuthenticationRequiredException' => __DIR__ . '/../..' . '/lib/exceptions/authenticationrequiredexception.php',
18
-        'BaseException' => '/usr/share/php-mapi/class.baseexception.php',
19
-        'BaseRecurrence' => '/usr/share/php-mapi/class.baserecurrence.php',
20
-        'BodyPartPreference' => __DIR__ . '/../..' . '/lib/core/bodypartpreference.php',
21
-        'BodyPreference' => __DIR__ . '/../..' . '/lib/core/bodypreference.php',
22
-        'ChangesMemoryWrapper' => __DIR__ . '/../..' . '/lib/core/changesmemorywrapper.php',
23
-        'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
24
-        'ConnectionTracking' => __DIR__ . '/../..' . '/lib/core/connectiontracking.php',
25
-        'ContentParameters' => __DIR__ . '/../..' . '/lib/core/contentparameters.php',
26
-        'DeviceManager' => __DIR__ . '/../..' . '/lib/core/devicemanager.php',
27
-        'ExportChangesICS' => __DIR__ . '/../..' . '/lib/grommunio/exporter.php',
28
-        'FatalException' => __DIR__ . '/../..' . '/lib/exceptions/fatalexception.php',
29
-        'FatalMisconfigurationException' => __DIR__ . '/../..' . '/lib/exceptions/fatalmisconfigurationexception.php',
30
-        'FatalNotImplementedException' => __DIR__ . '/../..' . '/lib/exceptions/fatalnotimplementedexception.php',
31
-        'FileLog' => __DIR__ . '/../..' . '/lib/log/filelog.php',
32
-        'Find' => __DIR__ . '/../..' . '/lib/request/find.php',
33
-        'FolderChange' => __DIR__ . '/../..' . '/lib/request/folderchange.php',
34
-        'FolderSync' => __DIR__ . '/../..' . '/lib/request/foldersync.php',
35
-        'FreeBusy' => '/usr/share/php-mapi/class.freebusy.php',
36
-        'GSync' => __DIR__ . '/../..' . '/lib/core/gsync.php',
37
-        'GSyncException' => __DIR__ . '/../..' . '/lib/exceptions/gsyncexception.php',
38
-        'GetAttachment' => __DIR__ . '/../..' . '/lib/request/getattachment.php',
39
-        'GetHierarchy' => __DIR__ . '/../..' . '/lib/request/gethierarchy.php',
40
-        'GetItemEstimate' => __DIR__ . '/../..' . '/lib/request/getitemestimate.php',
41
-        'Grommunio' => __DIR__ . '/../..' . '/lib/grommunio/grommunio.php',
42
-        'HTTPReturnCodeException' => __DIR__ . '/../..' . '/lib/exceptions/httpreturncodeexception.php',
43
-        'HierarchyCache' => __DIR__ . '/../..' . '/lib/core/hierarchycache.php',
44
-        'IBackend' => __DIR__ . '/../..' . '/lib/interface/ibackend.php',
45
-        'IChanges' => __DIR__ . '/../..' . '/lib/interface/ichanges.php',
46
-        'IExportChanges' => __DIR__ . '/../..' . '/lib/interface/iexportchanges.php',
47
-        'IImportChanges' => __DIR__ . '/../..' . '/lib/interface/iimportchanges.php',
48
-        'IIpcProvider' => __DIR__ . '/../..' . '/lib/interface/iipcprovider.php',
49
-        'ISearchProvider' => __DIR__ . '/../..' . '/lib/interface/isearchprovider.php',
50
-        'IStateMachine' => __DIR__ . '/../..' . '/lib/interface/istatemachine.php',
51
-        'ImportChangesICS' => __DIR__ . '/../..' . '/lib/grommunio/importer.php',
52
-        'ImportChangesStream' => __DIR__ . '/../..' . '/lib/core/streamimporter.php',
53
-        'InterProcessData' => __DIR__ . '/../..' . '/lib/core/interprocessdata.php',
54
-        'ItemOperations' => __DIR__ . '/../..' . '/lib/request/itemoperations.php',
55
-        'Log' => __DIR__ . '/../..' . '/lib/log/log.php',
56
-        'LoopDetection' => __DIR__ . '/../..' . '/lib/core/loopdetection.php',
57
-        'MAPIException' => '/usr/share/php-mapi/class.mapiexception.php',
58
-        'MAPIMapping' => __DIR__ . '/../..' . '/lib/grommunio/mapimapping.php',
59
-        'MAPIProvider' => __DIR__ . '/../..' . '/lib/grommunio/mapiprovider.php',
60
-        'MAPIStreamWrapper' => __DIR__ . '/../..' . '/lib/grommunio/mapistreamwrapper.php',
61
-        'MAPIUtils' => __DIR__ . '/../..' . '/lib/grommunio/mapiutils.php',
62
-        'Mail_RFC822' => __DIR__ . '/../..' . '/lib/utils/g_RFC822.php',
63
-        'MeetingResponse' => __DIR__ . '/../..' . '/lib/request/meetingresponse.php',
64
-        'Meetingrequest' => '/usr/share/php-mapi/class.meetingrequest.php',
65
-        'MoveItems' => __DIR__ . '/../..' . '/lib/request/moveitems.php',
66
-        'NoHierarchyCacheAvailableException' => __DIR__ . '/../..' . '/lib/exceptions/nohierarchycacheavailableexception.php',
67
-        'NoPostRequestException' => __DIR__ . '/../..' . '/lib/exceptions/nopostrequestexception.php',
68
-        'NotImplementedException' => __DIR__ . '/../..' . '/lib/exceptions/notimplementedexception.php',
69
-        'Notify' => __DIR__ . '/../..' . '/lib/request/notify.php',
70
-        'PHPWrapper' => __DIR__ . '/../..' . '/lib/grommunio/mapiphpwrapper.php',
71
-        'Ping' => __DIR__ . '/../..' . '/lib/request/ping.php',
72
-        'PingTracking' => __DIR__ . '/../..' . '/lib/core/pingtracking.php',
73
-        'Provisioning' => __DIR__ . '/../..' . '/lib/request/provisioning.php',
74
-        'ProvisioningManager' => __DIR__ . '/../..' . '/lib/core/provisioningmanager.php',
75
-        'ProvisioningRequiredException' => __DIR__ . '/../..' . '/lib/exceptions/provisioningrequiredexception.php',
76
-        'Recurrence' => '/usr/share/php-mapi/class.recurrence.php',
77
-        'RedisConnection' => __DIR__ . '/../..' . '/lib/core/redisconnection.php',
78
-        'ReplaceNullcharFilter' => __DIR__ . '/../..' . '/lib/wbxml/replacenullcharfilter.php',
79
-        'Request' => __DIR__ . '/../..' . '/lib/request/request.php',
80
-        'RequestProcessor' => __DIR__ . '/../..' . '/lib/request/requestprocessor.php',
81
-        'ResolveRecipients' => __DIR__ . '/../..' . '/lib/request/resolverecipients.php',
82
-        'ResponseTrait' => __DIR__ . '/../..' . '/lib/syncobjects/responsetrait.php',
83
-        'SLog' => __DIR__ . '/../..' . '/lib/core/slog.php',
84
-        'Search' => __DIR__ . '/../..' . '/lib/request/search.php',
85
-        'SendMail' => __DIR__ . '/../..' . '/lib/request/sendmail.php',
86
-        'ServiceUnavailableException' => __DIR__ . '/../..' . '/lib/exceptions/serviceunavailableexception.php',
87
-        'Settings' => __DIR__ . '/../..' . '/lib/request/settings.php',
88
-        'SharedFolders' => __DIR__ . '/../..' . '/lib/core/sharedfolders.php',
89
-        'StateInvalidException' => __DIR__ . '/../..' . '/lib/exceptions/stateinvalidexception.php',
90
-        'StateManager' => __DIR__ . '/../..' . '/lib/core/statemanager.php',
91
-        'StateNotFoundException' => __DIR__ . '/../..' . '/lib/exceptions/statenotfoundexception.php',
92
-        'StateNotYetAvailableException' => __DIR__ . '/../..' . '/lib/exceptions/statenotyetavailableexception.php',
93
-        'StateObject' => __DIR__ . '/../..' . '/lib/core/stateobject.php',
94
-        'StatusException' => __DIR__ . '/../..' . '/lib/exceptions/statusexception.php',
95
-        'Streamer' => __DIR__ . '/../..' . '/lib/core/streamer.php',
96
-        'StringStreamWrapper' => __DIR__ . '/../..' . '/lib/utils/stringstreamwrapper.php',
97
-        'Sync' => __DIR__ . '/../..' . '/lib/request/sync.php',
98
-        'SyncAccount' => __DIR__ . '/../..' . '/lib/syncobjects/syncaccount.php',
99
-        'SyncAppointment' => __DIR__ . '/../..' . '/lib/syncobjects/syncappointment.php',
100
-        'SyncAppointmentException' => __DIR__ . '/../..' . '/lib/syncobjects/syncappointmentexception.php',
101
-        'SyncAppointmentResponse' => __DIR__ . '/../..' . '/lib/syncobjects/syncappointment.php',
102
-        'SyncAttachment' => __DIR__ . '/../..' . '/lib/syncobjects/syncattachment.php',
103
-        'SyncAttendee' => __DIR__ . '/../..' . '/lib/syncobjects/syncattendee.php',
104
-        'SyncBaseAttachment' => __DIR__ . '/../..' . '/lib/syncobjects/syncbaseattachment.php',
105
-        'SyncBaseAttachmentAdd' => __DIR__ . '/../..' . '/lib/syncobjects/syncbaseattachment.php',
106
-        'SyncBaseAttachmentDelete' => __DIR__ . '/../..' . '/lib/syncobjects/syncbaseattachment.php',
107
-        'SyncBaseBody' => __DIR__ . '/../..' . '/lib/syncobjects/syncbasebody.php',
108
-        'SyncBaseBodyPart' => __DIR__ . '/../..' . '/lib/syncobjects/syncbasebodypart.php',
109
-        'SyncCollections' => __DIR__ . '/../..' . '/lib/core/synccollections.php',
110
-        'SyncContact' => __DIR__ . '/../..' . '/lib/syncobjects/synccontact.php',
111
-        'SyncContactResponse' => __DIR__ . '/../..' . '/lib/syncobjects/synccontact.php',
112
-        'SyncDeviceInformation' => __DIR__ . '/../..' . '/lib/syncobjects/syncdeviceinformation.php',
113
-        'SyncDevicePassword' => __DIR__ . '/../..' . '/lib/syncobjects/syncdevicepassword.php',
114
-        'SyncEmailAddresses' => __DIR__ . '/../..' . '/lib/syncobjects/syncemailaddresses.php',
115
-        'SyncFindProperties' => __DIR__ . '/../..' . '/lib/syncobjects/syncfindproperties.php',
116
-        'SyncFolder' => __DIR__ . '/../..' . '/lib/syncobjects/syncfolder.php',
117
-        'SyncItemOperationsAttachment' => __DIR__ . '/../..' . '/lib/syncobjects/syncitemoperationsattachment.php',
118
-        'SyncLocation' => __DIR__ . '/../..' . '/lib/syncobjects/synclocation.php',
119
-        'SyncMail' => __DIR__ . '/../..' . '/lib/syncobjects/syncmail.php',
120
-        'SyncMailFlags' => __DIR__ . '/../..' . '/lib/syncobjects/syncmailflags.php',
121
-        'SyncMailResponse' => __DIR__ . '/../..' . '/lib/syncobjects/syncmail.php',
122
-        'SyncMeetingRequest' => __DIR__ . '/../..' . '/lib/syncobjects/syncmeetingrequest.php',
123
-        'SyncMeetingRequestRecurrence' => __DIR__ . '/../..' . '/lib/syncobjects/syncmeetingrequestrecurrence.php',
124
-        'SyncNote' => __DIR__ . '/../..' . '/lib/syncobjects/syncnote.php',
125
-        'SyncNoteResponse' => __DIR__ . '/../..' . '/lib/syncobjects/syncnote.php',
126
-        'SyncOOF' => __DIR__ . '/../..' . '/lib/syncobjects/syncoof.php',
127
-        'SyncOOFMessage' => __DIR__ . '/../..' . '/lib/syncobjects/syncoofmessage.php',
128
-        'SyncObject' => __DIR__ . '/../..' . '/lib/syncobjects/syncobject.php',
129
-        'SyncObjectBrokenException' => __DIR__ . '/../..' . '/lib/exceptions/syncobjectbrokenexception.php',
130
-        'SyncParameters' => __DIR__ . '/../..' . '/lib/core/syncparameters.php',
131
-        'SyncProvisioning' => __DIR__ . '/../..' . '/lib/syncobjects/syncprovisioning.php',
132
-        'SyncRecurrence' => __DIR__ . '/../..' . '/lib/syncobjects/syncrecurrence.php',
133
-        'SyncResolveRecipient' => __DIR__ . '/../..' . '/lib/syncobjects/syncresolverecipient.php',
134
-        'SyncResolveRecipients' => __DIR__ . '/../..' . '/lib/syncobjects/syncresolverecipients.php',
135
-        'SyncResolveRecipientsAvailability' => __DIR__ . '/../..' . '/lib/syncobjects/syncresolverecipientsavailability.php',
136
-        'SyncResolveRecipientsCertificates' => __DIR__ . '/../..' . '/lib/syncobjects/syncresolverecipientscertificates.php',
137
-        'SyncResolveRecipientsOptions' => __DIR__ . '/../..' . '/lib/syncobjects/syncresolverecipientsoptions.php',
138
-        'SyncResolveRecipientsPicture' => __DIR__ . '/../..' . '/lib/syncobjects/syncresolverecipientspicture.php',
139
-        'SyncResolveRecipientsResponse' => __DIR__ . '/../..' . '/lib/syncobjects/syncresolverecipientsresponse.php',
140
-        'SyncRightsManagementLicense' => __DIR__ . '/../..' . '/lib/syncobjects/syncrightsmanagementlicense.php',
141
-        'SyncRightsManagementTemplate' => __DIR__ . '/../..' . '/lib/syncobjects/syncrightsmanagementtemplate.php',
142
-        'SyncRightsManagementTemplates' => __DIR__ . '/../..' . '/lib/syncobjects/syncrightsmanagementtemplates.php',
143
-        'SyncSendMail' => __DIR__ . '/../..' . '/lib/syncobjects/syncsendmail.php',
144
-        'SyncSendMailSource' => __DIR__ . '/../..' . '/lib/syncobjects/syncsendmailsource.php',
145
-        'SyncTask' => __DIR__ . '/../..' . '/lib/syncobjects/synctask.php',
146
-        'SyncTaskRecurrence' => __DIR__ . '/../..' . '/lib/syncobjects/synctaskrecurrence.php',
147
-        'SyncTaskResponse' => __DIR__ . '/../..' . '/lib/syncobjects/synctask.php',
148
-        'SyncUserInformation' => __DIR__ . '/../..' . '/lib/syncobjects/syncuserinformation.php',
149
-        'SyncValidateCert' => __DIR__ . '/../..' . '/lib/syncobjects/syncvalidatecert.php',
150
-        'Syslog' => __DIR__ . '/../..' . '/lib/log/syslog.php',
151
-        'TaskRecurrence' => '/usr/share/php-mapi/class.taskrecurrence.php',
152
-        'TaskRequest' => '/usr/share/php-mapi/class.taskrequest.php',
153
-        'TimezoneUtil' => __DIR__ . '/../..' . '/lib/utils/timezoneutil.php',
154
-        'TopCollector' => __DIR__ . '/../..' . '/lib/core/topcollector.php',
155
-        'UnavailableException' => __DIR__ . '/../..' . '/lib/exceptions/unavailableexception.php',
156
-        'UserStoreInfo' => __DIR__ . '/../..' . '/lib/core/userstoreinfo.php',
157
-        'Utils' => __DIR__ . '/../..' . '/lib/utils/utils.php',
158
-        'ValidateCert' => __DIR__ . '/../..' . '/lib/request/validatecert.php',
159
-        'WBXMLDecoder' => __DIR__ . '/../..' . '/lib/wbxml/wbxmldecoder.php',
160
-        'WBXMLDefs' => __DIR__ . '/../..' . '/lib/wbxml/wbxmldefs.php',
161
-        'WBXMLEncoder' => __DIR__ . '/../..' . '/lib/wbxml/wbxmlencoder.php',
162
-        'WBXMLException' => __DIR__ . '/../..' . '/lib/exceptions/wbxmlexception.php',
163
-    );
15
+	public static $classMap = array (
16
+		'ASDevice' => __DIR__ . '/../..' . '/lib/core/asdevice.php',
17
+		'AuthenticationRequiredException' => __DIR__ . '/../..' . '/lib/exceptions/authenticationrequiredexception.php',
18
+		'BaseException' => '/usr/share/php-mapi/class.baseexception.php',
19
+		'BaseRecurrence' => '/usr/share/php-mapi/class.baserecurrence.php',
20
+		'BodyPartPreference' => __DIR__ . '/../..' . '/lib/core/bodypartpreference.php',
21
+		'BodyPreference' => __DIR__ . '/../..' . '/lib/core/bodypreference.php',
22
+		'ChangesMemoryWrapper' => __DIR__ . '/../..' . '/lib/core/changesmemorywrapper.php',
23
+		'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
24
+		'ConnectionTracking' => __DIR__ . '/../..' . '/lib/core/connectiontracking.php',
25
+		'ContentParameters' => __DIR__ . '/../..' . '/lib/core/contentparameters.php',
26
+		'DeviceManager' => __DIR__ . '/../..' . '/lib/core/devicemanager.php',
27
+		'ExportChangesICS' => __DIR__ . '/../..' . '/lib/grommunio/exporter.php',
28
+		'FatalException' => __DIR__ . '/../..' . '/lib/exceptions/fatalexception.php',
29
+		'FatalMisconfigurationException' => __DIR__ . '/../..' . '/lib/exceptions/fatalmisconfigurationexception.php',
30
+		'FatalNotImplementedException' => __DIR__ . '/../..' . '/lib/exceptions/fatalnotimplementedexception.php',
31
+		'FileLog' => __DIR__ . '/../..' . '/lib/log/filelog.php',
32
+		'Find' => __DIR__ . '/../..' . '/lib/request/find.php',
33
+		'FolderChange' => __DIR__ . '/../..' . '/lib/request/folderchange.php',
34
+		'FolderSync' => __DIR__ . '/../..' . '/lib/request/foldersync.php',
35
+		'FreeBusy' => '/usr/share/php-mapi/class.freebusy.php',
36
+		'GSync' => __DIR__ . '/../..' . '/lib/core/gsync.php',
37
+		'GSyncException' => __DIR__ . '/../..' . '/lib/exceptions/gsyncexception.php',
38
+		'GetAttachment' => __DIR__ . '/../..' . '/lib/request/getattachment.php',
39
+		'GetHierarchy' => __DIR__ . '/../..' . '/lib/request/gethierarchy.php',
40
+		'GetItemEstimate' => __DIR__ . '/../..' . '/lib/request/getitemestimate.php',
41
+		'Grommunio' => __DIR__ . '/../..' . '/lib/grommunio/grommunio.php',
42
+		'HTTPReturnCodeException' => __DIR__ . '/../..' . '/lib/exceptions/httpreturncodeexception.php',
43
+		'HierarchyCache' => __DIR__ . '/../..' . '/lib/core/hierarchycache.php',
44
+		'IBackend' => __DIR__ . '/../..' . '/lib/interface/ibackend.php',
45
+		'IChanges' => __DIR__ . '/../..' . '/lib/interface/ichanges.php',
46
+		'IExportChanges' => __DIR__ . '/../..' . '/lib/interface/iexportchanges.php',
47
+		'IImportChanges' => __DIR__ . '/../..' . '/lib/interface/iimportchanges.php',
48
+		'IIpcProvider' => __DIR__ . '/../..' . '/lib/interface/iipcprovider.php',
49
+		'ISearchProvider' => __DIR__ . '/../..' . '/lib/interface/isearchprovider.php',
50
+		'IStateMachine' => __DIR__ . '/../..' . '/lib/interface/istatemachine.php',
51
+		'ImportChangesICS' => __DIR__ . '/../..' . '/lib/grommunio/importer.php',
52
+		'ImportChangesStream' => __DIR__ . '/../..' . '/lib/core/streamimporter.php',
53
+		'InterProcessData' => __DIR__ . '/../..' . '/lib/core/interprocessdata.php',
54
+		'ItemOperations' => __DIR__ . '/../..' . '/lib/request/itemoperations.php',
55
+		'Log' => __DIR__ . '/../..' . '/lib/log/log.php',
56
+		'LoopDetection' => __DIR__ . '/../..' . '/lib/core/loopdetection.php',
57
+		'MAPIException' => '/usr/share/php-mapi/class.mapiexception.php',
58
+		'MAPIMapping' => __DIR__ . '/../..' . '/lib/grommunio/mapimapping.php',
59
+		'MAPIProvider' => __DIR__ . '/../..' . '/lib/grommunio/mapiprovider.php',
60
+		'MAPIStreamWrapper' => __DIR__ . '/../..' . '/lib/grommunio/mapistreamwrapper.php',
61
+		'MAPIUtils' => __DIR__ . '/../..' . '/lib/grommunio/mapiutils.php',
62
+		'Mail_RFC822' => __DIR__ . '/../..' . '/lib/utils/g_RFC822.php',
63
+		'MeetingResponse' => __DIR__ . '/../..' . '/lib/request/meetingresponse.php',
64
+		'Meetingrequest' => '/usr/share/php-mapi/class.meetingrequest.php',
65
+		'MoveItems' => __DIR__ . '/../..' . '/lib/request/moveitems.php',
66
+		'NoHierarchyCacheAvailableException' => __DIR__ . '/../..' . '/lib/exceptions/nohierarchycacheavailableexception.php',
67
+		'NoPostRequestException' => __DIR__ . '/../..' . '/lib/exceptions/nopostrequestexception.php',
68
+		'NotImplementedException' => __DIR__ . '/../..' . '/lib/exceptions/notimplementedexception.php',
69
+		'Notify' => __DIR__ . '/../..' . '/lib/request/notify.php',
70
+		'PHPWrapper' => __DIR__ . '/../..' . '/lib/grommunio/mapiphpwrapper.php',
71
+		'Ping' => __DIR__ . '/../..' . '/lib/request/ping.php',
72
+		'PingTracking' => __DIR__ . '/../..' . '/lib/core/pingtracking.php',
73
+		'Provisioning' => __DIR__ . '/../..' . '/lib/request/provisioning.php',
74
+		'ProvisioningManager' => __DIR__ . '/../..' . '/lib/core/provisioningmanager.php',
75
+		'ProvisioningRequiredException' => __DIR__ . '/../..' . '/lib/exceptions/provisioningrequiredexception.php',
76
+		'Recurrence' => '/usr/share/php-mapi/class.recurrence.php',
77
+		'RedisConnection' => __DIR__ . '/../..' . '/lib/core/redisconnection.php',
78
+		'ReplaceNullcharFilter' => __DIR__ . '/../..' . '/lib/wbxml/replacenullcharfilter.php',
79
+		'Request' => __DIR__ . '/../..' . '/lib/request/request.php',
80
+		'RequestProcessor' => __DIR__ . '/../..' . '/lib/request/requestprocessor.php',
81
+		'ResolveRecipients' => __DIR__ . '/../..' . '/lib/request/resolverecipients.php',
82
+		'ResponseTrait' => __DIR__ . '/../..' . '/lib/syncobjects/responsetrait.php',
83
+		'SLog' => __DIR__ . '/../..' . '/lib/core/slog.php',
84
+		'Search' => __DIR__ . '/../..' . '/lib/request/search.php',
85
+		'SendMail' => __DIR__ . '/../..' . '/lib/request/sendmail.php',
86
+		'ServiceUnavailableException' => __DIR__ . '/../..' . '/lib/exceptions/serviceunavailableexception.php',
87
+		'Settings' => __DIR__ . '/../..' . '/lib/request/settings.php',
88
+		'SharedFolders' => __DIR__ . '/../..' . '/lib/core/sharedfolders.php',
89
+		'StateInvalidException' => __DIR__ . '/../..' . '/lib/exceptions/stateinvalidexception.php',
90
+		'StateManager' => __DIR__ . '/../..' . '/lib/core/statemanager.php',
91
+		'StateNotFoundException' => __DIR__ . '/../..' . '/lib/exceptions/statenotfoundexception.php',
92
+		'StateNotYetAvailableException' => __DIR__ . '/../..' . '/lib/exceptions/statenotyetavailableexception.php',
93
+		'StateObject' => __DIR__ . '/../..' . '/lib/core/stateobject.php',
94
+		'StatusException' => __DIR__ . '/../..' . '/lib/exceptions/statusexception.php',
95
+		'Streamer' => __DIR__ . '/../..' . '/lib/core/streamer.php',
96
+		'StringStreamWrapper' => __DIR__ . '/../..' . '/lib/utils/stringstreamwrapper.php',
97
+		'Sync' => __DIR__ . '/../..' . '/lib/request/sync.php',
98
+		'SyncAccount' => __DIR__ . '/../..' . '/lib/syncobjects/syncaccount.php',
99
+		'SyncAppointment' => __DIR__ . '/../..' . '/lib/syncobjects/syncappointment.php',
100
+		'SyncAppointmentException' => __DIR__ . '/../..' . '/lib/syncobjects/syncappointmentexception.php',
101
+		'SyncAppointmentResponse' => __DIR__ . '/../..' . '/lib/syncobjects/syncappointment.php',
102
+		'SyncAttachment' => __DIR__ . '/../..' . '/lib/syncobjects/syncattachment.php',
103
+		'SyncAttendee' => __DIR__ . '/../..' . '/lib/syncobjects/syncattendee.php',
104
+		'SyncBaseAttachment' => __DIR__ . '/../..' . '/lib/syncobjects/syncbaseattachment.php',
105
+		'SyncBaseAttachmentAdd' => __DIR__ . '/../..' . '/lib/syncobjects/syncbaseattachment.php',
106
+		'SyncBaseAttachmentDelete' => __DIR__ . '/../..' . '/lib/syncobjects/syncbaseattachment.php',
107
+		'SyncBaseBody' => __DIR__ . '/../..' . '/lib/syncobjects/syncbasebody.php',
108
+		'SyncBaseBodyPart' => __DIR__ . '/../..' . '/lib/syncobjects/syncbasebodypart.php',
109
+		'SyncCollections' => __DIR__ . '/../..' . '/lib/core/synccollections.php',
110
+		'SyncContact' => __DIR__ . '/../..' . '/lib/syncobjects/synccontact.php',
111
+		'SyncContactResponse' => __DIR__ . '/../..' . '/lib/syncobjects/synccontact.php',
112
+		'SyncDeviceInformation' => __DIR__ . '/../..' . '/lib/syncobjects/syncdeviceinformation.php',
113
+		'SyncDevicePassword' => __DIR__ . '/../..' . '/lib/syncobjects/syncdevicepassword.php',
114
+		'SyncEmailAddresses' => __DIR__ . '/../..' . '/lib/syncobjects/syncemailaddresses.php',
115
+		'SyncFindProperties' => __DIR__ . '/../..' . '/lib/syncobjects/syncfindproperties.php',
116
+		'SyncFolder' => __DIR__ . '/../..' . '/lib/syncobjects/syncfolder.php',
117
+		'SyncItemOperationsAttachment' => __DIR__ . '/../..' . '/lib/syncobjects/syncitemoperationsattachment.php',
118
+		'SyncLocation' => __DIR__ . '/../..' . '/lib/syncobjects/synclocation.php',
119
+		'SyncMail' => __DIR__ . '/../..' . '/lib/syncobjects/syncmail.php',
120
+		'SyncMailFlags' => __DIR__ . '/../..' . '/lib/syncobjects/syncmailflags.php',
121
+		'SyncMailResponse' => __DIR__ . '/../..' . '/lib/syncobjects/syncmail.php',
122
+		'SyncMeetingRequest' => __DIR__ . '/../..' . '/lib/syncobjects/syncmeetingrequest.php',
123
+		'SyncMeetingRequestRecurrence' => __DIR__ . '/../..' . '/lib/syncobjects/syncmeetingrequestrecurrence.php',
124
+		'SyncNote' => __DIR__ . '/../..' . '/lib/syncobjects/syncnote.php',
125
+		'SyncNoteResponse' => __DIR__ . '/../..' . '/lib/syncobjects/syncnote.php',
126
+		'SyncOOF' => __DIR__ . '/../..' . '/lib/syncobjects/syncoof.php',
127
+		'SyncOOFMessage' => __DIR__ . '/../..' . '/lib/syncobjects/syncoofmessage.php',
128
+		'SyncObject' => __DIR__ . '/../..' . '/lib/syncobjects/syncobject.php',
129
+		'SyncObjectBrokenException' => __DIR__ . '/../..' . '/lib/exceptions/syncobjectbrokenexception.php',
130
+		'SyncParameters' => __DIR__ . '/../..' . '/lib/core/syncparameters.php',
131
+		'SyncProvisioning' => __DIR__ . '/../..' . '/lib/syncobjects/syncprovisioning.php',
132
+		'SyncRecurrence' => __DIR__ . '/../..' . '/lib/syncobjects/syncrecurrence.php',
133
+		'SyncResolveRecipient' => __DIR__ . '/../..' . '/lib/syncobjects/syncresolverecipient.php',
134
+		'SyncResolveRecipients' => __DIR__ . '/../..' . '/lib/syncobjects/syncresolverecipients.php',
135
+		'SyncResolveRecipientsAvailability' => __DIR__ . '/../..' . '/lib/syncobjects/syncresolverecipientsavailability.php',
136
+		'SyncResolveRecipientsCertificates' => __DIR__ . '/../..' . '/lib/syncobjects/syncresolverecipientscertificates.php',
137
+		'SyncResolveRecipientsOptions' => __DIR__ . '/../..' . '/lib/syncobjects/syncresolverecipientsoptions.php',
138
+		'SyncResolveRecipientsPicture' => __DIR__ . '/../..' . '/lib/syncobjects/syncresolverecipientspicture.php',
139
+		'SyncResolveRecipientsResponse' => __DIR__ . '/../..' . '/lib/syncobjects/syncresolverecipientsresponse.php',
140
+		'SyncRightsManagementLicense' => __DIR__ . '/../..' . '/lib/syncobjects/syncrightsmanagementlicense.php',
141
+		'SyncRightsManagementTemplate' => __DIR__ . '/../..' . '/lib/syncobjects/syncrightsmanagementtemplate.php',
142
+		'SyncRightsManagementTemplates' => __DIR__ . '/../..' . '/lib/syncobjects/syncrightsmanagementtemplates.php',
143
+		'SyncSendMail' => __DIR__ . '/../..' . '/lib/syncobjects/syncsendmail.php',
144
+		'SyncSendMailSource' => __DIR__ . '/../..' . '/lib/syncobjects/syncsendmailsource.php',
145
+		'SyncTask' => __DIR__ . '/../..' . '/lib/syncobjects/synctask.php',
146
+		'SyncTaskRecurrence' => __DIR__ . '/../..' . '/lib/syncobjects/synctaskrecurrence.php',
147
+		'SyncTaskResponse' => __DIR__ . '/../..' . '/lib/syncobjects/synctask.php',
148
+		'SyncUserInformation' => __DIR__ . '/../..' . '/lib/syncobjects/syncuserinformation.php',
149
+		'SyncValidateCert' => __DIR__ . '/../..' . '/lib/syncobjects/syncvalidatecert.php',
150
+		'Syslog' => __DIR__ . '/../..' . '/lib/log/syslog.php',
151
+		'TaskRecurrence' => '/usr/share/php-mapi/class.taskrecurrence.php',
152
+		'TaskRequest' => '/usr/share/php-mapi/class.taskrequest.php',
153
+		'TimezoneUtil' => __DIR__ . '/../..' . '/lib/utils/timezoneutil.php',
154
+		'TopCollector' => __DIR__ . '/../..' . '/lib/core/topcollector.php',
155
+		'UnavailableException' => __DIR__ . '/../..' . '/lib/exceptions/unavailableexception.php',
156
+		'UserStoreInfo' => __DIR__ . '/../..' . '/lib/core/userstoreinfo.php',
157
+		'Utils' => __DIR__ . '/../..' . '/lib/utils/utils.php',
158
+		'ValidateCert' => __DIR__ . '/../..' . '/lib/request/validatecert.php',
159
+		'WBXMLDecoder' => __DIR__ . '/../..' . '/lib/wbxml/wbxmldecoder.php',
160
+		'WBXMLDefs' => __DIR__ . '/../..' . '/lib/wbxml/wbxmldefs.php',
161
+		'WBXMLEncoder' => __DIR__ . '/../..' . '/lib/wbxml/wbxmlencoder.php',
162
+		'WBXMLException' => __DIR__ . '/../..' . '/lib/exceptions/wbxmlexception.php',
163
+	);
164 164
 
165
-    public static function getInitializer(ClassLoader $loader)
166
-    {
167
-        return \Closure::bind(function () use ($loader) {
168
-            $loader->classMap = ComposerStaticInit153a56a781a72686b71399955d98204f::$classMap;
165
+	public static function getInitializer(ClassLoader $loader)
166
+	{
167
+		return \Closure::bind(function () use ($loader) {
168
+			$loader->classMap = ComposerStaticInit153a56a781a72686b71399955d98204f::$classMap;
169 169
 
170
-        }, null, ClassLoader::class);
171
-    }
170
+		}, null, ClassLoader::class);
171
+	}
172 172
 }
Please login to merge, or discard this patch.
vendor/autoload.php 3 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -3,18 +3,18 @@
 block discarded – undo
3 3
 // autoload.php @generated by Composer
4 4
 
5 5
 if (PHP_VERSION_ID < 50600) {
6
-    if (!headers_sent()) {
7
-        header('HTTP/1.1 500 Internal Server Error');
8
-    }
9
-    $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
10
-    if (!ini_get('display_errors')) {
11
-        if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
12
-            fwrite(STDERR, $err);
13
-        } elseif (!headers_sent()) {
14
-            echo $err;
15
-        }
16
-    }
17
-    throw new RuntimeException($err);
6
+	if (!headers_sent()) {
7
+		header('HTTP/1.1 500 Internal Server Error');
8
+	}
9
+	$err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
10
+	if (!ini_get('display_errors')) {
11
+		if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
12
+			fwrite(STDERR, $err);
13
+		} elseif (!headers_sent()) {
14
+			echo $err;
15
+		}
16
+	}
17
+	throw new RuntimeException($err);
18 18
 }
19 19
 
20 20
 require_once __DIR__ . '/composer/autoload_real.php';
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
     if (!headers_sent()) {
7 7
         header('HTTP/1.1 500 Internal Server Error');
8 8
     }
9
-    $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
9
+    $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running ' . PHP_VERSION . ', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.' . PHP_EOL;
10 10
     if (!ini_get('display_errors')) {
11 11
         if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
12 12
             fwrite(STDERR, $err);
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,8 @@
 block discarded – undo
10 10
     if (!ini_get('display_errors')) {
11 11
         if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
12 12
             fwrite(STDERR, $err);
13
-        } elseif (!headers_sent()) {
13
+        }
14
+        elseif (!headers_sent()) {
14 15
             echo $err;
15 16
         }
16 17
     }
Please login to merge, or discard this patch.