doExecute

@return  mixed
553771
protected function doExecute()
    {
        $type = $this->input->get('type', 'css');

        $media       = WINDWALKER_DEBUGGER_ROOT . '/Resources/asset';
        $content     = '';
        $contentType = 'text/html';

        switch ($type) {
            case 'css':
                $content     .= file_get_contents($media . '/css/bootstrap.min.css');
                $content     .= file_get_contents($media . '/css/fontawesome5.min.css');
                $content     .= file_get_contents($media . '/css/microtip.css');
                $content     .= file_get_contents($media . '/css/debugger.css');
                $contentType = 'text/css';
                break;

            case 'bootstrap-js':
                $content     .= file_get_contents($media . '/js/jquery.min.js');
                $content     .= file_get_contents($media . '/js/bootstrap.bundle.min.js');
                $contentType = 'text/javascript';
                break;

            case 'fonts':
                $content     .= file_get_contents($media . '/webfonts/fa-solid-900.ttf');
                $contentType = null;
                break;
        }

        $this->response = (new TextResponse())->withContentType($contentType);
        $this->app->server->cachable(true);

        return $content;
    }
112220
protected function doExecute()
    {
        $class = $this->input->getString('class');

        $view = $this->getView();

        if ($class && is_subclass_of($class, MailMessage::class)) {
            Mailer::getContainer()
                ->prepareSharedObject(DebugMailerAdapter::class)
                ->bindShared(MailerAdapterInterface::class, DebugMailerAdapter::class);

            /** @var MailMessage $message */
            $message = Mailer::send($class::create());

            $view['message'] = $message;

            // Set default sender
            if (!$message->getFrom()) {
                $config = $this->app->config;

                if ($config->exists('mail.from.email')) {
                    $message->from($config->get('mail.from.email'), $config->get('mail.from.name'));
                }
            }
        }

        $view['class'] = $class;

        return $view->render();
    }
631679
protected function doExecute()
    {
        $repository = $this->getRepository();

        $repository->copyMigration(
            $this->getArgument(0, 'QueueFailedJobInit'),
            __DIR__ . '/../../../Resources/Templates/migration/queue_failed_jobs.tpl'
        );

        return true;
    }
124548
public function exec()
	{
		if ($this->query_sql === null) {
			$this->compile();
		}
		if ($this->log_query) {
			error_log(sprintf("SQL Query (exec):\n%s", $this->query_sql));
		}
		if (empty($this->query_params)) {
			$t = microtime(true);
			try {
				$r = $this->pdo->exec($this->query_sql);
				if ($this->log_query) {
					error_log(sprintf("SQL Query time: %F ms (exec).", (microtime(true) - $t) * 1000));
				}
			}
			catch (\PDOException $ex) {
				throw new FlupdoException($ex->getMessage(), $ex->getCode(), $ex, $this->query_sql, $this->query_params);
			}
			if ($r === FALSE) {
				throw new FlupdoException(vsprintf("SQLSTATE[%s]: Error %s: %s", $this->pdo->errorInfo()),
					$this->pdo->errorCode(), null, $this->query_sql, $this->query_params);
			}
			return $r;
		} else {
			$stmt = $this->query();
			return $stmt->rowCount();
		}
	}
495780
public function execute()
    {
        $path  = $this->phpci->buildPath;
        $build = $this->build;

        if ($this->directory == $path) {
            return false;
        }

        $filename = str_replace('%build.commit%', $build->getCommitId(), $this->filename);
        $filename = str_replace('%build.id%', $build->getId(), $filename);
        $filename = str_replace('%build.branch%', $build->getBranch(), $filename);
        $filename = str_replace('%project.title%', $build->getProject()->getTitle(), $filename);
        $filename = str_replace('%date%', date('Y-m-d'), $filename);
        $filename = str_replace('%time%', date('Hi'), $filename);
        $filename = preg_replace('/([^a-zA-Z0-9_-]+)/', '', $filename);

        $curdir = getcwd();
        chdir($this->phpci->buildPath);

        if (!is_array($this->format)) {
            $this->format = array($this->format);
        }

        foreach ($this->format as $format) {
            switch ($format) {
                case 'tar':
                    $cmd = 'tar cfz "%s/%s.tar.gz" ./*';
                    break;
                default:
                case 'zip':
                    $cmd = 'zip -rq "%s/%s.zip" ./*';
                    break;
            }

            $success = $this->phpci->executeCommand($cmd, $this->directory, $filename);
        }

        chdir($curdir);

        return $success;
    }
