@@ -57,7 +57,7 @@ |
||
| 57 | 57 | /** |
| 58 | 58 | * Create an instance of the class. |
| 59 | 59 | */ |
| 60 | - public function __construct(GClient &$oClient, int $iOptions = 0) |
|
| 60 | + public function __construct(GClient & $oClient, int $iOptions = 0) |
|
| 61 | 61 | { |
| 62 | 62 | $this->oClient = $oClient; |
| 63 | 63 | $this->iOptions = $iOptions; |
@@ -30,11 +30,11 @@ discard block |
||
| 30 | 30 | /** also map system groups to catagories */ |
| 31 | 31 | public const OPT_MAP_GROUPS_TO_CATEGORY = 0x0001; |
| 32 | 32 | /** also map system groups to catagories */ |
| 33 | - public const OPT_MAP_SYSTEM_GROUPS = 0x0002; |
|
| 33 | + public const OPT_MAP_SYSTEM_GROUPS = 0x0002; |
|
| 34 | 34 | /** export contined photo as portrait */ |
| 35 | 35 | public const OPT_EXPORT_PHOTO = 0x0004; |
| 36 | 36 | /** use default photo from google, if no custom photo is set */ |
| 37 | - public const OPT_USE_DEFAULT_PHOTO = 0x0008; |
|
| 37 | + public const OPT_USE_DEFAULT_PHOTO = 0x0008; |
|
| 38 | 38 | |
| 39 | 39 | /** @var GClient the client we need for the import */ |
| 40 | 40 | protected GClient $oClient; |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | * @param GClient $oClient |
| 56 | 56 | * @param int $iOptions |
| 57 | 57 | */ |
| 58 | - public function __construct(GClient &$oClient, int $iOptions = null) |
|
| 58 | + public function __construct(GClient & $oClient, int $iOptions = null) |
|
| 59 | 59 | { |
| 60 | 60 | $this->oClient = $oClient; |
| 61 | 61 | $this->iOptions = $iOptions ?? self::OPT_EXPORT_PHOTO | self::OPT_MAP_GROUPS_TO_CATEGORY; |
@@ -154,7 +154,7 @@ |
||
| 154 | 154 | */ |
| 155 | 155 | protected function readOrganization(GContact $oGContact) : void |
| 156 | 156 | { |
| 157 | - if (isset($oGContact[GContact::PF_ORGANIZATIONS]) && is_array($oGContact[GContact::PF_ORGANIZATIONS]) && count($oGContact[GContact::PF_ORGANIZATIONS]) > 0 ) { |
|
| 157 | + if (isset($oGContact[GContact::PF_ORGANIZATIONS]) && is_array($oGContact[GContact::PF_ORGANIZATIONS]) && count($oGContact[GContact::PF_ORGANIZATIONS]) > 0) { |
|
| 158 | 158 | // use first org. contained... |
| 159 | 159 | $aOrg = $oGContact[GContact::PF_ORGANIZATIONS][0]; |
| 160 | 160 | |