original_string: public function notify(NotificationInterface $notification, $level = self::INFO)
      {
          if (!$this->handlers)
          {
              $this->addHandler(new NullHandler());
          }
  
          foreach ($this->getHandlers() as $handler)
          {
              if ($handler->shouldHandle($notification, $level))
              {
                  if (false === $handler->handle($notification, $level))
                  {
                      return false;
                  }
              }
          }
  
          return true;
      }
code: public function notify(NotificationInterface $notification, $level = self::INFO)
      {
          if (!$this->handlers)
          {
              $this->addHandler(new NullHandler());
          }
  
          foreach ($this->getHandlers() as $handler)
          {
              if ($handler->shouldHandle($notification, $level))
              {
                  if (false === $handler->handle($notification, $level))
                  {
                      return false;
                  }
              }
          }
  
          return true;
      }
code_tokens: public function notify ( NotificationInterface $ notification , $ level = self :: INFO ) { if ( ! $ this -> handlers ) { $ this -> addHandler ( new NullHandler ( ) ) ; } foreach ( $ this -> getHandlers ( ) as $ handler ) { if ( $ handler -> shouldHandle ( $ notification , $ level ) ) { if ( false === $ handler -> handle ( $ notification , $ level ) ) { return false ; } } } return true ; }
docstring: Handles notification for every handler
  
  @param NotificationInterface $notification the notification instanceitself
  @param int                   $level        Level of this notification
  
  @return bool
docstring_tokens: Handles notification for every handler