1134468
protected function doExecute()
    {
        $paths = $this->getArgument(0);

        $paths = Arr::toArray($paths);

        if ($paths === []) {
            $p = $this->getOption('p');

            $dir = ConsoleHelper::getAllPackagesResolver()->getPackage($p)->getDir();

            $paths = [
                $dir . '/routing.yml',
                $dir . '/Resources/routing/**/*.yml'
            ];
        }

        $files = [];

        foreach ($paths as $path) {
            $files[] = \Windwalker\glob($path);
        }

        $files = array_merge(...$files);

        foreach ($files as $file) {
            $this->convert($file);
        }

        return true;
    }
921308
@Override
    public void doExecute() throws MojoExecutionException {
        getLog().info(" ");
        getLog().info(LINE_SEPARATOR);
        getLog().info(" S T A R T I N G    J M E T E R    G U I ");
        getLog().info(LINE_SEPARATOR);
        startJMeterGUI(initialiseJMeterArgumentsArray());
    }
1302194
public function createAndExecute() {
        $request = $this->createRequest();
        $response = $this->api->execute($request, $this);
        $this->response = $response;

        return $response;
    }
161883
protected function doExecute()
    {
        $path = getcwd() . '/' . $this->getArgument(0);

        if (!is_file($path)) {
            throw new \RuntimeException('Not file');
        }

        $content = Yaml::parse(file_get_contents($path));
        $year = Chronos::create()->year;

        $content = PhpFormat::structToString(
            $content,
            [
                'header' => "/**
 * Part of Windwalker project.
 *
 * @copyright  Copyright (C) $year __ORGANIZATION__.
 * @license    __LICENSE__
 */"
            ]
        );

        $path = substr_replace($path, 'php', strrpos($path, '.') + 1);

        file_put_contents($path, $content);
        $this->out('Write to:' . $path);

        return true;
    }
737003
public function execute() {
        $request = $this->getRequest();
        if ($request->isAjax()) {
            return $this->resultJsonFactory->create()->setData([
                'payment_token' => $this->paymentTokenService->getToken()
            ]);
        }
    }
163990
public function execute()
    {
        $phingExecutable = $this->phpci->findBinary('phing');

        $cmd[] = $phingExecutable . ' -f ' . $this->getBuildFilePath();

        if ($this->getPropertyFile()) {
            $cmd[] = '-propertyfile ' . $this->getPropertyFile();
        }

        $cmd[] = $this->propertiesToString();

        $cmd[] = '-logger phing.listener.DefaultLogger';
        $cmd[] = $this->targetsToString();
        $cmd[] = '2>&1';

        return $this->phpci->executeCommand(implode(' ', $cmd), $this->directory, $this->targets);
    }
276414
public function execute()
    {
        $build = $this->phpci->buildPath;

        if ($this->directory == $build) {
            return false;
        }

        $this->wipeExistingDirectory();

        $cmd = 'mkdir -p "%s" && cp -R "%s" "%s"';
        if (IS_WIN) {
            $cmd = 'mkdir -p "%s" && xcopy /E "%s" "%s"';
        }

        $success = $this->phpci->executeCommand($cmd, $this->directory, $build, $this->directory);

        $this->deleteIgnoredFiles();

        return $success;
    }
916258
public function getTotalExecutionTime()
    {
        return array_reduce(iterator_to_array($this->getCommands()), function ($time, $value) {
            $time += $value['executionTime'];

            return $time;
        });
    }
882977
public function execute() {
        $curr = null;
        foreach($this->results as $result) {
            if(!is_null($curr)) {
                $result->setSource($curr);
            }

            $curr = $result->execute();
        }

        return $curr;
    }
1047763
public function getCommandToExecute()
    {
        $command = implode(
            " ",
            array(
                $this->bin,
                $this->script,
                $this->command,
            )
        );
        return trim(preg_replace('/\s+/', ' ', $command));
    }
1276857
protected function doExecute()
    {
        $folders = $this->io->getArguments();

        if (!count($folders)) {
            $this->clearCacheRoot();
        } else {
            foreach ($folders as $folder) {
                $this->clearCacheFolder($folder);
            }
        }

        $this->out('Cache cleared.');

        return true;
    }
323715
protected function _execute()
    {
        $result = null;
        $spec = function () {
            $this->_expectations = [];
            $closure = $this->_closure;
            $result = $this->_suite->runBlock($this, $closure, 'specification');
            foreach ($this->_expectations as $expectation) {
                $this->_passed = $expectation->process() && $this->_passed;
            }
            return $result;
        };

        $suite = $this->suite();
        return $spec();
    }