api/webservice/WebservicePremium/ModComments/Record.php
Missing class import via use statement (line '23', column '14'). Open
Open
throw new \Api\Core\Exception('No permissions for data provided in the request', 403);
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Spaces must be used to indent lines; tabs are not allowed Open
Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/** {@inheritdoc} */
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$this->recordModel->set('assigned_user_id', $this->getUserData('user_id'));
- Exclude checks
Line exceeds 120 characters; contains 158 characters Open
Open
if ($this->controller->request->has('assigned_user_id') || $this->controller->request->has('customer') || $this->controller->request->has('userid')) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if ($this->getUserCrmId()) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$this->recordModel->set('customer', $this->getUserCrmId());
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return parent::post();
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
if ($this->controller->request->has('assigned_user_id') || $this->controller->request->has('customer') || $this->controller->request->has('userid')) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function post(): array
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
throw new \Api\Core\Exception('No permissions for data provided in the request', 403);
- Exclude checks