Skip to content

Commit b377f15

Browse files
committed
Apply fixes from StyleCI
[ci skip] [skip ci]
1 parent 6c63390 commit b377f15

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/app/Library/Support/DataformCache.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ public function cacheForComponent(string $formId, string $controllerClass, array
5151

5252
Cache::put($this->cachePrefix.$formId.'_fields', $fieldsConfig, now()->addMinutes($this->cacheDuration));
5353

54-
// Set the form_id in the CRUD panel if provided
55-
if ($crud) {
56-
$crud->set('form.form_id', $formId);
57-
}
54+
// Set the form_id in the CRUD panel if provided
55+
if ($crud) {
56+
$crud->set('form.form_id', $formId);
57+
}
5858

59-
return true;
59+
return true;
6060
}
6161

6262
public static function applyAndStoreSetupClosure(
@@ -192,9 +192,11 @@ protected function applyFromCache($cachedData, ...$args): bool
192192
foreach ($fieldsConfig as $fieldName => $field) {
193193
$crud->addField($field);
194194
}
195+
195196
return true;
196197
}
197198
}
199+
198200
return false;
199201
} catch (\Exception $e) {
200202
return false;

src/app/View/Components/DataformModal.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,8 @@ protected function cacheSetupClosure(): void
7676
*/
7777
public function render()
7878
{
79-
8079
$this->hashedFormId = $this->id.md5($this->formAction.$this->formOperation.'post'.$this->controller);
8180

82-
8381
if ($this->entry) {
8482
$this->formUrl = $this->formUrl ?? url($this->route.'/'.$this->entry->getKey().'/edit');
8583
}

0 commit comments

Comments
 (0)