Skip to content

Commit

Permalink
quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelfolaron committed Jun 24, 2024
1 parent 6640dd1 commit 2911bb4
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions app/Domain/Canvas/Controllers/EditCanvasComment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down Expand Up @@ -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'],
Expand Down
4 changes: 2 additions & 2 deletions app/Domain/Canvas/Controllers/EditCanvasItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down Expand Up @@ -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'],
Expand Down
4 changes: 2 additions & 2 deletions app/Domain/Canvas/Controllers/Export.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
6 changes: 3 additions & 3 deletions app/Domain/Canvas/Controllers/ShowCanvas.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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]);
}
Expand Down
6 changes: 3 additions & 3 deletions app/Domain/Goalcanvas/Controllers/Dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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]);
}
Expand Down
2 changes: 1 addition & 1 deletion app/Domain/Goalcanvas/Controllers/EditCanvasItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'])) {
Expand Down
6 changes: 3 additions & 3 deletions app/Domain/Goalcanvas/Controllers/ShowCanvas.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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]);
}
Expand Down

0 comments on commit 2911bb4

Please sign in to comment.