From 6d87f6ecb0bb9a6164d0609be544075c0a2d836b Mon Sep 17 00:00:00 2001 From: Guille Date: Fri, 8 Jul 2016 00:50:46 +0200 Subject: [PATCH] refactor(DBMeter): --- src/plugins/dbmeter.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/plugins/dbmeter.ts b/src/plugins/dbmeter.ts index 3ef16c487..05471fffb 100644 --- a/src/plugins/dbmeter.ts +++ b/src/plugins/dbmeter.ts @@ -1,5 +1,7 @@ -import {Plugin, Cordova} from './plugin'; -import {Observable} from 'rxjs/Observable'; +import { Cordova, Plugin } from './plugin'; +import { Observable } from 'rxjs/Observable'; + + /** * @name DB Meter * @description This plugin defines a global DBMeter object, which permits to get the decibel values from the microphone. @@ -45,27 +47,27 @@ export class DBMeter { observable: true, clearFunction: 'stop' }) - static start (): Observable {return; } + static start(): Observable { return; } /** * Stops listening * @private */ @Cordova() - static stop (): Promise {return; } + static stop(): Promise { return; } /** * Check if the DB Meter is listening * @return {Promise} Returns a promise that resolves with a boolean that tells us whether the DB meter is listening */ @Cordova() - static isListening(): Promise {return; } + static isListening(): Promise { return; } /** * Delete the DB Meter instance * @return {Promise} Returns a promise that will resolve if the instance has been deleted, and rejects if errors occur. */ @Cordova() - static delete(): Promise {return; } + static delete(): Promise { return; } }