Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Show downntime resources master #5708

Merged
merged 6 commits into from
Oct 11, 2017
Merged

Conversation

loiclau
Copy link
Contributor

@loiclau loiclau commented Sep 26, 2017

Copy link
Contributor

@Dacchi Dacchi left a 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));
Copy link
Contributor

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));
Copy link
Contributor

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";
Copy link
Contributor

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";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same here

@ganoze ganoze merged commit bbf1810 into master Oct 11, 2017
@ganoze ganoze deleted the show-downntime-resources-master branch October 11, 2017 08:39
@ganoze ganoze added this to the 2.9.0 milestone Oct 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants