Test Failed
Pull Request — master (#106)
by Litera
10:17
created
app/presenters/VisitorPresenter.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -99,10 +99,10 @@  discard block
 block discarded – undo
99 99
 			$guid = $this->getVisitorService()->create($postData);
100 100
 			$result = $this->sendRegistrationSummary($postData, $guid);
101 101
 
102
-			Debugger::log('Creation of visitor('. $guid .') successfull, result: ' . json_encode($result), Debugger::INFO);
102
+			Debugger::log('Creation of visitor(' . $guid . ') successfull, result: ' . json_encode($result), Debugger::INFO);
103 103
 			$this->flashMessage('Účastník(' . $guid . ') byl úspěšně vytvořen.', 'ok');
104 104
 		} catch(Exception $e) {
105
-			Debugger::log('Creation of visitor('. $guid .') failed, result: ' .  $e->getMessage(), Debugger::ERROR);
105
+			Debugger::log('Creation of visitor(' . $guid . ') failed, result: ' . $e->getMessage(), Debugger::ERROR);
106 106
 			$this->flashMessage('Creation of visitor failed, result: ' . $e->getMessage(), 'error');
107 107
 		}
108 108
 
@@ -126,10 +126,10 @@  discard block
 block discarded – undo
126 126
 
127 127
 			//$result = $this->sendRegistrationSummary($visitor, $guid);
128 128
 
129
-			Debugger::log('Modification of visitor('. $id .') successfull, result: ' . json_encode($result), Debugger::INFO);
129
+			Debugger::log('Modification of visitor(' . $id . ') successfull, result: ' . json_encode($result), Debugger::INFO);
130 130
 			$this->flashMessage('Účastník(' . $id . ') byl úspěšně upraven.', 'ok');
131 131
 		} catch(Exception $e) {
132
-			Debugger::log('Modification of visitor('. $id .') failed, result: ' .  $e->getMessage(), Debugger::ERROR);
132
+			Debugger::log('Modification of visitor(' . $id . ') failed, result: ' . $e->getMessage(), Debugger::ERROR);
133 133
 			$this->flashMessage('Modification of visitor failed, result: ' . $e->getMessage(), 'error');
134 134
 		}
135 135
 
@@ -145,10 +145,10 @@  discard block
 block discarded – undo
145 145
 		try {
146 146
 			$result = $this->getVisitorService()->delete($id);
147 147
 
148
-			Debugger::log('Destroying of visitor('. $id .') successfull, result: ' . json_encode($result), Debugger::INFO);
148
+			Debugger::log('Destroying of visitor(' . $id . ') successfull, result: ' . json_encode($result), Debugger::INFO);
149 149
 			$this->flashMessage('Položka byla úspěšně smazána', 'ok');
150 150
 		} catch(Exception $e) {
151
-			Debugger::log('Destroying of visitor('. $id .') failed, result: ' .  $e->getMessage(), Debugger::ERROR);
151
+			Debugger::log('Destroying of visitor(' . $id . ') failed, result: ' . $e->getMessage(), Debugger::ERROR);
152 152
 			$this->flashMessage('Destroying of visitor failed, result: ' . $e->getMessage(), 'error');
153 153
 		}
154 154
 
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 			Debugger::log('E-mail was send successfully, result: ' . json_encode($result), Debugger::INFO);
185 185
 			$this->flashMessage('E-mail byl úspěšně odeslán', 'ok');
186 186
 		} catch(Exception $e) {
187
-			Debugger::log('Sending of e-mail failed, result: ' .  $e->getMessage(), Debugger::ERROR);
187
+			Debugger::log('Sending of e-mail failed, result: ' . $e->getMessage(), Debugger::ERROR);
188 188
 			$this->flashMessage('Sending of e-mail failed, result: ' . $e->getMessage(), 'error');
189 189
 		}
190 190
 
@@ -245,10 +245,10 @@  discard block
 block discarded – undo
245 245
 	{
246 246
 		try {
247 247
 			$result = $this->getModel()->checked($id, '1');
248
-			Debugger::log('Check of visitor('. $id .') successfull, result: ' . json_encode($result), Debugger::INFO);
248
+			Debugger::log('Check of visitor(' . $id . ') successfull, result: ' . json_encode($result), Debugger::INFO);
249 249
 			$this->flashMessage('Položka byla úspěšně zkontrolována', 'ok');
250 250
 		} catch(Exception $e) {
251
-			Debugger::log('Check of visitor('. $id .') failed, result: ' .  $e->getMessage(), Debugger::ERROR);
251
+			Debugger::log('Check of visitor(' . $id . ') failed, result: ' . $e->getMessage(), Debugger::ERROR);
252 252
 			$this->flashMessage('Check of visitor failed, result: ' . $e->getMessage(), 'error');
253 253
 		}
254 254
 
@@ -265,10 +265,10 @@  discard block
 block discarded – undo
265 265
 	{
266 266
 		try {
267 267
 			$result = $this->getModel()->checked($id, 0);
268
-			Debugger::log('Uncheck of visitor('. $id .') successfull, result: ' . json_encode($result), Debugger::INFO);
268
+			Debugger::log('Uncheck of visitor(' . $id . ') successfull, result: ' . json_encode($result), Debugger::INFO);
269 269
 			$this->flashMessage('Položka byla nastavena jako nekontrolována', 'ok');
270 270
 		} catch(Exception $e) {
271
-			Debugger::log('Uncheck of visitor('. $id .') failed, result: ' .  $e->getMessage(), Debugger::ERROR);
271
+			Debugger::log('Uncheck of visitor(' . $id . ') failed, result: ' . $e->getMessage(), Debugger::ERROR);
272 272
 			$this->flashMessage('Uncheck of visitor failed, result: ' . $e->getMessage(), 'error');
273 273
 		}
274 274
 
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
 	protected function sendRegistrationSummary(array $visitor, $guid)
382 382
 	{
383 383
 		$recipient = [
384
-			$visitor['email'] => $visitor['name']. ' ' . $visitor['surname'],
384
+			$visitor['email'] => $visitor['name'] . ' ' . $visitor['surname'],
385 385
 		];
386 386
 
387 387
 		$code4bank = $this->getVisitorService()->calculateCode4Bank(
Please login to merge, or discard this patch.
app/models/BlockModel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
 
85 85
 		$htmlSelect = "<select style='width: 300px; font-size: 10px' name='block'>\n";
86 86
 
87
-		foreach($blocks as $block){
87
+		foreach($blocks as $block) {
88 88
 			if($block->id == $blockId) {
89 89
 				$selected = 'selected';
90 90
 			} else {
Please login to merge, or discard this patch.