Completed
Branch master (e5db64)
by Schlaefer
09:02
created
app/Plugin/Stopwatch/Lib/Stopwatch.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -100,10 +100,10 @@  discard block
 block discarded – undo
100 100
 
101 101
 		switch ($event) {
102 102
 			case 'start':
103
-				$x = '* ' . $x;
103
+				$x = '* '.$x;
104 104
 				break;
105 105
 			case 'stop':
106
-				$x = '† ' . $x;
106
+				$x = '† '.$x;
107 107
 				break;
108 108
 		}
109 109
 
@@ -143,13 +143,13 @@  discard block
 block discarded – undo
143 143
 		self::start('now');
144 144
 
145 145
 		$out = "";
146
-		$out .= 'Time to Cake: ' . sprintf('%05.3f', self::_timeToCake()) . " s\n";
147
-		$out .= 'Cake bootstrap: ' . sprintf('%05.3f', self::_timeFromCakeToStopwatch()) . " s\n";
146
+		$out .= 'Time to Cake: '.sprintf('%05.3f', self::_timeToCake())." s\n";
147
+		$out .= 'Cake bootstrap: '.sprintf('%05.3f', self::_timeFromCakeToStopwatch())." s\n";
148 148
 
149 149
 		$out .= "W\tU\tW_delta\tU_delta\tMem [MB]\n";
150 150
 		$_seriesIndex = 1;
151 151
 		foreach (self::$_events as $k => $v) {
152
-			$out .= '<span id="stopwatch-' . $_seriesIndex++ . '" class="stopwatch-row">';
152
+			$out .= '<span id="stopwatch-'.$_seriesIndex++.'" class="stopwatch-row">';
153 153
 			$out .= sprintf("%05.3f\t%05.3f\t%05.3f\t%05.3f\t%5.1f\t%s\n",
154 154
 				$v['wtime'],
155 155
 				$v['utime'],
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 				$k);
197 197
 		}
198 198
 
199
-		$out .= "\n\n" . self::printStatistic();
199
+		$out .= "\n\n".self::printStatistic();
200 200
 
201 201
 		return $out;
202 202
 	}
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
 	}
239 239
 
240 240
 	public static function printStatistic() {
241
-		return self::$_stopwatchCalls . " calls with ca " . sprintf("%05.3f", self::$_stopwatchTime) . ' sec overhead.';
241
+		return self::$_stopwatchCalls." calls with ca ".sprintf("%05.3f", self::$_stopwatchTime).' sec overhead.';
242 242
 	}
243 243
 
244 244
 	public static function getWallTime($divider = null) {
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
 		self::end('getWallTime()');
259 259
 		$time = self::$_events[count(self::$_events) - 1]['wtime'] +
260 260
 			self::_timeToStopwatch();
261
-		return number_format( $time, 3, $decimal, $thousand);
261
+		return number_format($time, 3, $decimal, $thousand);
262 262
 	}
263 263
 
