Skip to content

Commit

Permalink
Merge pull request #3 from preprio/analysis-e0ay0P
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
tim-hanssen authored Jan 5, 2024
2 parents 3050958 + d922553 commit 6ea5c1a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/OpsGenie.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ class incident
private $parent;

/**
* @param $data
* @param $parent
* @param $data
* @param $parent
*/
public function __construct($data, $parent)
{
Expand Down Expand Up @@ -185,7 +185,7 @@ public function message(string $message)
{
$this->object['message'] = (config('opsgenie.prefix') ? '['.config('opsgenie.prefix').'] ' : '').$message;

if (!array_key_exists( 'alias', $this->object)) {
if (! array_key_exists('alias', $this->object)) {
$this->object['alias'] = md5($this->object['message']);
}

Expand Down Expand Up @@ -263,8 +263,8 @@ class alert
private $parent;

/**
* @param $data
* @param $parent
* @param $data
* @param $parent
*/
public function __construct($data, $parent)
{
Expand Down Expand Up @@ -395,7 +395,7 @@ public function message(string $message)
{
$this->object['message'] = (config('opsgenie.prefix') ? '['.config('opsgenie.prefix').'] ' : '').$message;

if (!array_key_exists( 'alias', $this->object)) {
if (! array_key_exists('alias', $this->object)) {
$this->object['alias'] = md5($this->object['message']);
}

Expand Down

0 comments on commit 6ea5c1a

Please sign in to comment.