Tweaks and fixes
This commit is contained in:
@@ -78,6 +78,8 @@ class Incident extends Model implements TransformableInterface
|
||||
return 'ion ion-eye';
|
||||
case 4:
|
||||
return 'ion ion-checkmark';
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
namespace CachetHQ\Cachet\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\Facades\Str;
|
||||
use Illuminate\Support\Str;
|
||||
use Watson\Validating\ValidatingTrait;
|
||||
|
||||
class IncidentTemplate extends Model
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace CachetHQ\Cachet\Models;
|
||||
|
||||
use ErrorException;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Setting extends Model
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace CachetHQ\Cachet\Models;
|
||||
|
||||
use Exception;
|
||||
use GuzzleHttp\Client;
|
||||
use GuzzleHttp\Exception\ClientException;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
@@ -52,11 +53,11 @@ class WebHook extends Model
|
||||
* Fires the actual web hook event.
|
||||
*
|
||||
* @param string $eventType The event to send X-Cachet-Event
|
||||
* @param mixed $data Data to send to the Web Hook
|
||||
* @param string $data Data to send to the Web Hook
|
||||
*
|
||||
* @return \CachetHQ\Cachet\Models\WebHookResponse
|
||||
*/
|
||||
public function fire($eventType, $data = null)
|
||||
public function fire($eventType, $data)
|
||||
{
|
||||
$startTime = microtime(true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user