Plugin Directory

Changeset 2843136


Ignore:
Timestamp:
01/04/2023 01:33:11 AM (3 years ago)
Author:
teamgate
Message:

refactor: apply null coalesce to reduce code length

File:
1 edited

Legend:

Unmodified
Added
Removed
  • teamgate-crm-forms/trunk/php-sdk/src/API.php

    r1512481 r2843136  
    44
    55use Teamgate\Exception\ValidationException;
     6use Teamgate\Transport\Transport;
    67
    78class API {
     
    6667    private function getOption($name)
    6768    {
    68         return isset($this->_options[$name]) ? $this->_options[$name] : null;
     69        return $this->_options[ $name ] ?? null;
    6970    }
    7071
Note: See TracChangeset for help on using the changeset viewer.