From 2911bb40459e3d3272960b80320d4615bde8339b Mon Sep 17 00:00:00 2001 From: Marcel Folaron Date: Mon, 24 Jun 2024 19:13:49 -0400 Subject: [PATCH] quotes --- app/Domain/Canvas/Controllers/EditCanvasComment.php | 4 ++-- app/Domain/Canvas/Controllers/EditCanvasItem.php | 4 ++-- app/Domain/Canvas/Controllers/Export.php | 4 ++-- app/Domain/Canvas/Controllers/ShowCanvas.php | 6 +++--- app/Domain/Goalcanvas/Controllers/Dashboard.php | 6 +++--- app/Domain/Goalcanvas/Controllers/EditCanvasItem.php | 2 +- app/Domain/Goalcanvas/Controllers/ShowCanvas.php | 6 +++--- 7 files changed, 16 insertions(+), 16 deletions(-) diff --git a/app/Domain/Canvas/Controllers/EditCanvasComment.php b/app/Domain/Canvas/Controllers/EditCanvasComment.php index e0860af5d..fe6c339a8 100644 --- a/app/Domain/Canvas/Controllers/EditCanvasComment.php +++ b/app/Domain/Canvas/Controllers/EditCanvasComment.php @@ -121,7 +121,7 @@ public function post($params) if (isset($params['changeItem'])) { if (isset($params['itemId']) && $params['itemId'] != '') { if (isset($params['description']) && !empty($params['description'])) { - $currentCanvasId = (int)session("current' . strtoupper(static::CANVAS_NAME) . 'Canvas"); + $currentCanvasId = (int)session("current" . strtoupper(static::CANVAS_NAME) . "Canvas"); $canvasItem = array( 'box' => $params['box'], @@ -175,7 +175,7 @@ public function post($params) } } else { if (isset($_POST['description']) && !empty($_POST['description'])) { - $currentCanvasId = (int)session("current' . strtoupper(static::CANVAS_NAME) . 'Canvas"); + $currentCanvasId = (int)session("current" . strtoupper(static::CANVAS_NAME) . "Canvas"); $canvasItem = array( 'box' => $params['box'], diff --git a/app/Domain/Canvas/Controllers/EditCanvasItem.php b/app/Domain/Canvas/Controllers/EditCanvasItem.php index 1acf215ae..a7b23d185 100644 --- a/app/Domain/Canvas/Controllers/EditCanvasItem.php +++ b/app/Domain/Canvas/Controllers/EditCanvasItem.php @@ -156,7 +156,7 @@ public function post($params) if (isset($params['changeItem'])) { if (isset($params['itemId']) && !empty($params['itemId'])) { if (isset($params['description']) && !empty($params['description'])) { - $currentCanvasId = (int)session("current' . strtoupper(static::CANVAS_NAME) . 'Canvas"); + $currentCanvasId = (int)session("current" . strtoupper(static::CANVAS_NAME) . "Canvas"); $canvasItem = array( 'box' => $params['box'], @@ -234,7 +234,7 @@ public function post($params) } } else { if (isset($_POST['description']) && !empty($_POST['description'])) { - $currentCanvasId = (int)session("current' . strtoupper(static::CANVAS_NAME) . 'Canvas"); + $currentCanvasId = (int)session("current" . strtoupper(static::CANVAS_NAME) . "Canvas"); $canvasItem = array( 'box' => $params['box'], diff --git a/app/Domain/Canvas/Controllers/Export.php b/app/Domain/Canvas/Controllers/Export.php index b52e1aed0..363c8ee74 100644 --- a/app/Domain/Canvas/Controllers/Export.php +++ b/app/Domain/Canvas/Controllers/Export.php @@ -65,8 +65,8 @@ public function run(): Response // Retrieve id of canvas to print if (isset($_GET['id']) === true) { $canvasId = (int)$_GET['id']; - } elseif (session()->exists("current' . strtoupper(static::CANVAS_NAME) . 'Canvas")) { - $canvasId = session("current' . strtoupper(static::CANVAS_NAME) . 'Canvas"); + } elseif (session()->exists("current" . strtoupper(static::CANVAS_NAME) . "Canvas")) { + $canvasId = session("current" . strtoupper(static::CANVAS_NAME) . "Canvas"); } else { return new Response(); } diff --git a/app/Domain/Canvas/Controllers/ShowCanvas.php b/app/Domain/Canvas/Controllers/ShowCanvas.php index cb8e0b1d0..d1d8caeff 100644 --- a/app/Domain/Canvas/Controllers/ShowCanvas.php +++ b/app/Domain/Canvas/Controllers/ShowCanvas.php @@ -59,8 +59,8 @@ public function run() $allCanvas = $this->canvasRepo->getAllCanvas(session("currentProject")); } - if (session()->exists("current' . strtoupper(static::CANVAS_NAME) . 'Canvas")) { - $currentCanvasId = session("current' . strtoupper(static::CANVAS_NAME) . 'Canvas"); + if (session()->exists("current" . strtoupper(static::CANVAS_NAME) . "Canvas")) { + $currentCanvasId = session("current" . strtoupper(static::CANVAS_NAME) . "Canvas"); //Ensure canvas id is in the list of currentCanvases (could be old value after project select $found = false; @@ -80,7 +80,7 @@ public function run() session(["current' . strtoupper(static::CANVAS_NAME) . 'Canvas" => '']); } - if (count($allCanvas) > 0 && session("current' . strtoupper(static::CANVAS_NAME) . 'Canvas") == '') { + if (count($allCanvas) > 0 && session("current" . strtoupper(static::CANVAS_NAME) . "Canvas") == '') { $currentCanvasId = $allCanvas[0]['id']; session(["current' . strtoupper(static::CANVAS_NAME) . 'Canvas" => $currentCanvasId]); } diff --git a/app/Domain/Goalcanvas/Controllers/Dashboard.php b/app/Domain/Goalcanvas/Controllers/Dashboard.php index cc4c8e4ac..b2f70629a 100644 --- a/app/Domain/Goalcanvas/Controllers/Dashboard.php +++ b/app/Domain/Goalcanvas/Controllers/Dashboard.php @@ -109,8 +109,8 @@ public function run() } - if (session()->exists("current' . strtoupper(static::CANVAS_NAME) . 'Canvas")) { - $currentCanvasId = session("current' . strtoupper(static::CANVAS_NAME) . 'Canvas"); + if (session()->exists("current" . strtoupper(static::CANVAS_NAME) . "Canvas")) { + $currentCanvasId = session("current" . strtoupper(static::CANVAS_NAME) . "Canvas"); //Ensure canvas id is in the list of currentCanvases (could be old value after project select $found = false; @@ -130,7 +130,7 @@ public function run() session(["current' . strtoupper(static::CANVAS_NAME) . 'Canvas" => '']); } - if (count($allCanvas) > 0 && session("current' . strtoupper(static::CANVAS_NAME) . 'Canvas") == '') { + if (count($allCanvas) > 0 && session("current" . strtoupper(static::CANVAS_NAME) . "Canvas") == '') { $currentCanvasId = $allCanvas[0]['id']; session(["current' . strtoupper(static::CANVAS_NAME) . 'Canvas" => $currentCanvasId]); } diff --git a/app/Domain/Goalcanvas/Controllers/EditCanvasItem.php b/app/Domain/Goalcanvas/Controllers/EditCanvasItem.php index e78a718d5..bff0b2bc8 100644 --- a/app/Domain/Goalcanvas/Controllers/EditCanvasItem.php +++ b/app/Domain/Goalcanvas/Controllers/EditCanvasItem.php @@ -181,7 +181,7 @@ public function post($params): Response if (isset($params['changeItem'])) { - $currentCanvasId = $params["canvasId"] ?? (int)session("current' . strtoupper(static::CANVAS_NAME) . 'Canvas"); + $currentCanvasId = $params["canvasId"] ?? (int)session("current" . strtoupper(static::CANVAS_NAME) . "Canvas"); if (isset($params['itemId']) && !empty($params['itemId'])) { if (isset($params['title']) && !empty($params['title'])) { diff --git a/app/Domain/Goalcanvas/Controllers/ShowCanvas.php b/app/Domain/Goalcanvas/Controllers/ShowCanvas.php index 2a1dc8d3c..5fda1347a 100644 --- a/app/Domain/Goalcanvas/Controllers/ShowCanvas.php +++ b/app/Domain/Goalcanvas/Controllers/ShowCanvas.php @@ -62,8 +62,8 @@ public function run() $allCanvas = $this->canvasRepo->getAllCanvas(session("currentProject")); } - if (session()->exists("current' . strtoupper(static::CANVAS_NAME) . 'Canvas")) { - $currentCanvasId = session("current' . strtoupper(static::CANVAS_NAME) . 'Canvas"); + if (session()->exists("current" . strtoupper(static::CANVAS_NAME) . "Canvas")) { + $currentCanvasId = session("current" . strtoupper(static::CANVAS_NAME) . "Canvas"); //Ensure canvas id is in the list of currentCanvases (could be old value after project select $found = false; @@ -83,7 +83,7 @@ public function run() session(["current' . strtoupper(static::CANVAS_NAME) . 'Canvas" => '']); } - if (count($allCanvas) > 0 && session("current' . strtoupper(static::CANVAS_NAME) . 'Canvas") == '') { + if (count($allCanvas) > 0 && session("current" . strtoupper(static::CANVAS_NAME) . "Canvas") == '') { $currentCanvasId = $allCanvas[0]['id']; session(["current' . strtoupper(static::CANVAS_NAME) . 'Canvas" => $currentCanvasId]); }