GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Issues (90)

Security Analysis    no request data  

This project does not seem to handle request data directly as such no vulnerable execution paths were found.

  Cross-Site Scripting
Cross-Site Scripting enables an attacker to inject code into the response of a web-request that is viewed by other users. It can for example be used to bypass access controls, or even to take over other users' accounts.
  File Exposure
File Exposure allows an attacker to gain access to local files that he should not be able to access. These files can for example include database credentials, or other configuration files.
  File Manipulation
File Manipulation enables an attacker to write custom data to files. This potentially leads to injection of arbitrary code on the server.
  Object Injection
Object Injection enables an attacker to inject an object into PHP code, and can lead to arbitrary code execution, file exposure, or file manipulation attacks.
  Code Injection
Code Injection enables an attacker to execute arbitrary code on the server.
  Response Splitting
Response Splitting can be used to send arbitrary responses.
  File Inclusion
File Inclusion enables an attacker to inject custom files into PHP's file loading mechanism, either explicitly passed to include, or for example via PHP's auto-loading mechanism.
  Command Injection
Command Injection enables an attacker to inject a shell command that is execute with the privileges of the web-server. This can be used to expose sensitive data, or gain access of your server.
  SQL Injection
SQL Injection enables an attacker to execute arbitrary SQL code on your database server gaining access to user data, or manipulating user data.
  XPath Injection
XPath Injection enables an attacker to modify the parts of XML document that are read. If that XML document is for example used for authentication, this can lead to further vulnerabilities similar to SQL Injection.
  LDAP Injection
LDAP Injection enables an attacker to inject LDAP statements potentially granting permission to run unauthorized queries, or modify content inside the LDAP tree.
  Header Injection
  Other Vulnerability
This category comprises other attack vectors such as manipulating the PHP runtime, loading custom extensions, freezing the runtime, or similar.
  Regex Injection
Regex Injection enables an attacker to execute arbitrary code in your PHP process.
  XML Injection
XML Injection enables an attacker to read files on your local filesystem including configuration files, or can be abused to freeze your web-server process.
  Variable Injection
Variable Injection enables an attacker to overwrite program variables with custom data, and can lead to further vulnerabilities.
Unfortunately, the security analysis is currently not available for your project. If you are a non-commercial open-source project, please contact support to gain access.

src/VersioningServiceInterface.php (2 issues)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
namespace Dkd\PhpCmis;
3
4
/*
5
 * This file is part of php-cmis-client.
6
 *
7
 * (c) Sascha Egerer <[email protected]>
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
use Dkd\PhpCmis\Data\AclInterface;
14
use Dkd\PhpCmis\Data\ExtensionDataInterface;
15
use Dkd\PhpCmis\Data\ObjectDataInterface;
16
use Dkd\PhpCmis\Data\PropertiesInterface;
17
use Dkd\PhpCmis\Enum\IncludeRelationships;
18
use GuzzleHttp\Stream\StreamInterface;
19
20
/**
21
 * Versioning Service interface.
22
 *
23
 * See the CMIS 1.0 and CMIS 1.1 specifications for details on the operations,
24
 * parameters, exceptions and the domain model.
25
 */
