Skip to content

Commit

Permalink
style: controller methods and route names should be camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
streamtw committed Mar 20, 2024
1 parent 3fc28de commit 5a53207
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/Controllers/CropController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function getCrop()
/**
* Crop the image (called via ajax).
*/
public function getCropimage($overWrite = true)
public function getCropImage($overWrite = true)
{
$image_name = request('img');
$image_path = $this->lfm->setName($image_name)->path('absolute');
Expand All @@ -52,7 +52,7 @@ public function getCropimage($overWrite = true)
event(new ImageWasCropped($image_path));
}

public function getNewCropimage()
public function getNewCropImage()
{
$this->getCropimage(false);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Controllers/ItemsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function move()
->with('items', $items);
}

public function domove()
public function doMove()
{
$target = $this->helper->input('goToFolder');
$items = $this->helper->input('items');
Expand Down
12 changes: 6 additions & 6 deletions src/Lfm.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,8 @@ public static function routes()
]);

Route::get('/domove', [
'uses' => 'ItemsController@domove',
'as' => 'domove'
'uses' => 'ItemsController@doMove',
'as' => 'doMove'
]);

// folders
Expand All @@ -341,12 +341,12 @@ public static function routes()
'as' => 'getCrop',
]);
Route::get('/cropimage', [
'uses' => 'CropController@getCropimage',
'as' => 'getCropimage',
'uses' => 'CropController@getCropImage',
'as' => 'getCropImage',
]);
Route::get('/cropnewimage', [
'uses' => 'CropController@getNewCropimage',
'as' => 'getCropnewimage',
'uses' => 'CropController@getNewCropImage',
'as' => 'getNewCropImage',
]);

// rename
Expand Down

0 comments on commit 5a53207

Please sign in to comment.