This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @param string $value | |
* @param int $index | |
* | |
* @return null|string | |
*/ | |
private function addressRegex($value, $index) { | |
preg_match("/^(\d*[\wäáàâåëéèêïíìîöóòôüúùûýÿÄÁÀÂËÉÈÊÏÍÌÎÖÓÒÔÜÚÙÛÝßñÑÇçšæÆ\d '\/\-\.]+)[,\s]+(\d+)\s*([\wäáàâåëéèêïíìîöóòôüúùûýÿÄÁÀÂËÉÈÊÏÍÌÎÖÓÒÔÜÚÙÛÝßñÑÇçšæÆ\d\-\/]*)$/", $value, $data); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
<?php | |
$provider = new \Rudolf\OAuth2\Client\Provider\Reddit([ | |
'clientId' => env('REDDIT_CLIENT_ID'), | |
'clientSecret' => env('REDDIT_CLIENT_SECRET'), | |
'redirectUri' => 'mydomain.com/callback', | |
'userAgent' => 'mydomain:1:' . date('Ymd') . ', (by /u/Mavee)', | |
'scopes' => ['identity read',], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getLinkedToInfoByArrayOfIds(ids) { | |
if(ids.length < 1) { | |
return []; | |
} | |
var group = { | |
'person' : 'relation', | |
'organization' : 'relation', | |
'project' : 'project', | |
'sales' : 'sales' | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @param array $ids | |
* | |
* @return array | |
*/ | |
private function getLinkedToInfoByArrayOfIds($ids) { | |
if(empty($ids)) { | |
return []; | |
} |