Skip to content
Permalink
Browse files

Fixed: use $var === null instead of is_null($var)

  • Loading branch information...
tenkoma committed Jan 19, 2018
1 parent d3d0501 commit 2a14e65b4327bc48f3ed3d7d025fd7f772ab34b5
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Console/Command/Task/ControllerTask.php
@@ -331,10 +331,10 @@ public function bakeActions($controllerName, $admin = null, $wannaUseSession = t
public function bake($controllerName, $actions = '', $helpers = null, $components = null) {
$this->out("\n" . __d('cake_console', 'Baking controller class for %s...', $controllerName), 1, Shell::QUIET);
if (is_null($helpers)) {
if ($helpers === null) {
$helpers = array();
}
if (is_null($components)) {
if ($components === null) {
$components = array();
}
$isScaffold = ($actions === 'scaffold') ? true : false;

0 comments on commit 2a14e65

Please sign in to comment.
You can’t perform that action at this time.