Issues (28)

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.

src/Entity/Setting.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 App\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * @ORM\Entity(repositoryClass="App\Repository\SettingRepository")
9
 * @ORM\Table(name="setting")
10
 */
11
class Setting
12
{
13
    /**
14
     * @ORM\Id
15
     * @ORM\GeneratedValue
16
     * @ORM\Column(type="integer")
17
     */
18
    private $id;
19
20
    /**
21
     * @ORM\Column(type="string")
22
     */
23
    private $title = '';
24
25
    /**
26
     * @ORM\Column(type="string")
27
     */
28
    private $code = '';
29
30
    /**
31
     * @ORM\Column(type="string")
32
     */
33
    private $api = '';
34
35
    /**
36
     * @ORM\Column(type="string")
37
     */
38
    private $userSuffix = '';
39
40
    /**
41
     * @ORM\Column(type="string")
42
     */
43
    private $guildSuffix = '';
44
45
    /**
46
     * @ORM\Column(type="string")
47
     */
48
    private $unitSuffix = '';
0 ignored issues
show
The property $unitSuffix is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
49
50
    /**
51
     * Get id.
52
     *
53
     * @return int
54
     */
55
    public function getId()
56
    {
57
        return $this->id;
58
    }
59
60
    /**
61
     * Set title.
62
     *
63
     * @param string $title
64
     *
65
     * @return Setting
66
     */
67
    public function setTitle($title)
68
    {
69
        $this->title = $title;
70
71
        return $this;
72
    }
73
74
    /**
75
     * Get title.
76
     *
77
     * @return string
78
     */
79
    public function getTitle()
80
    {
81
        return $this->title;
82
    }
83
84
    /**
85
     * Set api.
86
     *
87
     * @param string $api
88
     *
89
     * @return Setting
90
     */
91
    public function setApi($api)
92
    {
93
        $this->api = $api;
94
95
        return $this;
96
    }
97
98
    /**
99
     * Get api.
100
     *
101
     * @return string
102
     */
103
    public function getApi()
104
    {
105
        return $this->api;
106
    }
107
108
    /**
109
     * Set userSuffix.
110
     *
111
     * @param string $userSuffix
112
     *
113
     * @return Setting
114
     */
115
    public function setUserSuffix($userSuffix)
116
    {
117
        $this->userSuffix = $userSuffix;
118
119
        return $this;
120
    }
121
122
    /**
123
     * Get userSuffix.
124
     *
125
     * @return string
126
     */
127
    public function getUserSuffix()
128
    {
129
        return $this->userSuffix;
130
    }
131
132
    /**
133
     * Set guildSuffix.
134
     *
135
     * @param string $guildSuffix
136
     *
137
     * @return Setting
138
     */
139
    public function setGuildSuffix($guildSuffix)
140
    {
141
        $this->guildSuffix = $guildSuffix;
142
143
        return $this;
144
    }
145
146
    /**
147
     * Get guildSuffix.
148
     *
149
     * @return string
150
     */
151
    public function getGuildSuffix()
152
    {
153
        return $this->guildSuffix;
154
    }
155
156
    /**
157
     * Set code.
158
     *
159
     * @param string $code
160
     *
161
     * @return Setting
162
     */
163
    public function setCode($code)
164
    {
165
        $this->code = $code;
166
167
        return $this;
168
    }
169
170
    /**
171
     * Get code.
172
     *
173
     * @return string
174
     */
175
    public function getCode()
176
    {
177
        return $this->code;
178
    }
179
}
180