src/Functions/ExtendedOperations/EasterEggFunctions.php
public function getLeflersLaw($number = null): string
    {
        return in_array($number, array_keys($this->theLaws))
            ? $this->theLaws[$number]
            : $this->theLaws[array_rand($this->theLaws, 1)];
    }
public function getLeflersLaw($number = null): string
    {
        return in_array($number, array_keys($this->theLaws))
            ? $this->theLaws[$number]
            : $this->theLaws[array_rand($this->theLaws, 1)];
    }
public function getLeflersLaw ( $ number = null ) : string { return in_array ( $ number , array_keys ( $ this -> theLaws ) ) ? $ this -> theLaws [ $ number ] : $ this -> theLaws [ array_rand ( $ this -> theLaws , 1 ) ] ; }
Lefler's Laws.

Ensign Robin Lefler was a 24th century Starfleet officer who was stationed on board the USS Enterprise-D in 2368 and
became close with Wesley Crusher. Her parents were plasma specialists and moved around very often, so Lefler could
neither call a place 'home' nor develop friendships, claiming her first friend had been a tricorder. (TNG: "The Game")

Lefler served as mission specialist for a mission exploring the Phoenix Cluster. She had a brief romance with Wesley,
and she and Wesley foiled a plot by the Ktarians to take over the Enterprise (and subsequently, Starfleet), using an
addictive game to get control over the crew. (TNG: "The Game")

Robin created a set of 102 "Laws" to live by. "Every time I learn something essential," she explained, "I make up a law
about it, so I never forget." Below are the only laws to be found by Ensign Robin Lefler from an Internet search.

@param int $number The specific Lefler Law to return

@return string The random law will be returned if out-of-range, non-existent, or none provided

@api
Lefler s Laws .