Completed
Push — master ( 118c60...254398 )
by Litera
03:47
created
app/presenters/VisitorPresenter.php 3 patches
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 	/**
93 93
 	 * Process data from form
94 94
 	 *
95
-	 * @return void
95
+	 * @return boolean
96 96
 	 */
97 97
 	public function actionCreate($visitor)
98 98
 	{
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 	 * Process data from editing
115 115
 	 *
116 116
 	 * @param  integer 	$id
117
-	 * @return void
117
+	 * @return boolean
118 118
 	 */
119 119
 	public function actionUpdate($id, $visitor)
120 120
 	{
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 	}
190 190
 
191 191
 	/**
192
-	 * @param  integer|string $ids
192
+	 * @param  integer|string $id
193 193
 	 * @return void
194 194
 	 */
195 195
 	public function actionPay($id)
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 	}
219 219
 
220 220
 	/**
221
-	 * @param  string|interger $ids
221
+	 * @param  string|interger $id
222 222
 	 * @return void
223 223
 	 */
224 224
 	public function actionAdvance(int $id = null)
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
 	}
344 344
 
345 345
 	/**
346
-	 * @return VisitorFormControl
346
+	 * @return VisitorForm
347 347
 	 */
348 348
 	protected function createComponentVisitorForm(): VisitorForm
349 349
 	{
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
 	}
374 374
 
375 375
 	/**
376
-	 * @return Latte
376
+	 * @return \Nette\Application\UI\ITemplate
377 377
 	 */
378 378
 	protected function createMailTemplate()
379 379
 	{
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -208,9 +208,9 @@
 block discarded – undo
208 208
 			$this->flashSuccess('Platba byla zaplacena.');
209 209
 		} catch(Exception $e) {
210 210
 			$this->logError('Visitor: Action pay for id %s failed, result: %s', [
211
-			    json_encode($id),
212
-                $e->getMessage()
213
-            ]);
211
+				json_encode($id),
212
+				$e->getMessage()
213
+			]);
214 214
 			$this->flashFailure('Visitor: Action pay for id ' . $id . ' failed, result: ' . $e->getMessage());
215 215
 		}
216 216
 
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -100,10 +100,10 @@  discard block
 block discarded – undo
100 100
 			$guid = $this->getVisitorRepository()->create($visitor);
101 101
 			$result = $this->sendRegistrationSummary($visitor, $guid);
102 102
 
103
-			$this->logInfo('Creation of visitor('. $guid .') successfull, result: ' . json_encode($result));
103
+			$this->logInfo('Creation of visitor(' . $guid . ') successfull, result: ' . json_encode($result));
104 104
 			$this->flashSuccess('Účastník(' . $guid . ') byl úspěšně vytvořen.');
105 105
 		} catch(Exception $e) {
106
-			$this->logError('Creation of visitor('. $guid .') failed, result: ' .  $e->getMessage());
106
+			$this->logError('Creation of visitor(' . $guid . ') failed, result: ' . $e->getMessage());
107 107
 			$this->flashError('Creation of visitor failed, result: ' . $e->getMessage());
108 108
 		}
109 109
 
@@ -122,10 +122,10 @@  discard block
 block discarded – undo
122 122
 			$result = $this->getVisitorRepository()->update($id, $visitor);
123 123
 			$result = $this->sendRegistrationSummary($visitor, $id);
124 124
 
125
-			$this->logInfo('Modification of visitor('. $id .') successfull, result: ' . json_encode($result));
125
+			$this->logInfo('Modification of visitor(' . $id . ') successfull, result: ' . json_encode($result));
126 126
 			$this->flashSuccess('Účastník(' . $id . ') byl úspěšně upraven.');
