original_string: public function un($event, callable $fn = null) {
          if (isset($this->events[$event])) {
              if ($fn) {
                  foreach ($this->events[$event] as $k => $ev) {
                      if ($ev === $fn) {
                          unset($this->events[$event][$k]);
                          break;
                      }
                  }
              } else {
                  unset($this->events[$event]);
              }
          }
          return $this;
      }
code: public function un($event, callable $fn = null) {
          if (isset($this->events[$event])) {
              if ($fn) {
                  foreach ($this->events[$event] as $k => $ev) {
                      if ($ev === $fn) {
                          unset($this->events[$event][$k]);
                          break;
                      }
                  }
              } else {
                  unset($this->events[$event]);
              }
          }
          return $this;
      }
code_tokens: public function un ( $ event , callable $ fn = null ) { if ( isset ( $ this -> events [ $ event ] ) ) { if ( $ fn ) { foreach ( $ this -> events [ $ event ] as $ k => $ ev ) { if ( $ ev === $ fn ) { unset ( $ this -> events [ $ event ] [ $ k ] ) ; break ; } } } else { unset ( $ this -> events [ $ event ] ) ; } } return $ this ; }
docstring: Remove an action setted for the specified event
  
  @param int $event event code
  @param callable|null $fn function to call when the event was triggered
  @return TcTable
docstring_tokens: Remove an action setted for the specified event