Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Jan 5, 2024
1 parent 3050958 commit d922553
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 d922553

Please sign in to comment.