private function updateScore(Element $node, float $addToScore): void {
        $currentScore = (float)$node->attr('gravityScore');

        $node->attr('gravityScore', (string)($currentScore + $addToScore));
    }
private function updateScore(Element $node, float $addToScore): void {
        $currentScore = (float)$node->attr('gravityScore');

        $node->attr('gravityScore', (string)($currentScore + $addToScore));
    }
private function updateScore ( Element $ node , float $ addToScore ) : void { $ currentScore = ( float ) $ node -> attr ( 'gravityScore' ) ; $ node -> attr ( 'gravityScore' , ( string ) ( $ currentScore + $ addToScore ) ) ; }
Adds a score to the gravityScore Attribute we put on divs
we'll get the current score then add the score we're passing in to the current

@param Element $node
@param float $addToScore
Adds a score to the gravityScore Attribute we put on divs we ll get the current score then add the score we re passing in to the current