diff --git a/config/app.php b/config/app.php index 8faea7d..480c342 100644 --- a/config/app.php +++ b/config/app.php @@ -178,7 +178,6 @@ return [ */ 'Error' => [ 'errorLevel' => E_ALL, - 'exceptionRenderer' => ExceptionRenderer::class, 'skipLog' => [], 'log' => true, 'trace' => true, diff --git a/plugins/Tags/src/View/Helper/TagHelper.php b/plugins/Tags/src/View/Helper/TagHelper.php index 405c513..7cb1411 100644 --- a/plugins/Tags/src/View/Helper/TagHelper.php +++ b/plugins/Tags/src/View/Helper/TagHelper.php @@ -106,7 +106,7 @@ class TagHelper extends Helper $deleteButton = $this->Bootstrap->button([ 'size' => 'sm', 'icon' => 'times', - 'class' => ['ms-1', 'border-0', "text-${textColour}"], + 'class' => ['ms-1', 'border-0', "text-$textColour"], 'variant' => 'text', 'title' => __('Delete tag'), 'onclick' => sprintf('deleteTag(\'%s\', \'%s\', this)', diff --git a/src/Command/ImporterCommand.php b/src/Command/ImporterCommand.php index dee4e24..02c4164 100644 --- a/src/Command/ImporterCommand.php +++ b/src/Command/ImporterCommand.php @@ -136,7 +136,7 @@ class ImporterCommand extends Command $entity = null; if (isset($item[$primary_key])) { $query = $table->find('all') - ->where(["${primary_key}" => $item[$primary_key]]); + ->where(["$primary_key" => $item[$primary_key]]); $entity = $query->first(); } if (is_null($entity)) { diff --git a/src/Controller/Component/CRUDComponent.php b/src/Controller/Component/CRUDComponent.php index d56609c..96855da 100644 --- a/src/Controller/Component/CRUDComponent.php +++ b/src/Controller/Component/CRUDComponent.php @@ -1465,7 +1465,7 @@ class CRUDComponent extends Component { $prefixedConditions = []; foreach ($conditions as $condField => $condValue) { - $prefixedConditions["${prefix}.${condField}"] = $condValue; + $prefixedConditions["$prefix.$condField"] = $condValue; } return $prefixedConditions; } @@ -1589,13 +1589,13 @@ class CRUDComponent extends Component [sprintf('%s.id = %s.%s', $this->Table->getAlias(), $associatedTable->getAlias(), $association->getForeignKey())] ) ->where([ - ["${field} IS NOT" => NULL] + ["$field IS NOT" => NULL] ]); } else if ($associationType == 'manyToOne') { $fieldToExtract = sprintf('%s.%s', Inflector::singularize(strtolower($model)), $subField); $query = $this->Table->find()->contain($model); } else { - throw new Exception("Association ${associationType} not supported in CRUD Component"); + throw new Exception("Association $associationType not supported in CRUD Component"); } } else { $fieldToExtract = $field; diff --git a/src/Controller/Component/RestResponseComponent.php b/src/Controller/Component/RestResponseComponent.php index 8da9128..19a522b 100644 --- a/src/Controller/Component/RestResponseComponent.php +++ b/src/Controller/Component/RestResponseComponent.php @@ -390,7 +390,7 @@ class RestResponseComponent extends Component return '[]'; } - public function saveFailResponse($controller, $action, $id = false, $validationErrors, $format = false) + public function saveFailResponse($controller, $action, $id, $validationErrors, $format = false) { $this->autoRender = false; $response = array();