Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Commit

Permalink
fixed usage of missing array_get function
Browse files Browse the repository at this point in the history
  • Loading branch information
rok committed Sep 5, 2019
1 parent 271daef commit 7dad077
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions healthcheck/HealthChecker/HealthChecker.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php namespace Ipunkt\LaravelHealthcheck\HealthChecker;

use Illuminate\Support\Arr;
use Ipunkt\LaravelHealthcheck\HealthChecker\Factory\HealthcheckerFactory;

/**
Expand Down Expand Up @@ -31,15 +32,15 @@ public function __construct( HealthcheckerFactory $factory, array $config) {
* @return Checker
*/
protected function getChecker( $name ) {
$config = array_get( $this->config, $name, []);
$config = Arr::get( $this->config, $name, []);

$checker = $this->factory->make($name, $config);

return $checker;
}

public function check( ) {
$checkerNames = array_get( $this->config, 'checks', [] );
$checkerNames = Arr::get( $this->config, 'checks', [] );

foreach($checkerNames as $checkerName) {
$checker = $this->getChecker($checkerName );
Expand Down

0 comments on commit 7dad077

Please sign in to comment.