Skip to content

Commit b93bc1d

Browse files
StyleCIBotpxpm
authored andcommitted
Apply fixes from StyleCI
[ci skip] [skip ci]
1 parent df6adc6 commit b93bc1d

File tree

4 files changed

+19
-22
lines changed

4 files changed

+19
-22
lines changed

src/CrudPanelManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function getInitializedOperations(string $controller): array
107107
return $this->initializedOperations[$controller] ?? [];
108108
}
109109

110-
/**
110+
/**
111111
* Check if a specific operation has been initialized for a controller.
112112
*/
113113
public function isOperationInitialized(string $controller, string $operation): bool

src/app/Http/Controllers/Operations/CreateOperation.php

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,17 +81,14 @@ public function createForm()
8181
return view(
8282
$this->crud->getFirstFieldView('form.create_form'),
8383
[
84-
'fields' => $this->crud->getCreateFields(),
85-
'action' => 'create',
86-
'crud' => $this->crud,
87-
'modalClass' => request()->get('modal_class'),
84+
'fields' => $this->crud->getCreateFields(),
85+
'action' => 'create',
86+
'crud' => $this->crud,
87+
'modalClass' => request()->get('modal_class'),
8888
'parentLoadedAssets' => request()->get('parent_loaded_assets'),
8989
]
9090
);
91-
92-
}
93-
94-
91+
}
9592

9693
/**
9794
* Store a newly created resource in the database.

src/app/View/Components/Form.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ class Form extends Component
1212
/**
1313
* Create a new component instance.
1414
*
15-
* @param string $controller The CRUD controller class name
16-
* @param string $operation The operation to use (create, update, etc.)
17-
* @param string|null $action Custom form action URL
18-
* @param string $method Form method (post, put, etc.)
15+
* @param string $controller The CRUD controller class name
16+
* @param string $operation The operation to use (create, update, etc.)
17+
* @param string|null $action Custom form action URL
18+
* @param string $method Form method (post, put, etc.)
1919
*/
2020
public function __construct(
2121
public string $controller,
@@ -43,4 +43,4 @@ public function render()
4343
'formMethod' => $this->formMethod,
4444
]);
4545
}
46-
}
46+
}

src/app/View/Components/FormModal.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ class FormModal extends Form
77
/**
88
* Create a new component instance.
99
*
10-
* @param string $controller The CRUD controller class name
11-
* @param string $operation The operation to use (create, update, etc.)
12-
* @param string|null $action Custom form action URL
13-
* @param string $method Form method (post, put, etc.)
14-
* @param string $buttonText Text to display on the button that opens the modal
15-
* @param string $modalTitle Title for the modal
16-
* @param string $buttonClass CSS classes for the button
10+
* @param string $controller The CRUD controller class name
11+
* @param string $operation The operation to use (create, update, etc.)
12+
* @param string|null $action Custom form action URL
13+
* @param string $method Form method (post, put, etc.)
14+
* @param string $buttonText Text to display on the button that opens the modal
15+
* @param string $modalTitle Title for the modal
16+
* @param string $buttonClass CSS classes for the button
1717
*/
1818
public function __construct(
1919
public string $controller,
@@ -44,4 +44,4 @@ public function render()
4444
'buttonClass' => $this->buttonClass,
4545
]);
4646
}
47-
}
47+
}

0 commit comments

Comments
 (0)