Skip to content

Commit

Permalink
Version 2 fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
MouseZver committed Jun 14, 2021
1 parent 46f2908 commit f90818c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@


# composer require nouvu/logger
//$logger = new \Nouvu\Logger( __DIR__ . '/cron' );
//$logger = new \Nouvu\Logger\Logger( __DIR__ . '/cron' );

$leeloo = new \Nouvu\Leeloo\Api( $config, true );

Expand Down
4 changes: 2 additions & 2 deletions src/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function __construct ( array $leeloo, QueryStorageBank $storage, bool $se

$this -> set = new Setting( $this -> config );

$this -> verify( $this -> configuration_keys, $leeloo, static fn( string $key ) => $this -> set -> {$key}( $leeloo[$key] ) );
$this -> verify( $this -> configuration_keys, $leeloo, fn( string $key ) => $this -> set -> {$key}( $leeloo[$key] ) );
}

public function send( string $link, array $data, string $request = 'POST' ): bool
Expand Down Expand Up @@ -115,7 +115,7 @@ public function sendMessage( string $account_id, string $message, bool $sending

$send = $this -> getData( 'send' );

$this -> config -> set( 'send', fn( &$config ) => $config = $sending );
$this -> config -> set( 'send', fn( &$config ) => $config = $this -> cron ?: $sending );

$this -> send( self :: API['messages'] . '/send-message', [
'account_id' => $account_id,
Expand Down

0 comments on commit f90818c

Please sign in to comment.