original_string: public function run()
      {
          if (PHP_SAPI === 'cli' && is_subclass_of($this, ConsoleAppInterface::class))
          {
              $this->execConsoleApp();
          }
          else if (is_subclass_of($this, WebAppInterface::class))
          {
              $this->execWebApp();
          }
          else
          {
              throw new \Exception("No interface was implemented");
          }
      }
code: public function run()
      {
          if (PHP_SAPI === 'cli' && is_subclass_of($this, ConsoleAppInterface::class))
          {
              $this->execConsoleApp();
          }
          else if (is_subclass_of($this, WebAppInterface::class))
          {
              $this->execWebApp();
          }
          else
          {
              throw new \Exception("No interface was implemented");
          }
      }
code_tokens: public function run ( ) { if ( PHP_SAPI === 'cli' && is_subclass_of ( $ this , ConsoleAppInterface :: class ) ) { $ this -> execConsoleApp ( ) ; } else if ( is_subclass_of ( $ this , WebAppInterface :: class ) ) { $ this -> execWebApp ( ) ; } else { throw new \ Exception ( "No interface was implemented" ) ; } }
docstring: Executes the application
docstring_tokens: Executes the application