diff --git a/config/playground-matrix-resource.php b/config/playground-matrix-resource.php
index 836a433..462e410 100644
--- a/config/playground-matrix-resource.php
+++ b/config/playground-matrix-resource.php
@@ -1,4 +1,5 @@
isEmpty())
@else
-
+
@endif
@php $boards = Playground\Matrix\Models\Board::all() @endphp
diff --git a/routes/backlogs.php b/routes/backlogs.php
index a69581a..260840a 100644
--- a/routes/backlogs.php
+++ b/routes/backlogs.php
@@ -1,4 +1,5 @@
counts)
- || !is_int($this->counts[$key])
+ || ! array_key_exists($key, $this->counts)
+ || ! is_int($this->counts[$key])
) {
return null;
}
@@ -44,7 +45,7 @@ public function getCount(string $key): int|null
public function setCount(string $key, int|null $value): self
{
- if (!empty($key) ) {
+ if (! empty($key) ) {
$this->counts[$key] = $value;
}
@@ -59,8 +60,8 @@ public function decrementCount(string $key, int $value = -1): self
$value
));
}
- if (!empty($key) ) {
- if (!array_key_exists($key, $this->counts)) {
+ if (! empty($key) ) {
+ if (! array_key_exists($key, $this->counts)) {
$this->counts[$key] = 0;
}
$this->counts[$key] -= $value;
@@ -77,8 +78,8 @@ public function incrementCount(string $key, int $value = 1): self
$value
));
}
- if (!empty($key) ) {
- if (!array_key_exists($key, $this->counts)) {
+ if (! empty($key) ) {
+ if (! array_key_exists($key, $this->counts)) {
$this->counts[$key] = 0;
}
$this->counts[$key] -= $value;
@@ -89,7 +90,7 @@ public function incrementCount(string $key, int $value = 1): self
public function setLabel(string $key, string $label): self
{
- if (!empty($key) && !empty($label)) {
+ if (! empty($key) && ! empty($label)) {
$this->labels[$key] = $label;
}
@@ -98,10 +99,9 @@ public function setLabel(string $key, string $label): self
public function hasLinks(string $key): bool
{
- return !empty($key)
+ return ! empty($key)
&& array_key_exists($key, $this->links)
- && !empty($this->links[$key])
- ;
+ && ! empty($this->links[$key]);
}
/**
@@ -109,8 +109,8 @@ public function hasLinks(string $key): bool
*/
public function addLink(string $key, array $options = []): self
{
- if (!empty($key)) {
- if (!array_key_exists($key, $this->links)) {
+ if (! empty($key)) {
+ if (! array_key_exists($key, $this->links)) {
$this->links[$key] = [];
}
$this->links[$key][] = new DashboardLink($options);
@@ -125,7 +125,7 @@ public function addLink(string $key, array $options = []): self
public function getLinks(string $key): array
{
if (empty($key)
- || !array_key_exists($key, $this->links)
+ || ! array_key_exists($key, $this->links)
|| empty($this->links[$key])
) {
return [];
diff --git a/src/Dashboard/DashboardLink.php b/src/Dashboard/DashboardLink.php
index e4a8f84..63dc865 100644
--- a/src/Dashboard/DashboardLink.php
+++ b/src/Dashboard/DashboardLink.php
@@ -1,4 +1,5 @@
setLabel($key, $key);
$dashboard->setCount($key, $data[$key]->count());
- foreach($data[$key] as $model) {
+ foreach ($data[$key] as $model) {
$dashboard->addLink($key, [
'description' => $model->description,
'label' => $model->label ?: $model->title,
diff --git a/src/Http/Controllers/Controller.php b/src/Http/Controllers/Controller.php
index 61cea39..ac10151 100644
--- a/src/Http/Controllers/Controller.php
+++ b/src/Http/Controllers/Controller.php
@@ -1,4 +1,5 @@
config('playground-matrix-resource'),
// ]);
- if (!empty(config('playground-matrix-resource.load.matrix'))) {
+ if (! empty(config('playground-matrix-resource.load.matrix'))) {
$data['dashboard'] = $this->loadMatrix(
$request,
'playground.matrix.resource',
);
}
+
return view('playground-matrix-resource::index/index', $data);
}
}
diff --git a/src/Http/Controllers/MatrixController.php b/src/Http/Controllers/MatrixController.php
index 63a2808..8f1c502 100644
--- a/src/Http/Controllers/MatrixController.php
+++ b/src/Http/Controllers/MatrixController.php
@@ -1,4 +1,5 @@
user();
- $project->update($validated);
-
if ($user?->id) {
$project->modified_by_id = $user->id;
}
+ $project->update($validated);
+
if ($request->expectsJson()) {
return (new Resources\Project($project))->additional(['meta' => [
'info' => $this->packageInfo,
diff --git a/src/Http/Controllers/ReleaseController.php b/src/Http/Controllers/ReleaseController.php
index 7e7da44..1aa2347 100644
--- a/src/Http/Controllers/ReleaseController.php
+++ b/src/Http/Controllers/ReleaseController.php
@@ -1,4 +1,5 @@
user();
- $ticket->update($validated);
-
if ($user?->id) {
$ticket->modified_by_id = $user->id;
}
+ $ticket->update($validated);
+
if ($request->expectsJson()) {
return (new Resources\Ticket($ticket))->additional(['meta' => [
'info' => $this->packageInfo,
diff --git a/src/Http/Controllers/VersionController.php b/src/Http/Controllers/VersionController.php
index 2810f59..5318507 100644
--- a/src/Http/Controllers/VersionController.php
+++ b/src/Http/Controllers/VersionController.php
@@ -1,4 +1,5 @@