Add blank line to EOL. No trailing spaces.
This commit is contained in:
@@ -50,4 +50,4 @@ class ComponentController extends DingoController {
|
||||
public function postComponents() {
|
||||
return $this->component->create($this->auth->user()->id, Input::all());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -88,4 +88,4 @@ class IncidentController extends DingoController {
|
||||
App::abort(404, $incident->getErrors()->first());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,4 +73,4 @@ class MetricController extends DingoController {
|
||||
App::abort(404, $metric->getErrors()->first());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,4 +20,4 @@ class ComponentTransformer extends TransformerAbstract {
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ use League\Fractal\TransformerAbstract;
|
||||
class IncidentTransformer extends TransformerAbstract {
|
||||
|
||||
public function transform(Incident $incident) {
|
||||
|
||||
|
||||
$component = $incident->parent;
|
||||
$transformer = $component->getTransformer();
|
||||
|
||||
@@ -23,4 +23,4 @@ class IncidentTransformer extends TransformerAbstract {
|
||||
'updated_at' => $incident->updated_at->timestamp,
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,5 +18,5 @@ class MetricTransformer extends TransformerAbstract {
|
||||
'updated_at' => $metric->updated_at->timestamp,
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -21,4 +21,4 @@ class AuthController extends Controller {
|
||||
|
||||
return Redirect::to('/');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,4 +8,4 @@ class HomeController extends Controller {
|
||||
public function showIndex() {
|
||||
return View::make('index', ['components' => Component::all()]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,4 +24,4 @@ class RSSController extends Controller {
|
||||
'Content-Type' => 'text/xml'
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,4 +45,4 @@ class SetupController extends Controller {
|
||||
return Redirect::back()->withInput()->with('errors', $v->messages());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,4 +10,4 @@ class NoSetupFilter {
|
||||
} catch (Exception $e) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,4 +37,4 @@ class Component extends Eloquent implements \Dingo\Api\Transformer\Transformable
|
||||
public function getTransformer() {
|
||||
return new CachetHQ\Cachet\Transformers\ComponentTransformer();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
use Watson\Validating\ValidatingTrait;
|
||||
|
||||
class Incident extends Eloquent implements \Dingo\Api\Transformer\TransformableInterface {
|
||||
|
||||
|
||||
use ValidatingTrait;
|
||||
use Illuminate\Database\Eloquent\SoftDeletingTrait;
|
||||
|
||||
@@ -57,4 +57,4 @@ class Incident extends Eloquent implements \Dingo\Api\Transformer\TransformableI
|
||||
public function getTransformer() {
|
||||
return new CachetHQ\Cachet\Transformers\IncidentTransformer();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,4 +18,4 @@ class IncidentTemplate extends Eloquent {
|
||||
$template->slug = Str::slug($template->name);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,4 +29,4 @@ class Metric extends Eloquent implements \Dingo\Api\Transformer\TransformableInt
|
||||
public function getTransformer() {
|
||||
return new CachetHQ\Cachet\Transformers\MetricTransformer();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
class MetricPoint extends Eloquent {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,4 +18,4 @@ class Service extends Eloquent {
|
||||
public function setPropertiesAttribute($properties) {
|
||||
$this->attributes['properties'] = json_encode($properties);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,4 +39,4 @@ class Setting extends Eloquent {
|
||||
sprintf('Unknown setting %s', $setting)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,4 +12,4 @@ class Subscriber extends Eloquent {
|
||||
];
|
||||
|
||||
protected $fillable = ['email'];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,4 +23,4 @@ class User extends Eloquent implements UserInterface, RemindableInterface {
|
||||
*/
|
||||
protected $hidden = ['password', 'remember_token'];
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -114,4 +114,4 @@ class WebHook extends Eloquent {
|
||||
|
||||
return $requestMethod;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,4 +4,4 @@ class WebHookResponse extends Eloquent {
|
||||
public function hook() {
|
||||
return $this->belongsTo('WebHook', 'id', 'hook_id');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,4 +5,4 @@ Route::model('incident', 'Incident');
|
||||
Route::model('incident_template', 'IncidentTemplate');
|
||||
Route::model('setting', 'Setting');
|
||||
Route::model('webhook', 'WebHook');
|
||||
Route::model('user', 'User');
|
||||
Route::model('user', 'User');
|
||||
|
||||
@@ -20,4 +20,4 @@ Route::api(['version' => 'v1', 'prefix' => 'api', 'namespace' => 'CachetHQ\Cache
|
||||
Route::put('metrics/{id}', 'MetricController@putMetric');
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
@@ -21,4 +21,4 @@ Route::group(['before' => 'auth'], function() {
|
||||
Route::get('/auth/logout', 'AuthController@logoutAction');
|
||||
});
|
||||
|
||||
Route::get('/rss', 'RSSController@feedAction');
|
||||
Route::get('/rss', 'RSSController@feedAction');
|
||||
|
||||
Reference in New Issue
Block a user