Styleguide fix

This commit is contained in:
Sebastián Katzer 2013-08-11 11:35:40 +02:00
parent 7b1d54661f
commit 02e69c5443

View File

@ -16,7 +16,8 @@
* Is printing available. * Is printing available.
* Callback returns true/false if printing is available/unavailable. * Callback returns true/false if printing is available/unavailable.
*/ */
- (void) isServiceAvailable:(CDVInvokedUrlCommand*)command { - (void) isServiceAvailable:(CDVInvokedUrlCommand*)command
{
CDVPluginResult *pluginResult = nil; CDVPluginResult *pluginResult = nil;
pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK
@ -29,7 +30,8 @@
* Öffnet den Drucker-Kontroller zur Auswahl des Druckers. * Öffnet den Drucker-Kontroller zur Auswahl des Druckers.
* Callback gibt Meta-Informationen an. * Callback gibt Meta-Informationen an.
*/ */
- (void) print:(CDVInvokedUrlCommand*)command { - (void) print:(CDVInvokedUrlCommand*)command
{
NSArray *arguments = [command arguments]; NSArray *arguments = [command arguments];
CDVPluginResult *pluginResult = nil; CDVPluginResult *pluginResult = nil;
@ -80,7 +82,8 @@
* *
* @param {NSString} content Der zu druckende Inhalt * @param {NSString} content Der zu druckende Inhalt
*/ */
- (UIPrintInteractionController *) prepareController:(NSString *)content { - (UIPrintInteractionController *) prepareController:(NSString *)content
{
UIPrintInteractionController *controller = [UIPrintInteractionController sharedPrintController]; UIPrintInteractionController *controller = [UIPrintInteractionController sharedPrintController];
//Set the priner settings //Set the priner settings
@ -108,7 +111,8 @@
/** /**
* Überprüft, ob der Drucker-Dienst verfügbar ist. * Überprüft, ob der Drucker-Dienst verfügbar ist.
*/ */
- (BOOL) isPrintServiceAvailable { - (BOOL) isPrintServiceAvailable
{
Class printController = NSClassFromString(@"UIPrintInteractionController"); Class printController = NSClassFromString(@"UIPrintInteractionController");
if (printController) { if (printController) {
@ -117,7 +121,6 @@
return (controller != nil) && [UIPrintInteractionController isPrintingAvailable]; return (controller != nil) && [UIPrintInteractionController isPrintingAvailable];
} }
return NO; return NO;
} }