|
@@ -233,7 +233,7 @@ discard block |
|
|
block discarded – undo |
|
233
|
233
|
* Seaches the key of the given class constant value. |
|
234
|
234
|
* @param array $_aExceptionDetails The value of an exception constant. |
|
235
|
235
|
* @param string $_sExceptionClass The class the exception constant has to be searched. |
|
236
|
|
- * @return mixed the key for <i>needle</i> if it is found in the array, <b>FALSE</b> otherwise. |
|
|
236
|
+ * @return string the key for <i>needle</i> if it is found in the array, <b>FALSE</b> otherwise. |
|
237
|
237
|
* @todo Could be cached with storing all exceptions in opCache |
|
238
|
238
|
* @todo Inner exception should be added when getExceptionCode fails. But at the moment innerNotice function has circular reference to ExceptinShortMessage |
|
239
|
239
|
*/ |
|
@@ -388,7 +388,7 @@ discard block |
|
|
block discarded – undo |
|
388
|
388
|
|
|
389
|
389
|
/** |
|
390
|
390
|
* Sets the ShortMessage and returns message object. |
|
391
|
|
- * @return Gelf\Message Sets the ShortMessage and returns message object. |
|
|
391
|
+ * @return \Gelf\Message Sets the ShortMessage and returns message object. |
|
392
|
392
|
*/ |
|
393
|
393
|
private function setShortMessage() { |
|
394
|
394
|
return $this->gelfMessage->setShortMessage($this->iExceptionCode . ":" . $this->sExceptionShortMessage); |
|
@@ -396,7 +396,7 @@ discard block |
|
|
block discarded – undo |
|
396
|
396
|
|
|
397
|
397
|
/** |
|
398
|
398
|
* Sets the Message and returns message object. |
|
399
|
|
- * @return Gelf\Message Sets the Message and returns message object. |
|
|
399
|
+ * @return \Gelf\Message Sets the Message and returns message object. |
|
400
|
400
|
*/ |
|
401
|
401
|
private function setMessage() { |
|
402
|
402
|
return $this->gelfMessage->setFullMessage($this->sExceptionMessage); |
|
@@ -404,7 +404,7 @@ discard block |
|
|
block discarded – undo |
|
404
|
404
|
|
|
405
|
405
|
/** |
|
406
|
406
|
* Sets the Level and returns message object. |
|
407
|
|
- * @return Gelf\Message Sets the Level and returns message object. |
|
|
407
|
+ * @return \Gelf\Message Sets the Level and returns message object. |
|
408
|
408
|
*/ |
|
409
|
409
|
private function setLevel() { |
|
410
|
410
|
return $this->gelfMessage->setLevel($this->sExceptionLevel); |
|
@@ -412,7 +412,7 @@ discard block |
|
|
block discarded – undo |
|
412
|
412
|
|
|
413
|
413
|
/** |
|
414
|
414
|
* Sets the Facility and returns message object. |
|
415
|
|
- * @return Gelf\Message Sets the Facility and returns message object. |
|
|
415
|
+ * @return \Gelf\Message Sets the Facility and returns message object. |
|
416
|
416
|
*/ |
|
417
|
417
|
private function setFacility() { |
|
418
|
418
|
return $this->gelfMessage->setFacility($this->sApplication); |
|
@@ -420,7 +420,7 @@ discard block |
|
|
block discarded – undo |
|
420
|
420
|
|
|
421
|
421
|
/** |
|
422
|
422
|
* Sets additional details from exception object and returns message object. |
|
423
|
|
- * @return Gelf\Message Sets the additional details from exception object and returns message object. |
|
|
423
|
+ * @return \Gelf\Message Sets the additional details from exception object and returns message object. |
|
424
|
424
|
*/ |
|
425
|
425
|
private function setAdditionals() { |
|
426
|
426
|
$this->gelfMessage->setAdditional('ModuleName', $this->sModuleName); |
|
@@ -435,7 +435,7 @@ discard block |
|
|
block discarded – undo |
|
435
|
435
|
/** |
|
436
|
436
|
* Checks if function/method parameters are equal to function declaration and logs warning if not. |
|
437
|
437
|
* Gets all names of function/method parameters and its values and adds it to message object as additional. |
|
438
|
|
- * @return Gelf\Message Sets additional details to message object and returns the message object. |
|
|
438
|
+ * @return \Gelf\Message Sets additional details to message object and returns the message object. |
|
439
|
439
|
*/ |
|
440
|
440
|
private function addParameters() { |
|
441
|
441
|
//get function/method parameters and parameters function was called |