Completed
Push — master ( 17db14...c24d7d )
by max
09:03
created
config/module.config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 
13 13
     'view_manager' => [
14 14
         'template_path_stack' => [
15
-            __DIR__ . '/../view',
15
+            __DIR__.'/../view',
16 16
         ],
17 17
     ],
18 18
 ];
Please login to merge, or discard this patch.
src/Config.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     private function prepareLogDirectory($logDirectory)
88 88
     {
89 89
         if (empty($logDirectory)) {
90
-            $logDirectory = getcwd() . '/data';
90
+            $logDirectory = getcwd().'/data';
91 91
         }
92 92
 
93 93
         $logDirectory = rtrim($logDirectory, '/');
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     public function getScriptPath()
147 147
     {
148 148
         if (!$this->scriptPath) {
149
-            $this->scriptPath = getcwd() . DIRECTORY_SEPARATOR  . 'public' . DIRECTORY_SEPARATOR;
149
+            $this->scriptPath = getcwd().DIRECTORY_SEPARATOR.'public'.DIRECTORY_SEPARATOR;
150 150
         }
151 151
         return $this->scriptPath;
152 152
     }
Please login to merge, or discard this patch.
src/Resolver/ArrayResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
      */
84 84
     private function assembleShellJobString($command)
85 85
     {
86
-        return $this->phpPath . ' ' . $this->scriptPath . $command;
86
+        return $this->phpPath.' '.$this->scriptPath.$command;
87 87
     }
88 88
 
89 89
     /**
Please login to merge, or discard this patch.
src/Log/TextFile.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -43,14 +43,14 @@  discard block
 block discarded – undo
43 43
 
44 44
         $message = '';
45 45
         if ($isSuccessful) {
46
-            $message .= sprintf('[%s] Job processed successful', date('Y-m-d H:i:s')) . PHP_EOL;
46
+            $message .= sprintf('[%s] Job processed successful', date('Y-m-d H:i:s')).PHP_EOL;
47 47
         } else {
48
-            $message .= sprintf('[%s] Job fail', date('Y-m-d H:i:s')) . PHP_EOL;
48
+            $message .= sprintf('[%s] Job fail', date('Y-m-d H:i:s')).PHP_EOL;
49 49
         }
50 50
 
51
-        $message .= '  Start: ' . date('Y-m-d H:i:s', $startTime) . PHP_EOL;
52
-        $message .= '  End: ' . date('Y-m-d H:i:s', $endTime) . PHP_EOL;
53
-        $message .= '  Execution time: ' . $this->getExecutionTime($startTime, $endTime) . PHP_EOL;
51
+        $message .= '  Start: '.date('Y-m-d H:i:s', $startTime).PHP_EOL;
52
+        $message .= '  End: '.date('Y-m-d H:i:s', $endTime).PHP_EOL;
53
+        $message .= '  Execution time: '.$this->getExecutionTime($startTime, $endTime).PHP_EOL;
54 54
         $message .= $this->prepareOutput($output);
55 55
         $message .= $this->prepareError($error);
56 56
         $message .= PHP_EOL;
@@ -66,9 +66,9 @@  discard block
 block discarded – undo
66 66
     private function getExecutionTime($startTime, $endTime)
67 67
     {
68 68
         $executionTime = $endTime - $startTime;
69
-        $days = floor($executionTime / 3600*24);
70
-        $hours = floor(($executionTime - ($days*3600*24)) / 3600);
71
-        $minutes = floor(($executionTime - ($hours*3600)) / 60);
69
+        $days = floor($executionTime / 3600 * 24);
70
+        $hours = floor(($executionTime - ($days * 3600 * 24)) / 3600);
71
+        $minutes = floor(($executionTime - ($hours * 3600)) / 60);
72 72
         $secs = floor($executionTime % 60);
73 73
 
74 74
         $executionTimeText = '';
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             return;
102 102
         }
103 103
 
104
-        return '--Output: ' . PHP_EOL . implode('', $output) . PHP_EOL . '--End output.' . PHP_EOL;
104
+        return '--Output: '.PHP_EOL.implode('', $output).PHP_EOL.'--End output.'.PHP_EOL;
105 105
     }
106 106
 
107 107
     /**
@@ -114,6 +114,6 @@  discard block
 block discarded – undo
114 114
             return;
115 115
         }
116 116
 
117
-        return '--Error: ' . PHP_EOL . implode('', $error) . PHP_EOL . '--End error.' . PHP_EOL;
117
+        return '--Error: '.PHP_EOL.implode('', $error).PHP_EOL.'--End error.'.PHP_EOL;
118 118
     }
119 119
 }
Please login to merge, or discard this patch.
src/Service/CronService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,13 +66,13 @@
 block discarded – undo
66 66
 
67 67
     protected function assembleErrorString()
68 68
     {
69
-        $string = 'Jobs: ' . PHP_EOL;
69
+        $string = 'Jobs: '.PHP_EOL;
70 70
         $i = 1;
71 71
         foreach ($this->cron->getExecutor()->getRunningJobs() as $job) {
72
-            $string .= $i . '. ' . $job->getProcess()->getCommandLine() . PHP_EOL;
72
+            $string .= $i.'. '.$job->getProcess()->getCommandLine().PHP_EOL;
73 73
             $i++;
74 74
         }
75 75
 
76
-        return $string . ' have taken over ' . $this->timeout . ' seconds to execute.';
76
+        return $string.' have taken over '.$this->timeout.' seconds to execute.';
77 77
     }
78 78
 }
Please login to merge, or discard this patch.
src/Module.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 {
15 15
     public function getConfig($env = null)
16 16
     {
17
-        return include dirname(__DIR__) . '/config/module.config.php';
17
+        return include dirname(__DIR__).'/config/module.config.php';
18 18
     }
19 19
 
20 20
     public function getAutoloaderConfig()
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
         return [
23 23
             'Zend\Loader\StandardAutoloader' => [
24 24
                 'namespaces' => [
25
-                    __NAMESPACE__ => dirname(__DIR__) . '/src/' . __NAMESPACE__,
25
+                    __NAMESPACE__ => dirname(__DIR__).'/src/'.__NAMESPACE__,
26 26
                 ],
27 27
             ],
28 28
         ];
Please login to merge, or discard this patch.