Completed
Push — master ( 3e0789...ce12cd )
by Joas
18:51 queued 03:18
created

ComposerStaticInitFiles_Versions   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 40
Duplicated Lines 100 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
dl 40
loc 40
rs 10
c 0
b 0
f 0
wmc 1
lcom 1
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getInitializer() 9 9 1

How to fix   Duplicated Code   

Duplicated Code

Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.

Common duplication problems, and corresponding solutions are:

1
<?php
2
3
// autoload_static.php @generated by Composer
4
5
namespace Composer\Autoload;
6
7 View Code Duplication
class ComposerStaticInitFiles_Versions
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
8
{
9
    public static $prefixLengthsPsr4 = array (
10
        'O' => 
11
        array (
12
            'OCA\\Files_Versions\\' => 19,
13
        ),
14
    );
15
16
    public static $prefixDirsPsr4 = array (
17
        'OCA\\Files_Versions\\' => 
18
        array (
19
            0 => __DIR__ . '/..' . '/../lib',
20
        ),
21
    );
22
23
    public static $classMap = array (
24
        'OCA\\Files_Versions\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php',
25
        'OCA\\Files_Versions\\BackgroundJob\\ExpireVersions' => __DIR__ . '/..' . '/../lib/BackgroundJob/ExpireVersions.php',
26
        'OCA\\Files_Versions\\Capabilities' => __DIR__ . '/..' . '/../lib/Capabilities.php',
27
        'OCA\\Files_Versions\\Command\\CleanUp' => __DIR__ . '/..' . '/../lib/Command/CleanUp.php',
28
        'OCA\\Files_Versions\\Command\\Expire' => __DIR__ . '/..' . '/../lib/Command/Expire.php',
29
        'OCA\\Files_Versions\\Command\\ExpireVersions' => __DIR__ . '/..' . '/../lib/Command/ExpireVersions.php',
30
        'OCA\\Files_Versions\\Controller\\PreviewController' => __DIR__ . '/..' . '/../lib/Controller/PreviewController.php',
31
        'OCA\\Files_Versions\\Events\\CreateVersionEvent' => __DIR__ . '/..' . '/../lib/Events/CreateVersionEvent.php',
32
        'OCA\\Files_Versions\\Expiration' => __DIR__ . '/..' . '/../lib/Expiration.php',
33
        'OCA\\Files_Versions\\Hooks' => __DIR__ . '/..' . '/../lib/Hooks.php',
34
        'OCA\\Files_Versions\\Storage' => __DIR__ . '/..' . '/../lib/Storage.php',
35
    );
36
37
    public static function getInitializer(ClassLoader $loader)
38
    {
39
        return \Closure::bind(function () use ($loader) {
40
            $loader->prefixLengthsPsr4 = ComposerStaticInitFiles_Versions::$prefixLengthsPsr4;
0 ignored issues
show
Bug introduced by
The property prefixLengthsPsr4 cannot be accessed from this context as it is declared private in class Composer\Autoload\ClassLoader.

This check looks for access to properties that are not accessible from the current context.

If you need to make a property accessible to another context you can either raise its visibility level or provide an accessible getter in the defining class.

Loading history...
41
            $loader->prefixDirsPsr4 = ComposerStaticInitFiles_Versions::$prefixDirsPsr4;
0 ignored issues
show
Bug introduced by
The property prefixDirsPsr4 cannot be accessed from this context as it is declared private in class Composer\Autoload\ClassLoader.

This check looks for access to properties that are not accessible from the current context.

If you need to make a property accessible to another context you can either raise its visibility level or provide an accessible getter in the defining class.

Loading history...
42
            $loader->classMap = ComposerStaticInitFiles_Versions::$classMap;
0 ignored issues
show
Bug introduced by
The property classMap cannot be accessed from this context as it is declared private in class Composer\Autoload\ClassLoader.

This check looks for access to properties that are not accessible from the current context.

If you need to make a property accessible to another context you can either raise its visibility level or provide an accessible getter in the defining class.

Loading history...
43
44
        }, null, ClassLoader::class);
45
    }
46
}
47