Completed
Push — master ( e5dfeb...2f07f9 )
by Jan
18:05
created
src/DI/DoctrineExtension.php 1 patch
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -104,32 +104,32 @@  discard block
 block discarded – undo
104 104
 		$name = $config['prefix'];
105 105
 
106 106
 
107
-		$builder->addDefinition($name . ".resolver")
107
+		$builder->addDefinition($name.".resolver")
108 108
 				->setClass('\Doctrine\ORM\Tools\ResolveTargetEntityListener');
109 109
 
110
-		$builder->addDefinition($name . ".naming")
110
+		$builder->addDefinition($name.".naming")
111 111
 				->setClass('\Doctrine\ORM\Mapping\UnderscoreNamingStrategy');
112 112
 
113
-		$builder->addDefinition($name . ".config")
113
+		$builder->addDefinition($name.".config")
114 114
 				->setClass('\Doctrine\ORM\Configuration')
115 115
 				->addSetup(new Statement('setFilterSchemaAssetsExpression', [$config['dbal']['schema_filter']]));
116 116
 
117 117
 
118
-		$builder->addDefinition($name . ".connection")
118
+		$builder->addDefinition($name.".connection")
119 119
 				->setClass('\Doctrine\DBAL\Connection')
120
-				->setFactory('@' . $name . '.entityManager::getConnection');
120
+				->setFactory('@'.$name.'.entityManager::getConnection');
121 121
 
122 122
 
123
-		$builder->addDefinition($name . ".entityManager")
123
+		$builder->addDefinition($name.".entityManager")
124 124
 				->setClass('\Doctrine\ORM\EntityManager')
125 125
 				->setFactory('\Doctrine\ORM\EntityManager::create', [
126 126
 						$config['connection'],
127
-						'@' . $name . '.config',
127
+						'@'.$name.'.config',
128 128
 						'@Doctrine\Common\EventManager'
129 129
 				]);
130 130
 
131 131
 		if ($this->hasIBarPanelInterface()) {
132
-			$builder->addDefinition($this->prefix($name . '.diagnosticsPanel'))
132
+			$builder->addDefinition($this->prefix($name.'.diagnosticsPanel'))
133 133
 					->setClass(self::DOCTRINE_SQL_PANEL_FQN);
134 134
 		}
135 135
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 
146 146
 		$cache = $this->getCache($name, $builder);
147 147
 
148
-		$configService = $builder->getDefinition($name . ".config")
148
+		$configService = $builder->getDefinition($name.".config")
149 149
 				->setFactory('\Doctrine\ORM\Tools\Setup::createAnnotationMetadataConfiguration', [
150 150
 						array_values($this->entitySources),
151 151
 						$config['debug'],
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 						$cache,
154 154
 						FALSE
155 155
 				])
156
-				->addSetup('setNamingStrategy', ['@' . $name . '.naming']);
156
+				->addSetup('setNamingStrategy', ['@'.$name.'.naming']);
157 157
 
158 158
 
