Skip to content

Commit

Permalink
Fix CS.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed May 20, 2020
1 parent 256ac76 commit ac50a60
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/Command/CompletionCommand.php
Expand Up @@ -79,11 +79,11 @@ public function buildOptionParser(ConsoleOptionParser $parser): ConsoleOptionPar
'help' => 'The sub-command related to command to get information on.',
'required' => false,
])->setEpilog([
"The various modes allow you to get help information on commands and their arguments.",
"The available modes are:",
"",
'The various modes allow you to get help information on commands and their arguments.',
'The available modes are:',
'',
$modeHelp,
"",
'',
'This command is not intended to be called manually, and should be invoked from a ' .
'terminal completion script.',
]);
Expand Down
6 changes: 4 additions & 2 deletions templates/Error/missing_controller.php
Expand Up @@ -34,10 +34,12 @@
if (!empty($plugin)) {
$namespace = str_replace('/', '\\', $plugin);
}

$filePath = 'Controller' . DIRECTORY_SEPARATOR . $prefixPath . h($class) . 'Controller.php';
if (empty($plugin)) {
$path = APP_DIR . DIRECTORY_SEPARATOR . 'Controller' . DIRECTORY_SEPARATOR . $prefixPath . h($class) . 'Controller.php';
$path = APP_DIR . DIRECTORY_SEPARATOR . $filePath;
} else {
$path = Plugin::classPath($plugin) . 'Controller' . DIRECTORY_SEPARATOR . $prefixPath . h($class) . 'Controller.php';
$path = Plugin::classPath($plugin) . $filePath;
}

$this->layout = 'dev_error';
Expand Down
1 change: 0 additions & 1 deletion templates/element/exception_stack_trace.php
Expand Up @@ -13,7 +13,6 @@
* @link https://cakephp.org CakePHP(tm) Project
* @since 1.3.0
* @license https://opensource.org/licenses/mit-license.php MIT License
*
* @var array $trace
*/
use Cake\Error\Debugger;
Expand Down
1 change: 0 additions & 1 deletion templates/element/exception_stack_trace_nav.php
Expand Up @@ -11,7 +11,6 @@
* @link https://cakephp.org CakePHP(tm) Project
* @since 3.0.0
* @license https://opensource.org/licenses/mit-license.php MIT License
*
* @var array $trace
*/
use Cake\Error\Debugger;
Expand Down

0 comments on commit ac50a60

Please sign in to comment.