Completed
Push — master ( 5102a1...279170 )
by Joao
01:51
created
src/Daemonize.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -49,9 +49,9 @@  discard block
 block discarded – undo
49 49
             )
50 50
         );
51 51
 
52
-		set_error_handler(function($number, $error){
53
-			throw new \Exception($error);
54
-		});
52
+        set_error_handler(function($number, $error){
53
+            throw new \Exception($error);
54
+        });
55 55
         file_put_contents("/etc/init.d/$svcName", $templateStr);
56 56
         shell_exec("chmod a+x /etc/init.d/$svcName");
57 57
         restore_error_handler();
@@ -80,9 +80,9 @@  discard block
 block discarded – undo
80 80
 
81 81
     protected static function isDaemonizeService($filename)
82 82
     {
83
-		set_error_handler(function($number, $error){
84
-			throw new \Exception($error);
85
-		});
83
+        set_error_handler(function($number, $error){
84
+            throw new \Exception($error);
85
+        });
86 86
 
87 87
         $contents = file_get_contents($filename);
88 88
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             )
50 50
         );
51 51
 
52
-		set_error_handler(function($number, $error){
52
+		set_error_handler(function($number, $error) {
53 53
 			throw new \Exception($error);
54 54
 		});
55 55
         file_put_contents("/etc/init.d/$svcName", $templateStr);
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
     public static function uninstall($svcName)
63 63
     {
64
-        $filename ="/etc/init.d/$svcName";
64
+        $filename = "/etc/init.d/$svcName";
65 65
 
66 66
         if (!file_exists($filename))
67 67
         {
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
     protected static function isDaemonizeService($filename)
82 82
     {
83
-		set_error_handler(function($number, $error){
83
+		set_error_handler(function($number, $error) {
84 84
 			throw new \Exception($error);
85 85
 		});
86 86
 
Please login to merge, or discard this patch.
src/Runner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
                 }
102 102
             } catch (Exception $ex) {
103 103
                 $this->writeToStderr(date('c') . ' [' . get_class($ex) . '] in ' . $ex->getFile() . ' at line ' . $ex->getLine() . ' -- ' . "\n");
104
-                $this->writeToStderr('Message: '. $ex->getMessage() . "\n");
104
+                $this->writeToStderr('Message: ' . $ex->getMessage() . "\n");
105 105
                 $this->writeToStderr("Stack Trace:\n" . $ex->getTraceAsString());
106 106
                 $this->writeToStderr("\n\n");
107 107
             }
Please login to merge, or discard this patch.