Issues (3099)

Security Analysis    not enabled

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.

SearchBundle/Provider/SearchProviderInterface.php (1 issue)

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
3
namespace Kunstmaan\SearchBundle\Provider;
4
5
/**
6
 * Interface for a SearchProvider
7
 */
8
interface SearchProviderInterface
9
{
10
    /**
11
     * Returns a unique name for the SearchProvider
12
     *
13
     * @return string
14
     */
15
    public function getName();
16
17
    /**
18
     * Return the client object
19
     *
20
     * @return mixed
21
     */
22
    public function getClient();
23
24
    /**
25
     * Create an index
26
     *
27
     * @param string $indexName Name of the index
28
     */
29
    public function createIndex($indexName);
0 ignored issues
show
For interfaces and abstract methods it is generally a good practice to add a @return annotation even if it is just @return void or @return null, so that implementors know what to do in the overridden method.

For interface and abstract methods, it is impossible to infer the return type from the immediate code. In these cases, it is generally advisible to explicitly annotate these methods with a @return doc comment to communicate to implementors of these methods what they are expected to return.

Loading history...
30
31
    /**
32
     * Return the index object
33
     *
34
     * @param $indexName
35
     *
36
     * @return mixed
37
     */
38
    public function getIndex($indexName);
39
40
    /**
41
     * Create a document
42
     *
43
     * @param string $uid
44
     * @param mixed  $document
45
     * @param string $indexName
46
     * @param string $indexType
47
     *
48
     * @return mixed
49
     */
50
    public function createDocument($document, $uid, $indexName = '', $indexType = '');
51
52
    /**
53
     * Add a document to the index
54
     *
55
     * @param string $indexName Name of the index
56
     * @param string $indexType Type of the index to add the document to
57
     * @param array  $document  The document to index
58
     * @param string $uid       Unique ID for this document, this will allow the document to be overwritten by new data
59
     *                          instead of being duplicated
60
     */
61
    public function addDocument($indexName, $indexType, $document, $uid);
62
63
    /**
64
     * Add a collection of documents at once
65
     *
66
     * @param mixed  $documents
67
     * @param string $indexName Name of the index
68
     * @param string $indexType Type of the index the document is located
69
     *
70
     * @return mixed
71
     */
72
    public function addDocuments($documents, $indexName = '', $indexType = '');
73
74
    /**
75
     * delete a document from the index
76
     *
77
     * @param string $indexName Name of the index
78
     * @param string $indexType Type of the index the document is located
79
     * @param string $uid       Unique ID of the document to be delete
80
     */
81
    public function deleteDocument($indexName, $indexType, $uid);
82
83
    /**
84
     * @param string $indexName
85
     * @param string $indexType
86
     * @param array  $ids
87
     */
88
    public function deleteDocuments($indexName, $indexType, array $ids);
89
90
    /**
91
     * Delete an index
92
     *
93
     * @param string $indexName Name of the index to delete
94
     */
95
    public function deleteIndex($indexName);
96
}
97