Indent classes one level

This commit is contained in:
James Brooks
2014-11-24 18:56:41 +00:00
parent 98fd7a3790
commit 72314e40b5

View File

@@ -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');
}
}
}