264 264
 /**
Please login to merge, or discard this patch.
app/Plugin/MailObfuscator/View/Helper/MailObfuscatorHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@
 block discarded – undo
13 13
 			if (empty($title) === false) {
14 14
 				$hasTitle = 1;
15 15
 			}
16
-			$rand = "moh_" . md5(mt_rand(1, 10000) . $addr);
16
+			$rand = "moh_".md5(mt_rand(1, 10000).$addr);
17 17
 			list($ttl, $dom) = explode('@', $addr);
18 18
 
19 19
 			// missing  style='unicode-bidi:bidi-override;direction:rtl;'
20
-			$mailto = '<a id="' . $rand . '" href="#" data-ttl="' . $ttl . '" data-dom="' . $dom . '">' . $title . '</a>';
20
+			$mailto = '<a id="'.$rand.'" href="#" data-ttl="'.$ttl.'" data-dom="'.$dom.'">'.$title.'</a>';
21 21
 			$mailto .= '<noscript><p>[You need to have Javascript enabled to see this mail address.]</p></noscript>';
22 22
 			$mailto .= $this->Html->scriptBlock(
23 23
 				"$(function(){
Please login to merge, or discard this patch.
app/Plugin/SaitoHelp/Model/Datasource/SaitoHelpSource.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
 		public function resolveKey(Model $model, $key) {
34 34
 			if (strpos('.', $key) === false) {
35
-				return $model->alias . '.' . $key;
35
+				return $model->alias.'.'.$key;
36 36
 			}
37 37
 			return $key;
38 38
 		}
@@ -60,9 +60,9 @@  discard block
 block discarded – undo
60 60
 			if ($plugin) {
61 61
 				$folderPath = CakePlugin::path($plugin);
62 62
 			} else {
63
-				$folderPath = ROOT . DS;
63
+				$folderPath = ROOT.DS;
64 64
 			}
65
-			$folderPath .= 'docs' . DS . 'help' . DS . $lang;
65
+			$folderPath .= 'docs'.DS.'help'.DS.$lang;
66 66
 
67 67
 			$folder = new Folder($folderPath);
68 68
 			$files = $folder->find("$id(-.*?)?\.md");
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 				return false;
71 71
 			}
72 72
 			$name = $files[0];
73
-			$file = new File($folderPath . DS . $name, false, 0444);
73
+			$file = new File($folderPath.DS.$name, false, 0444);
74 74
 			$text = $file->read();
75 75
 			$file->close();
76 76
 			$result = [
Please login to merge, or discard this patch.
app/Plugin/M/Lib/MCacheSupportCachelet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 	class MCacheSupportCachelet extends CacheSupportCachelet {
6 6
 
7 7
 		public function clear($id = null) {
8
-			touch(CakePlugin::path('M') . 'webroot/touch.txt');
8
+			touch(CakePlugin::path('M').'webroot/touch.txt');
9 9
 		}
10 10
 
11 11
 	}
12 12
\ No newline at end of file
Please login to merge, or discard this patch.
app/Plugin/Detectors/Controller/Component/DetectorsComponent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
 			if ($this->_isBot === null) {
96 96
 				$agent = env('HTTP_USER_AGENT');
97 97
 				$imploded = implode('|', $this->_bots);
98
-				$this->_isBot = (bool)preg_match('/' . $imploded . '/i', $agent);
98
+				$this->_isBot = (bool) preg_match('/'.$imploded.'/i', $agent);
99 99
 			}
100 100
 			return $this->_isBot;
101 101
 		}
Please login to merge, or discard this patch.
app/Plugin/Cron/Lib/Cron.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
 				}
62 62
 				$jobsExecuted++;
63 63
 				$job->execute();
64
-				$this->_log('Run cron-job ' . $job->uid);
64
+				$this->_log('Run cron-job '.$job->uid);
65 65
 				$this->_lastRuns[$job->due][$job->uid] = $this->_now;
66 66
 			}
67 67
 			if ($jobsExecuted === 0) {
Please login to merge, or discard this patch.
app/Plugin/Sitemap/Test/Case/Controller/SitemapsControllerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 			$result = $this->testAction('/sitemaps/index.xml',
37 37
 					['method' => 'GET', 'return' => 'contents']);
38 38
 			$baseUrl = $this->controller->base;
39
-			$this->assertContains($baseUrl . '/sitemaps/file/sitemap-entries-1-20000.xml',
39
+			$this->assertContains($baseUrl.'/sitemaps/file/sitemap-entries-1-20000.xml',
40 40
 					$result);
41 41
 		}
42 42
 
Please login to merge, or discard this patch.
app/Plugin/Sitemap/View/Helper/SitemapHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 	class SitemapHelper extends AppHelper {
6 6
 
7 7
 		public function sitemapUrl() {
8
-			return $this->baseUrl() . 'sitemap.xml';
8
+			return $this->baseUrl().'sitemap.xml';
9 9
 		}
10 10
 
11 11
 		public function baseUrl() {
Please login to merge, or discard this patch.
app/Plugin/Sitemap/Lib/SitemapEntries.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
 					$changefreq = 'hourly';
89 89
 				}
90 90
 				$urls[] = [
91
-						'loc' => 'entries/view/' . $entry['Entry']['id'],
91
+						'loc' => 'entries/view/'.$entry['Entry']['id'],
92 92
 						'lastmod' => Date('c', $lastmod),
93 93
 						'changefreq' => $changefreq
94 94
 				];
Please login to merge, or discard this patch.