26
interface VersioningServiceInterface
27
{
28
    /**
29
     * Reverses the effect of a check-out.
30
     *
31
     * @param string $repositoryId the identifier for the repository
32
     * @param string $objectId the identifier for the PWC
33
     * @param ExtensionDataInterface|null $extension
34
     */
35
    public function cancelCheckOut($repositoryId, & $objectId, ExtensionDataInterface $extension = null);
36
37
    /**
38
     * Checks-in the private working copy (PWC) document.
39
     *
40
     * @param string $repositoryId the identifier for the repository
41
     * @param string $objectId input: the identifier for the PWC,
42
     *      output: the identifier for the newly created version document
43
     * @param boolean $major indicator if the new version should become a major (<code>true</code>) or minor
44
     *      (<code>false</code>) version
45
     * @param PropertiesInterface|null $properties the property values that must be applied to the
46
     *      newly created document object
47
     * @param StreamInterface|null $contentStream the content stream that must be stored
48
     *      for the newly created document object
49
     * @param string|null $checkinComment a version comment
50
     * @param string[] $policies a list of policy IDs that must be applied to the newly created document object
51
     * @param AclInterface|null $addAces a list of ACEs that must be added to the newly created document object
52
     * @param AclInterface|null $removeAces a list of ACEs that must be removed from the newly created document object
53
     * @param ExtensionDataInterface|null $extension
54
	 * @return string|null Versioned object ID of original source if succesful, null otherwise
55
     */
56 View Code Duplication
    public function checkIn(
0 ignored issues
show
This method 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...
57
        $repositoryId,
58
        & $objectId,
59
        $major = true,
60
        PropertiesInterface $properties = null,
61
        StreamInterface $contentStream = null,
62
        $checkinComment = null,
63
        array $policies = [],
64
        AclInterface $addAces = null,
65
        AclInterface $removeAces = null,
66
        ExtensionDataInterface $extension = null
67
    );
68
69
    /**
70
     * Create a private working copy of the document.
71
     *
72
     * @param string $repositoryId the identifier for the repository
73
     * @param string $objectId input: the identifier for the document that should be checked out,
74
     *      output: the identifier for the newly created PWC
75
     * @param ExtensionDataInterface|null $extension
76
     * @param boolean|null $contentCopied output: indicator if the content of the original
77
     *      document has been copied to the PWC
78
	 * @return string|null Versioned object ID of PWC if succesful, null otherwise
79
     */
80
    public function checkOut(
81
        $repositoryId,
82
        & $objectId,
83
        ExtensionDataInterface $extension = null,
84
        $contentCopied = null
85
    );
86
87
    /**
88
     * Returns the list of all document objects in the specified version series,
89
     * sorted by the property "cmis:creationDate" descending.
90
     *
91
     * @param string $repositoryId the identifier for the repository
92
     * @param string $objectId The identifier for the object
93
     * @param string $versionSeriesId the identifier for the object
94
     * @param string|null $filter a comma-separated list of query names that defines which properties must be
95
     *      returned by the repository (default is repository specific)
96
     * @param boolean $includeAllowableActions if <code>true</code>, then the repository must return the allowable
97
     *      actions for the objects (default is <code>false</code>)
98
     * @param ExtensionDataInterface|null $extension
99
     * @return ObjectDataInterface[] the complete version history of the version series
100
     */
101
    public function getAllVersions(
102
        $repositoryId,
103
        $objectId,
104
        $versionSeriesId,
105
        $filter = null,
106
        $includeAllowableActions = false,
107
        ExtensionDataInterface $extension = null
108
    );
109
110
    /**
111
     * Get the latest document object in the version series.
112
     *
113
     * @param string $repositoryId the identifier for the repository
114
     * @param string $objectId The identifier for the object
115
     * @param string $versionSeriesId
116
     * @param boolean $major If <code>true</code>, then the repository MUST return the properties for the latest major
117
     *      version object in the version series.
118
     *      If <code>false</code>, the repository MUST return the properties for the latest
119
     *      (major or non-major) version object in the version series.
120
     * @param string|null $filter a comma-separated list of query names that defines which properties must be
121
     *      returned by the repository (default is repository specific)
122
     * @param boolean $includeAllowableActions if <code>true</code>, then the repository must return the allowable
123
     *      actions for the objects (default is <code>false</code>)
124
     * @param IncludeRelationships|null $includeRelationships indicates what relationships in which the objects
125
     *      participate must be returned (default is <code>IncludeRelationships::NONE</code>)
126
     * @param string $renditionFilter indicates what set of renditions the repository must return whose kind
127
     *      matches this filter (default is "cmis:none")
128
     * @param boolean $includePolicyIds if <code>true</code>, then the repository must return the policy ids for
129
     *      the object (default is <code>false</code>)
130
     * @param boolean $includeAcl
131
     * @param ExtensionDataInterface|null $extension
132
     * @return ObjectDataInterface
133
     */
134 View Code Duplication
    public function getObjectOfLatestVersion(
0 ignored issues
show
This method 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...
135
        $repositoryId,
136
        $objectId,
137
        $versionSeriesId,
138
        $major = false,
139
        $filter = null,
140
        $includeAllowableActions = false,
141
        IncludeRelationships $includeRelationships = null,
142
        $renditionFilter = Constants::RENDITION_NONE,
143
        $includePolicyIds = false,
144
        $includeAcl = false,
145
        ExtensionDataInterface $extension = null
146
    );
147
148
    /**
149
     * Get a subset of the properties for the latest document object in the version series.
150
     *
151
     * @param string $repositoryId the identifier for the repository
152
     * @param string $objectId The identifier for the object
153
     * @param string $versionSeriesId The identifier for the version series.
154
     * @param boolean $major If <code>true</code>, then the repository MUST return the properties for the latest major
155
     *      version object in the version series.
156
     *      If <code>false</code>, the repository MUST return the properties for the latest
157
     *      (major or non-major) version object in the version series.
158
     * @param string|null $filter a comma-separated list of query names that defines which properties must be
159
     *      returned by the repository (default is repository specific)
160
     * @param ExtensionDataInterface|null $extension
161
     * @return PropertiesInterface
162
     */
163
    public function getPropertiesOfLatestVersion(
164
        $repositoryId,
165
        $objectId,
166
        $versionSeriesId,
167
        $major = false,
168
        $filter = null,
169
        ExtensionDataInterface $extension = null
170
    );
171
}
172