original_string: public function check(MvcEvent $event)
      {
          foreach ($this->limits as $limit) {
              if ($this->storage->check($this->remoteAddress->getIpAddress(), $limit)) {
                  foreach ($limit->getActions() as $action) {
                      $action($event);
                  }
              }
          }
      }
code: public function check(MvcEvent $event)
      {
          foreach ($this->limits as $limit) {
              if ($this->storage->check($this->remoteAddress->getIpAddress(), $limit)) {
                  foreach ($limit->getActions() as $action) {
                      $action($event);
                  }
              }
          }
      }
code_tokens: public function check ( MvcEvent $ event ) { foreach ( $ this -> limits as $ limit ) { if ( $ this -> storage -> check ( $ this -> remoteAddress -> getIpAddress ( ) , $ limit ) ) { foreach ( $ limit -> getActions ( ) as $ action ) { $ action ( $ event ) ; } } } }
docstring: Test limits and take actions if they have been exceeded
  
  @param MvcEvent $event
docstring_tokens: Test limits and take actions if they have been exceeded