original_string: protected function addressesToArray($address, $name)
      {
          if (! is_array($address) && ! $address instanceof Collection) {
              $address = is_string($name) ? [['name' => $name, 'email' => $address]] : [$address];
          }
  
          return $address;
      }
code: protected function addressesToArray($address, $name)
      {
          if (! is_array($address) && ! $address instanceof Collection) {
              $address = is_string($name) ? [['name' => $name, 'email' => $address]] : [$address];
          }
  
          return $address;
      }
code_tokens: protected function addressesToArray ( $ address , $ name ) { if ( ! is_array ( $ address ) && ! $ address instanceof Collection ) { $ address = is_string ( $ name ) ? [ [ 'name' => $ name , 'email' => $ address ] ] : [ $ address ] ; } return $ address ; }
docstring: Convert the given recipient arguments to an array.
  
  @param  object|array|string  $address
  @param  string|null  $name
  @return array
docstring_tokens: Convert the given recipient arguments to an array .