159 159
 		foreach ($config['functions'] as $functionName => $function) {
@@ -168,22 +168,22 @@  discard block
 block discarded – undo
168 168
 
169 169
 
170 170
 		foreach ($this->classMappings as $source => $target) {
171
-			$builder->getDefinition($name . '.resolver')
171
+			$builder->getDefinition($name.'.resolver')
172 172
 					->addSetup('addResolveTargetEntity', [
173 173
 							$source, $target, []
174 174
 					]);
175 175
 		}
176 176
 
177
-		if($this->hasEventManager($builder)) {
177
+		if ($this->hasEventManager($builder)) {
178 178
 			$builder->getDefinition($builder->getByType('Doctrine\Common\EventManager'))
179
-					->addSetup('addEventListener', [Events::loadClassMetadata, '@' . $name . '.resolver']);
179
+					->addSetup('addEventListener', [Events::loadClassMetadata, '@'.$name.'.resolver']);
180 180
 		} else {
181
-			if($config['ownEventManager']){
181
+			if ($config['ownEventManager']) {
182 182
 				throw new InvalidStateException("Where is your own EventManager?");
183 183
 			}
184
-			$builder->addDefinition($name . ".eventManager")
184
+			$builder->addDefinition($name.".eventManager")
185 185
 					->setClass('Doctrine\Common\EventManager')
186
-					->addSetup('addEventListener', [Events::loadClassMetadata, '@' . $name . '.resolver']);
186
+					->addSetup('addEventListener', [Events::loadClassMetadata, '@'.$name.'.resolver']);
187 187
 		}
188 188
 
189 189
 		$this->processDbalTypes($name, $config['dbal']['types']);
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
 	private function processDbalTypes($name, array $types)
199 199
 	{
200 200
 		$builder = $this->getContainerBuilder();
201
-		$connection = $builder->getDefinition($name . '.entityManager');
201
+		$connection = $builder->getDefinition($name.'.entityManager');
202 202
 
203 203
 		foreach ($types as $type => $typeSpec) {
204 204
 			if (is_array($typeSpec)) {
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
 	private function processDbalTypeOverrides($name, array $types)
223 223
 	{
224 224
 		$builder = $this->getContainerBuilder();
225
-		$entityManagerDefinition = $builder->getDefinition($name . '.entityManager');
225
+		$entityManagerDefinition = $builder->getDefinition($name.'.entityManager');
226 226
 
227 227
 		foreach ($types as $type => $className) {
228 228
 			$entityManagerDefinition->addSetup('Doctrine\DBAL\Types\Type::overrideType(?, ?);', [$type, $className]);
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 	{
235 235
 		$initialize = $class->methods['initialize'];
236 236
 		if ($this->hasIBarPanelInterface()) {
237
-			$initialize->addBody('$this->getByType(\'' . self::DOCTRINE_SQL_PANEL_FQN . '\')->bindToBar();');
237
+			$initialize->addBody('$this->getByType(\''.self::DOCTRINE_SQL_PANEL_FQN.'\')->bindToBar();');
238 238
 		}
239 239
 	}
240 240
 
@@ -250,8 +250,8 @@  discard block
 block discarded – undo
250 250
 
251 251
 	private function addHelpersToKdybyConsole(ContainerBuilder $builder)
252 252
 	{
253
-		if(class_exists(self::KDYBY_CONSOLE_EXTENSION)){
254
-			$helperTag = constant(self::KDYBY_CONSOLE_EXTENSION . '::HELPER_TAG');
253
+		if (class_exists(self::KDYBY_CONSOLE_EXTENSION)) {
254
+			$helperTag = constant(self::KDYBY_CONSOLE_EXTENSION.'::HELPER_TAG');
255 255
 			$builder->addDefinition($this->prefix('helper.entityManager'))
256 256
 					->setClass('Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper')
257 257
 					->addTag($helperTag, 'em');
@@ -269,13 +269,13 @@  discard block
 block discarded – undo
269 269
 		return strlen($builder->getByType('Doctrine\Common\EventManager')) > 0;
270 270
 	}
271 271
 
272
-	private function getCache($prefix, ContainerBuilder $builder){
273
-		if(strlen($builder->getByType('Doctrine\Common\Cache\Cache')) > 0){
274
-			return '@' . $builder->getByType('Doctrine\Common\Cache\Cache');
272
+	private function getCache($prefix, ContainerBuilder $builder) {
273
+		if (strlen($builder->getByType('Doctrine\Common\Cache\Cache')) > 0) {
274
+			return '@'.$builder->getByType('Doctrine\Common\Cache\Cache');
275 275
 		} else {
276
-			$builder->addDefinition($prefix . ".cache")
276
+			$builder->addDefinition($prefix.".cache")
277 277
 				->setClass(self::DOCTRINE_DEFAULT_CACHE);
278
-			return '@' . $prefix . ".cache";
278
+			return '@'.$prefix.".cache";
279 279
 		}
280 280
 	}
281 281
 }
Please login to merge, or discard this patch.
src/Debug/DoctrineSQLPanel.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
 use Doctrine\ORM\Cache\Logging\CacheLoggerChain;
14 14
 use Doctrine\ORM\Cache\Logging\StatisticsCacheLogger;
15 15
 use Doctrine\ORM\EntityManager;
16
-use Lekarna\Application\Debug\DebugHelper;
17 16
 use Lekarna\Doctrine\Cache\RedisCache;
18 17
 use Nette\Database\Helpers;
19 18
 use Nette\InvalidStateException;
Please login to merge, or discard this patch.
Spacing   +22 added lines, -23 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 			$params = $this->queries[$key][self::DATA_INDEX_PARAMS];
147 147
 			$types = $this->queries[$key][self::DATA_INDEX_TYPES];
148 148
 
149
-			$stmt = $this->connection->executeQuery('EXPLAIN ' . $query, $params, $types);
149
+			$stmt = $this->connection->executeQuery('EXPLAIN '.$query, $params, $types);
150 150
 
151 151
 			$this->queries[$key][self::DATA_INDEX_EXPLAIN] = $stmt->fetchAll();
152 152
 
@@ -164,8 +164,8 @@  discard block
 block discarded – undo
164 164
 			// @codingStandardsIgnoreStart
165 165
 			. '<img  src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAKT2lDQ1BQaG90b3Nob3AgSUNDIH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8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAJcEhZcwAALiMAAC4jAXilP3YAAAAHdElNRQffCxUPDinoxmA5AAABO1BMVEUAAADjcTnqakDwgzrxgz7ziDv1gz72iUD5hz35iD75iT7/gAD/gED/gEf/gID/iz25VS33hDv3iUjngzf/hT7xgTz3hj31gTz8iTv4hj7tfTr5hj77ij78iT73hj36iD37hkD8iT35hz77hz77iT73hj36hz76hz/6hz76iD79iD/2hTz7iD75hz37iD76iD77iT75hz77iT75iD78ij/6iT/6iT74hz73hj37hz33hj30hD31gDb1gjj1gjn1hDr1hDv1hTz1hT31iEP1iUP2hT32hT72hj32i0b2lVX3hTr3hj33hz73k1L3mFz3mV33ml73m1/3nGP4hjz4hz74n2X4oGf4qXf4sYL5hz76iD781bz83cr849H96dz969/+7uT+8+v+8+3+9O7+9/H++PT//Pv//v7///+xeeLXAAAAO3RSTlMAAAAAAAAAAAAAAAAAAAAAAgUGBw0QEBERFBUZHR4fKSotP0RKW15lc32GlaWsydvo6err6+z2+vv8/YuXaogAAAABYktHRGjLbPQiAAAAuklEQVQYGQXBhyIVABQA0FNkr6zsGTKzZT83e5Vsks39/y/oHFD7ZbC+HADMLU82qgRQaSpivsUHAGVtCxE37aoBRRrGI+K6B1BhZGntVyHisB8wtBOX+bq7EWfdxfjUfBPx8yHf9wrxHfTF6vHvk5fMP4UfdTAafzMzM3NzqwsG4ur56fEt837loAk6D6Kwfp75by1moMpExEXmXcTOMPB5No7yNmJ7TA3g2+Lp/vX0VyWAUjp6W/mI/zsxJP3EcQMdAAAAAElFTkSuQmCC" />'
166 166
 			// @codingStandardsIgnoreEnd
167
-			. count($this->queries) . ' queries'
168
-			. ($this->totalTime ? ' / ' . sprintf('%0.1f', $this->totalTime * 1000) . 'ms' : '')
167
+			. count($this->queries).' queries'
168
+			. ($this->totalTime ? ' / '.sprintf('%0.1f', $this->totalTime * 1000).'ms' : '')
169 169
 			. '</span>';
170 170
 	}
171 171
 
@@ -189,16 +189,15 @@  discard block
 block discarded – undo
189 189
 			$s .= $this->processQuery($query);
190 190
 		}
191 191
 
192
-		return empty($this->queries) ? '' :
193
-			$this->renderStyles() .
194
-			'<h1>Queries: ' . count($this->queries) .
195
-			($this->totalTime ? ', time: ' . sprintf('%0.3f', $this->totalTime * 1000) . ' ms' : '') .
192
+		return empty($this->queries) ? '' : $this->renderStyles().
193
+			'<h1>Queries: '.count($this->queries).
194
+			($this->totalTime ? ', time: '.sprintf('%0.3f', $this->totalTime * 1000).' ms' : '').
196 195
 			'</h1>
197 196
 			<div class="tracy-inner nette-Doctrine2Panel">
198
-			' . $this->renderPanelCacheStatistics() . '
197
+			' . $this->renderPanelCacheStatistics().'
199 198
 			<h2>Queries</h2>
200 199
 			<table>
201
-			<tr><th>Time&nbsp;ms</th><th>SQL</th><th>Params</th><th>Trace</th></tr>' . $s .
200
+			<tr><th>Time&nbsp;ms</th><th>SQL</th><th>Params</th><th>Trace</th></tr>' . $s.
202 201
 			'</table>
203 202
 			</div>';
204 203
 	}
@@ -252,41 +251,41 @@  discard block
 block discarded – undo
252 251
 	protected function processQuery(array $query)
253 252
 	{
254 253
 		$s = '<tr>';
255
-		$s .= '<td>' . sprintf('%0.3f', $query[self::DATA_INDEX_TIME] * 1000);
254
+		$s .= '<td>'.sprintf('%0.3f', $query[self::DATA_INDEX_TIME] * 1000);
256 255
 
257 256
 		if ($this->doExplains && isset($query[self::DATA_INDEX_EXPLAIN])) {
258 257
 			static $counter;
259 258
 			$counter++;
260
-			$s .= "<br /><a href='#' class='nette-toggler' rel='#nette-Doctrine2Panel-row-$counter'>" .
259
+			$s .= "<br /><a href='#' class='nette-toggler' rel='#nette-Doctrine2Panel-row-$counter'>".
261 260
 				"explain&nbsp;&#x25ba;</a>";
262 261
 		}
263 262
 
264 263
 		if (isset($query[self::DATA_INDEX_COUNT])) {
265
-			$s .= '/' . sprintf('%d', $query[self::DATA_INDEX_COUNT]);
264
+			$s .= '/'.sprintf('%d', $query[self::DATA_INDEX_COUNT]);
266 265
 		}
267 266
 		$s .= '</td>';
268 267
 
269
-		$s .= '<td class="nette-Doctrine2Panel-sql" style="min-width: 400px">' .
268
+		$s .= '<td class="nette-Doctrine2Panel-sql" style="min-width: 400px">'.
270 269
 			Helpers::dumpSql($query[self::DATA_INDEX_SQL]);
271 270
 
272 271
 		if ($this->doExplains && isset($query[self::DATA_INDEX_EXPLAIN])) {
273 272
 			$s .= "<table id='nette-Doctrine2Panel-row-$counter' class='nette-collapsed'><tr>";
274 273
 			foreach ($query[self::DATA_INDEX_EXPLAIN][0] as $col => $foo) {
275
-				$s .= '<th>' . htmlSpecialChars($col) . '</th>';
274
+				$s .= '<th>'.htmlSpecialChars($col).'</th>';
276 275
 			}
277 276
 			$s .= '</tr>';
278 277
 			foreach ($query[self::DATA_INDEX_EXPLAIN] as $row) {
279 278
 				$s .= '<tr>';
280 279
 				foreach ($row as $col) {
281
-					$s .= '<td>' . htmlSpecialChars($col) . '</td>';
280
+					$s .= '<td>'.htmlSpecialChars($col).'</td>';
282 281
 				}
283 282
 				$s .= '</tr>';
284 283
 			}
285 284
 			$s .= '</table>';
286 285
 		}
287 286
 		$s .= '</td>';
288
-		$s .= '<td>' . Dumper::toHtml($query[self::DATA_INDEX_PARAMS]) . '</td>';
289
-		$s .= '<td>' . Dumper::toHtml($query[self::DATA_INDEX_TRACE]) . '</td>';
287
+		$s .= '<td>'.Dumper::toHtml($query[self::DATA_INDEX_PARAMS]).'</td>';
288
+		$s .= '<td>'.Dumper::toHtml($query[self::DATA_INDEX_TRACE]).'</td>';
290 289
 		$s .= '</tr>';
291 290
 
292 291
 		return $s;
@@ -333,31 +332,31 @@  discard block
 block discarded – undo
333 332
 		$cacheDriver = $this->entityManager->getConfiguration()->getMetadataCacheImpl();
334 333
 		$driverInformation = get_class($cacheDriver);
335 334
 		if ($cacheDriver instanceof RedisCache) {
336
-			$driverInformation .= ', database: ' . $cacheDriver->getCurrentDatabase();
335
+			$driverInformation .= ', database: '.$cacheDriver->getCurrentDatabase();
337 336
 		}
338 337
 
339 338
 		return '<h2>Second Level Cache</h2>
340 339
 				<table>
341 340
 					<tr>
342 341
 						<td>Driver</td>
343
-						<td><strong>' . $driverInformation . '</strong></td>
342
+						<td><strong>' . $driverInformation.'</strong></td>
344 343
 					</tr>
345 344
 					<tr>
346 345
 						<td>Cache hits</td>
347 346
 						<td>
348
-							<strong class="nette-Doctrine2Panel-cache-green">' . $statistics->getHitCount() . '</strong>
347
+							<strong class="nette-Doctrine2Panel-cache-green">' . $statistics->getHitCount().'</strong>
349 348
 						</td>
350 349
 					</tr>
351 350
 					<tr>
352 351
 						<td>Cache misses</td>
353 352
 						<td>
354
-							<strong class="nette-Doctrine2Panel-cache-red">' . $statistics->getMissCount() . '</strong>
353
+							<strong class="nette-Doctrine2Panel-cache-red">' . $statistics->getMissCount().'</strong>
355 354
 						</td>
356 355
 					</tr>
357 356
 					<tr>
358 357
 						<td>Cache puts</td>
359 358
 						<td>
360
-							<strong class="nette-Doctrine2Panel-cache-red">' . $statistics->getPutCount() . '</strong>
359
+							<strong class="nette-Doctrine2Panel-cache-red">' . $statistics->getPutCount().'</strong>
361 360
 						</td>
362 361
 					</tr>
363 362
 				</table>';
@@ -404,7 +403,7 @@  discard block
 block discarded – undo
404 403
 	{
405 404
 		uasort(
406 405
 			$queries,
407
-			function ($a, $b) use ($key) {
406
+			function($a, $b) use ($key) {
408 407
 				if ($a[$key] === $b[$key]) {
409 408
 					return 0;
410 409
 				}
Please login to merge, or discard this patch.