127 127
 		} catch(Exception $e) {
128
-			$this->logError('Modification of visitor('. $id .') failed, result: ' .  $e->getMessage());
128
+			$this->logError('Modification of visitor(' . $id . ') failed, result: ' . $e->getMessage());
129 129
 			$this->flashFailure('Modification of visitor failed, result: ' . $e->getMessage());
130 130
 			$result = false;
131 131
 		}
@@ -142,10 +142,10 @@  discard block
 block discarded – undo
142 142
 		try {
143 143
 			$result = $this->getVisitorRepository()->delete($id);
144 144
 
145
-			$this->logInfo('Destroying of visitor('. $id .') successfull, result: ' . json_encode($result));
145
+			$this->logInfo('Destroying of visitor(' . $id . ') successfull, result: ' . json_encode($result));
146 146
 			$this->flashSuccess('Položka byla úspěšně smazána');
147 147
 		} catch(Exception $e) {
148
-			$this->logError('Destroying of visitor('. $id .') failed, result: ' .  $e->getMessage());
148
+			$this->logError('Destroying of visitor(' . $id . ') failed, result: ' . $e->getMessage());
149 149
 			$this->flashFailure('Destroying of visitor failed, result: ' . $e->getMessage());
150 150
 		}
151 151
 
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 			$this->logInfo('E-mail was send successfully, result: ' . json_encode($result));
182 182
 			$this->flashSuccess('E-mail byl úspěšně odeslán');
183 183
 		} catch(Exception $e) {
184
-			$this->logError('Sending of e-mail failed, result: ' .  $e->getMessage());
184
+			$this->logError('Sending of e-mail failed, result: ' . $e->getMessage());
185 185
 			$this->flashFailure('Sending of e-mail failed, result: ' . $e->getMessage());
186 186
 		}
187 187
 
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 					json_encode($id),
242 242
 					$e->getMessage(),
243 243
 				]);
244
-			$this->flashFailure('Zaplacení zálohy pro účastníka s id '.json_encode($id).' neprošlo: '.$e->getMessage());
244
+			$this->flashFailure('Zaplacení zálohy pro účastníka s id ' . json_encode($id) . ' neprošlo: ' . $e->getMessage());
245 245
 		}
246 246
 
247 247
 		$this->redirect(self::REDIRECT_DEFAULT);
@@ -257,10 +257,10 @@  discard block
 block discarded – undo
257 257
 	{
258 258
 		try {
259 259
 			$result = $this->getVisitorRepository()->setChecked($id);
260
-			$this->logInfo('Check of visitor('. $id .') successfull, result: ' . json_encode($result));
260
+			$this->logInfo('Check of visitor(' . $id . ') successfull, result: ' . json_encode($result));
261 261
 			$this->flashSuccess('Položka byla úspěšně zkontrolována');
262 262
 		} catch(Exception $e) {
263
-			$this->logError('Check of visitor('. $id .') failed, result: ' .  $e->getMessage());
263
+			$this->logError('Check of visitor(' . $id . ') failed, result: ' . $e->getMessage());
264 264
 			$this->flashFailure('Check of visitor failed, result: ' . $e->getMessage());
265 265
 		}
266 266
 
@@ -277,10 +277,10 @@  discard block
 block discarded – undo
277 277
 	{
278 278
 		try {
279 279
 			$result = $this->getVisitorRepository()->setUnchecked($id);
280
-			$this->logInfo('Uncheck of visitor('. $id .') successfull, result: ' . json_encode($result));
280
+			$this->logInfo('Uncheck of visitor(' . $id . ') successfull, result: ' . json_encode($result));
281 281
 			$this->flashSuccess('Položka byla nastavena jako nekontrolována');
282 282
 		} catch(Exception $e) {
283
-			$this->logError('Uncheck of visitor('. $id .') failed, result: ' .  $e->getMessage());
283
+			$this->logError('Uncheck of visitor(' . $id . ') failed, result: ' . $e->getMessage());
284 284
 			$this->flashFailure('Uncheck of visitor failed, result: ' . $e->getMessage());
285 285
 		}
286 286
 
Please login to merge, or discard this patch.
app/repositories/ProgramRepository.php 2 patches
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
 	/**
55 55
 	 * @param  int  $id
56
-	 * @return Nette\Database\Table\ActiveRow
56
+	 * @return ActiveRow
57 57
 	 */
58 58
 	public function find(int $id): ActiveRow
59 59
 	{
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
 	/**
82 82
 	 * @param  int    $programId
83
-	 * @return array
83
+	 * @return ActiveRow
84 84
 	 */
85 85
 	public function findTutor(int $programId): ActiveRow
86 86
 	{
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 	}
98 98
 
99 99
 	/**
100
-	 * @param  Nette\Utils\ArrayHash $program
100
+	 * @param  ArrayHash $program
101 101
 	 * @return boolean
102 102
 	 */
103 103
 	public function create(ArrayHash $program)
@@ -108,8 +108,8 @@  discard block
 block discarded – undo
108 108
 	}
109 109
 
110 110
 	/**
111
-	 * @param  Nette\Utils\ArrayHash $program
112
-	 * @return boolean
111
+	 * @param  ArrayHash $program
112
+	 * @return integer|null
113 113
 	 */
114 114
 	public function update(int $id, ArrayHash $program)
115 115
 	{
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 
121 121
 	/**
122 122
 	 * @param  int    $id
123
-	 * @return boolean
123
+	 * @return integer|null
124 124
 	 */
125 125
 	public function delete(int $id)
126 126
 	{
@@ -157,8 +157,8 @@  discard block
 block discarded – undo
157 157
 	}
158 158
 
159 159
 	/**
160
-	 * @param  Nette\Utils\ArrayHash $program
161
-	 * @return Nette\Utils\ArrayHash
160
+	 * @param  ArrayHash $program
161
+	 * @return ArrayHash
162 162
 	 */
163 163
 	protected function transformDisplayInRegValue(ArrayHash $program): ArrayHash
164 164
 	{
Please login to merge, or discard this patch.
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -69,13 +69,13 @@  discard block
 block discarded – undo
69 69
 		return $this->getProgramModel()->findByVisitorId($visitorId);
70 70
 	}
71 71
 
72
-    /**
73
-     * @param int $blockId
74
-     * @return array
75
-     */
76
-    public function findByBlockId(int $blockId): array
77
-    {
78
-        return $this->getProgramModel()->findByBlockId($blockId);
72
+	/**
73
+	 * @param int $blockId
74
+	 * @return array
75
+	 */
76
+	public function findByBlockId(int $blockId): array
77
+	{
78
+		return $this->getProgramModel()->findByBlockId($blockId);
79 79
 	}
80 80
 
81 81
 	/**
@@ -127,13 +127,13 @@  discard block
 block discarded – undo
127 127
 		return $this->getProgramModel()->delete($id);
128 128
 	}
129 129
 
130
-    /**
131
-     * @param  int $programId
132
-     * @return int
133
-     */
134
-    public function countVisitors(int $programId): int
135
-    {
136
-        return $this->getProgramModel()->countProgramVisitors($programId);
130
+	/**
131
+	 * @param  int $programId
132
+	 * @return int
133
+	 */
134
+	public function countVisitors(int $programId): int
135
+	{
136
+		return $this->getProgramModel()->countProgramVisitors($programId);
137 137
 	}
138 138
 
139 139
 	/**
Please login to merge, or discard this patch.
app/repositories/VisitorRepository.php 3 patches
Doc Comments   +4 added lines, -6 removed lines patch added patch discarded remove patch
@@ -174,7 +174,6 @@  discard block
 block discarded – undo
174 174
 
175 175
 	/**
176 176
 	 * @param  integer $id
177
-	 * @param  array   $data
178 177
 	 * @return integer
179 178
 	 */
180 179
 	public function update($id, $values)
@@ -197,8 +196,7 @@  discard block
 block discarded – undo
197 196
 	}
198 197
 
199 198
     /**
200
-     * @param  integer $id
201
-     * @param  array   $data
199
+     * @param string $guid
202 200
      * @return integer
203 201
      */
204 202
     public function updateByGuid($guid, $values)
@@ -223,7 +221,7 @@  discard block
 block discarded – undo
223 221
 
224 222
 	/**
225 223
 	 * @param  integer $id
226
-	 * @return boolean
224
+	 * @return integer|null
227 225
 	 */
228 226
 	public function delete($id)
229 227
 	{
@@ -242,7 +240,7 @@  discard block
 block discarded – undo
242 240
 
243 241
     /**
244 242
      * @param  int $id
245
-     * @return string
243
+     * @return integer|null
246 244
      * @throws \Exception
247 245
      */
248 246
 	public function payCostCharge($id)
@@ -252,7 +250,7 @@  discard block
 block discarded – undo
252 250
 
253 251
     /**
254 252
      * @param  int $id
255
-     * @return string
253
+     * @return integer|null
256 254
      * @throws \Exception
257 255
      */
258 256
 	public function payAdvanceCharge($id)
Please login to merge, or discard this patch.
Indentation   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -91,24 +91,24 @@  discard block
 block discarded – undo
91 91
 		return $this->getVisitorModel()->find($id);
92 92
 	}
93 93
 
94
-    /**
95
-     * @param  int $id
96
-     * @return ArrayHash
97
-     */
98
-    public function findExpandedById(int $id): ArrayHash
99
-    {
100
-        $visitor = $this->findById($id);
101
-        $meals = $this->getMealModel()->findByVisitorId($id);
102
-        $programs = $this->assembleFormPrograms($id);
103
-
104
-        return ArrayHash::from(
105
-            array_merge(
106
-                $visitor->toArray(),
107
-                $meals,
108
-                $programs
109
-            )
110
-        );
111
-    }
94
+	/**
95
+	 * @param  int $id
96
+	 * @return ArrayHash
97
+	 */
98
+	public function findExpandedById(int $id): ArrayHash
99
+	{
100
+		$visitor = $this->findById($id);
101
+		$meals = $this->getMealModel()->findByVisitorId($id);
102
+		$programs = $this->assembleFormPrograms($id);
103
+
104
+		return ArrayHash::from(
105
+			array_merge(
106
+				$visitor->toArray(),
107
+				$meals,
108
+				$programs
109
+			)
110
+		);
111
+	}
112 112
 
113 113
 	/**
114 114
 	 * Return visitor by guid
@@ -196,30 +196,30 @@  discard block
 block discarded – undo
196 196
 		return $id;
197 197
 	}
198 198
 
199
-    /**
200
-     * @param  integer $id
201
-     * @param  array   $data
202
-     * @return integer
203
-     */
204
-    public function updateByGuid($guid, $values)
205
-    {
206
-        $visitor = $this->filterFields($values, $this->getVisitorModel()->getColumns());
199
+	/**
200
+	 * @param  integer $id
201
+	 * @param  array   $data
202
+	 * @return integer
203
+	 */
204
+	public function updateByGuid($guid, $values)
205
+	{
206
+		$visitor = $this->filterFields($values, $this->getVisitorModel()->getColumns());
207 207
 
208
-        $visitor['birthday'] = $this->convertToDateTime($visitor['birthday']);
208
+		$visitor['birthday'] = $this->convertToDateTime($visitor['birthday']);
209 209
 
210
-        $visitor['code'] = $this->calculateCode4Bank(
211
-            $visitor['name'],
212
-            $visitor['surname'],
213
-            $visitor['birthday']->format('d. m. Y')
214
-        );
210
+		$visitor['code'] = $this->calculateCode4Bank(
211
+			$visitor['name'],
212
+			$visitor['surname'],
213
+			$visitor['birthday']->format('d. m. Y')
214
+		);
215 215
 
216
-        $meals = $this->filterFields($values, $this->getMealModel()->getColumns());
217
-        $programs = $this->filterProgramFields($values);
216
+		$meals = $this->filterFields($values, $this->getMealModel()->getColumns());
217
+		$programs = $this->filterProgramFields($values);
218 218
 
219
-        $guid = $this->getVisitorModel()->modifyByGuid($guid, $visitor, $meals, $programs);
219
+		$guid = $this->getVisitorModel()->modifyByGuid($guid, $visitor, $meals, $programs);
220 220
 
221
-        return $guid;
222
-    }
221
+		return $guid;
222
+	}
223 223
 
224 224
 	/**
225 225
 	 * @param  integer $id
@@ -240,21 +240,21 @@  discard block
 block discarded – undo
240 240
 		return $this->getVisitorModel()->getCount();
241 241
 	}
242 242
 
243
-    /**
244
-     * @param  int $id
245
-     * @return string
246
-     * @throws \Exception
247
-     */
243
+	/**
244
+	 * @param  int $id
245
+	 * @return string
246
+	 * @throws \Exception
247
+	 */
248 248
 	public function payCostCharge($id)
249 249
 	{
250 250
 		return $this->getVisitorModel()->payCharge($id, 'cost');
251 251
 	}
252 252
 
253
-    /**
254
-     * @param  int $id
255
-     * @return string
256
-     * @throws \Exception
257
-     */
253
+	/**
254
+	 * @param  int $id
255
+	 * @return string
256
+	 * @throws \Exception
257
+	 */
258 258
 	public function payAdvanceCharge($id)
259 259
 	{
260 260
 		return $this->getVisitorModel()->payCharge($id, 'advance');
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
 
284 284
 		$formPrograms = [];
285 285
 
286
-		foreach ($visitorPrograms as $visitorProgram) {
286
+		foreach($visitorPrograms as $visitorProgram) {
287 287
 			if($visitorProgram->program !== 0) {
288 288
 				$program = $this->getProgramRepository()->find($visitorProgram->program);
289 289
 				$formPrograms['blck_' . $program->block] = $visitorProgram->program;
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
 	 */
329 329
 	protected function convertToDateTime($datetime): DateTime
330 330
 	{
331
-		if (is_string($datetime)) {
331
+		if(is_string($datetime)) {
332 332
 			$datetime = new DateTime($datetime);
333 333
 		}
334 334
 
Please login to merge, or discard this patch.
app/services/Emailer.php 3 patches
Doc Comments   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,6 +37,7 @@  discard block
 block discarded – undo
37 37
 	 * @param	string	subject
38 38
 	 * @param	string	message
39 39
 	 * @param	array	bcc
40
+	 * @param string $body
40 41
 	 * @return	bool	true | false (log the exception)
41 42
 	 */
42 43
 	public function sendMail($recipients, $subject, $body, array $bccMail = NULL)
@@ -97,7 +98,8 @@  discard block
 block discarded – undo
97 98
 	 * @param	array	recipient mail and name
98 99
 	 * @param	string	guid
99 100
 	 * @param	string	program | block
100
-	 * @return	mixed	true | error information
101
+	 * @param string $type
102
+	 * @return	boolean	true | error information
101 103
 	 */
102 104
 	public function tutor($recipients, $guid, $type)
103 105
 	{
@@ -126,7 +128,8 @@  discard block
 block discarded – undo
126 128
 	 * @param	array	recipient mail
127 129
 	 * @param	int		check hash code
128 130
 	 * @param	string	code for recognition of bank transaction
129
-	 * @return	mixed	true | error information
131
+	 * @param string $code4bank
132
+	 * @return	boolean	true | error information
130 133
 	 */
131 134
 	public function sendRegistrationSummary(array $recipientMail, $hash, $code4bank)
132 135
 	{
@@ -148,7 +151,8 @@  discard block
 block discarded – undo
148 151
 	 *
149 152
 	 * @param	mixed	id numbers in row
150 153
 	 * @param	string	type of template
151
-	 * @return	array	subject and message
154
+	 * @param string $type
155
+	 * @return	boolean	subject and message
152 156
 	 */
153 157
 	public function sendPaymentInfo($recipients, $type)
154 158
 	{
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,9 +46,9 @@
 block discarded – undo
46 46
 
47 47
 		foreach($recipients as $recipient) {
48 48
 			$message->addTo(
49
-			    $recipient->email,
50
-                trim($recipient->name . ' ' . $recipient->surname)
51
-            );
49
+				$recipient->email,
50
+				trim($recipient->name . ' ' . $recipient->surname)
51
+			);
52 52
 		}
53 53
 		// add bcc
54 54
 		if(!empty($bccMail)) {
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 	 * @param	array	bcc
40 40
 	 * @return	bool	true | false (log the exception)
41 41
 	 */
42
-	public function sendMail($recipients, $subject, $body, array $bccMail = NULL)
42
+	public function sendMail($recipients, $subject, $body, array $bccMail = null)
43 43
 	{
44 44
 		$message = new Message;
45 45
 		$message->setFrom('[email protected]', 'Srazy VS');
Please login to merge, or discard this patch.
app/components/Forms/Factories/IVisitorFormFactory.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@
 block discarded – undo
10 10
 interface IVisitorFormFactory
11 11
 {
12 12
 
13
-    /**
14
-     * @return \App\Components\Forms\VisitorForm
15
-     */
16
-    public function create(): VisitorForm;
13
+	/**
14
+	 * @return \App\Components\Forms\VisitorForm
15
+	 */
16
+	public function create(): VisitorForm;
17 17
 
18 18
 }
Please login to merge, or discard this patch.
app/models/MealModel.php 2 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -88,22 +88,22 @@  discard block
 block discarded – undo
88 88
 			->update($data);
89 89
 	}
90 90
 
91
-    /**
92
-     * @param  int   $visitorId
93
-     * @param  array $values
94
-     * @return ActiveRow|bool
95
-     */
91
+	/**
92
+	 * @param  int   $visitorId
93
+	 * @param  array $values
94
+	 * @return ActiveRow|bool
95
+	 */
96 96
 	public function updateOrCreate(int $visitorId, array $values)
97
-    {
98
-        $result = $this->updateByVisitor($visitorId, $values);
97
+	{
98
+		$result = $this->updateByVisitor($visitorId, $values);
99 99
 
100
-        if(!$result) {
101
-            $values['visitor'] = $visitorId;
102
-            $result = $this->create($values);
103
-        }
100
+		if(!$result) {
101
+			$values['visitor'] = $visitorId;
102
+			$result = $this->create($values);
103
+		}
104 104
 
105
-        return $result;
106
-    }
105
+		return $result;
106
+	}
107 107
 
108 108
 	/**
109 109
 	 * Get meals data by visitor id
@@ -120,12 +120,12 @@  discard block
 block discarded – undo
120 120
 			->fetch();
121 121
 
122 122
 		if(!$meals) {
123
-		    $meals = [];
124
-        } else {
125
-		    $meals = $meals->toArray();
126
-        }
123
+			$meals = [];
124
+		} else {
125
+			$meals = $meals->toArray();
126
+		}
127 127
 
128
-        return $meals;
128
+		return $meals;
129 129
 
130 130
 	}
131 131
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
      * @return ActiveRow|bool
95 95
      */
96 96
 	public function updateOrCreate(int $visitorId, array $values)
97
-    {
97
+	{
98 98
         $result = $this->updateByVisitor($visitorId, $values);
99 99
 
100 100
         if(!$result) {
Please login to merge, or discard this patch.