original_string: protected function toCollect($notification) : Collection
      {
          return Collection::make([
              'hasBeenRead' => ! is_null($notification->read_at),
              'path' => $notification->data['source_path'],
              'label' => $notification->data['label'],
              'id' => $notification->id,
          ]);
      }
code: protected function toCollect($notification) : Collection
      {
          return Collection::make([
              'hasBeenRead' => ! is_null($notification->read_at),
              'path' => $notification->data['source_path'],
              'label' => $notification->data['label'],
              'id' => $notification->id,
          ]);
      }
code_tokens: protected function toCollect ( $ notification ) : Collection { return Collection :: make ( [ 'hasBeenRead' => ! is_null ( $ notification -> read_at ) , 'path' => $ notification -> data [ 'source_path' ] , 'label' => $ notification -> data [ 'label' ] , 'id' => $ notification -> id , ] ) ; }
docstring: Formats the given notification to the desired array.
  
  @param  mixed $notification
  
  @return array
docstring_tokens: Formats the given notification to the desired array .