Completed
Pull Request — master (#130)
by
unknown
11:05 queued 01:07
created
app/presenters/ProgramPresenter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 		$model = $this->getModel();
76 76
 		$data = $this->getHttpRequest()->getPost();
77 77
 
78
-		if (isset($data['backlink'])) {
78
+		if(isset($data['backlink'])) {
79 79
 			$this->setBacklink($data['backlink']);
80 80
 			unset($data['backlink']);		
81 81
 		}
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
 			Debugger::log('Destroying of program successfull, result: ' . json_encode($result), Debugger::INFO);
142 142
 			$this->flashMessage('Položka byla úspěšně smazána.', 'ok');
143 143
 		} catch(Exception $e) {
144
-			Debugger::log('Destroying of program failed, result: ' .  $e->getMessage(), Debugger::ERROR);
144
+			Debugger::log('Destroying of program failed, result: ' . $e->getMessage(), Debugger::ERROR);
145 145
 			$this->flashMessage('Smazání programu se nezdařilo, result: ' . $e->getMessage(), 'error');
146 146
 		}
147 147
 
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 			Debugger::log('Sending email to program tutor successfull, result: ' . json_encode($recipients) . ', ' . $tutors->guid, Debugger::INFO);
163 163
 			$this->flashMessage('Email lektorovi byl odeslán..', 'ok');
164 164
 		} catch(Exception $e) {
165
-			Debugger::log('Sending email to program tutor failed, result: ' .  $e->getMessage(), Debugger::ERROR);
165
+			Debugger::log('Sending email to program tutor failed, result: ' . $e->getMessage(), Debugger::ERROR);
166 166
 			$this->flashMessage('Email lektorovi nebyl odeslán, result: ' . $e->getMessage(), 'error');
167 167
 		}
168 168
 
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
 		$template->error_material = '';
224 224
 		$template->display_in_reg_checkbox = $this->renderHtmlCheckBox('display_in_reg', 0, 1);
225 225
 		$template->block_select = $this->getBlockModel()->renderHtmlSelect(null);
226
-		$template->selectedCategory	= null;
226
+		$template->selectedCategory = null;
227 227
 	}
228 228
 
229 229
 	/**
Please login to merge, or discard this patch.