mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-04 10:32:40 +00:00
== to === and != to !== where applicable
This commit is contained in:
parent
ee4a116936
commit
111366d5c8
89 changed files with 291 additions and 291 deletions
|
@ -227,7 +227,7 @@ class Scaffold {
|
|||
}
|
||||
|
||||
if ($this->controller->beforeScaffold($action)) {
|
||||
if ($action == 'edit') {
|
||||
if ($action === 'edit') {
|
||||
if (isset($request->params['pass'][0])) {
|
||||
$this->ScaffoldModel->id = $request['pass'][0];
|
||||
}
|
||||
|
@ -237,7 +237,7 @@ class Scaffold {
|
|||
}
|
||||
|
||||
if (!empty($request->data)) {
|
||||
if ($action == 'create') {
|
||||
if ($action === 'create') {
|
||||
$this->ScaffoldModel->create();
|
||||
}
|
||||
|
||||
|
@ -443,7 +443,7 @@ class Scaffold {
|
|||
$associations[$type][$assocKey]['controller'] =
|
||||
Inflector::pluralize(Inflector::underscore($model));
|
||||
|
||||
if ($type == 'hasAndBelongsToMany') {
|
||||
if ($type === 'hasAndBelongsToMany') {
|
||||
$associations[$type][$assocKey]['with'] = $assocData['with'];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue