Indent classes one level
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
<?php
|
||||
|
||||
class ApiController extends Dingo\Api\Routing\Controller{
|
||||
class ApiController extends Dingo\Api\Routing\Controller{
|
||||
|
||||
public function getComponents() {
|
||||
return Component::all();
|
||||
}
|
||||
|
||||
public function getComponent($id) {
|
||||
$component = Component::find($id);
|
||||
if ($component) {
|
||||
return $component;
|
||||
} else {
|
||||
App::abort(404, 'Component not found');
|
||||
public function getComponents() {
|
||||
return Component::all();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
public function getComponent($id) {
|
||||
$component = Component::find($id);
|
||||
if ($component) {
|
||||
return $component;
|
||||
} else {
|
||||
App::abort(404, 'Component not found');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user