-
Notifications
You must be signed in to change notification settings - Fork 240
Conversation
0641a17
to
e39b33f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to fix coding style
@@ -544,7 +662,8 @@ public function addservice($parameters) | |||
AND service_service_id = ?"; | |||
$stmt = $this->db->query($sql, array($downtimeId, $ids[0], $ids[1])); | |||
if ($stmt->rowCount()) { | |||
throw new CentreonClapiException(sprintf('Relationship with %s / %s already exists', $host, $service)); | |||
throw new CentreonClapiException(sprintf('Relationship with %s / %s already exists', $host, | |||
$service)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those kind of multiline must be
throw new CentreonClapiException(sprintf(
'Relationship with %s / %s already exists',
$host,
$service
));
@@ -618,7 +737,8 @@ public function delservice($parameters) | |||
AND service_service_id = ?"; | |||
$stmt = $this->db->query($sql, array($downtimeId, $ids[0], $ids[1])); | |||
if (!$stmt->rowCount()) { | |||
throw new CentreonClapiException(sprintf('Relationship with %s / %s does not exist', $host, $service)); | |||
throw new CentreonClapiException(sprintf('Relationship with %s / %s does not exist', $host, | |||
$service)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same here
), | ||
$extraData | ||
) | ||
) . "\n"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too many spaces here for indentation
$row['dt_name'], | ||
$row['object_name'] | ||
) | ||
) . "\n"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same here
#5705