Skip to content

Commit

Permalink
#1437 revert
Browse files Browse the repository at this point in the history
  • Loading branch information
stakovicz committed Nov 27, 2024
1 parent 43c3aac commit 9d7b66e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions sources/AppBundle/Association/Model/CompanyMember.php
Original file line number Diff line number Diff line change
Expand Up @@ -555,20 +555,15 @@ public function getTwitterHandle()
}

/**
* Duplicate of AppBundle\Event\Model\Speaker::getCleanedTwitterHandle()
* @return bool|string
*/
public function getCleanedTwitterHandle()
{
$twitter = $this->getTwitterHandle();
if (!$twitter) {
return null;
}

$twitter = trim($twitter, '@');
$twitter = preg_replace('!^https?://twitter.com/!', '', $twitter);

if (!$twitter) {
if (0 === strlen(trim($twitter))) {
return null;
}

Expand Down

0 comments on commit 9d7b66e

Please sign in to comment.