Skip to content

Commit 5a53207

Browse files
committed
style: controller methods and route names should be camelCase
1 parent 3fc28de commit 5a53207

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/Controllers/CropController.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function getCrop()
2525
/**
2626
* Crop the image (called via ajax).
2727
*/
28-
public function getCropimage($overWrite = true)
28+
public function getCropImage($overWrite = true)
2929
{
3030
$image_name = request('img');
3131
$image_path = $this->lfm->setName($image_name)->path('absolute');
@@ -52,7 +52,7 @@ public function getCropimage($overWrite = true)
5252
event(new ImageWasCropped($image_path));
5353
}
5454

55-
public function getNewCropimage()
55+
public function getNewCropImage()
5656
{
5757
$this->getCropimage(false);
5858
}

src/Controllers/ItemsController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function move()
5858
->with('items', $items);
5959
}
6060

61-
public function domove()
61+
public function doMove()
6262
{
6363
$target = $this->helper->input('goToFolder');
6464
$items = $this->helper->input('items');

src/Lfm.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,8 @@ public static function routes()
319319
]);
320320

321321
Route::get('/domove', [
322-
'uses' => 'ItemsController@domove',
323-
'as' => 'domove'
322+
'uses' => 'ItemsController@doMove',
323+
'as' => 'doMove'
324324
]);
325325

326326
// folders
@@ -341,12 +341,12 @@ public static function routes()
341341
'as' => 'getCrop',
342342
]);
343343
Route::get('/cropimage', [
344-
'uses' => 'CropController@getCropimage',
345-
'as' => 'getCropimage',
344+
'uses' => 'CropController@getCropImage',
345+
'as' => 'getCropImage',
346346
]);
347347
Route::get('/cropnewimage', [
348-
'uses' => 'CropController@getNewCropimage',
349-
'as' => 'getCropnewimage',
348+
'uses' => 'CropController@getNewCropImage',
349+
'as' => 'getNewCropImage',
350350
]);
351351

352352
// rename

0 commit comments

Comments
 (0)