@@ -2574,11 +2574,9 @@ public function getEvidenceInfo(string $evidence = ''): array
25742574 /**
25752575 * Obtain name for current (or given) evidence path.
25762576 *
2577- * @param string $evidence Evidence Path
2578- *
2579- * @return array Evidence info
2577+ * @param string $evidence Evidence name
25802578 */
2581- public function getEvidenceName ($ evidence = null )
2579+ public function getEvidenceName ($ evidence = null ): string
25822580 {
25832581 $ evidenceName = null ;
25842582
@@ -2638,7 +2636,7 @@ public function getVazby($id = null)
26382636 *
26392637 * @return string url
26402638 */
2641- public function getAbraFlexiURL ()
2639+ public function getAbraFlexiURL (): string
26422640 {
26432641 $ parsed_url = parse_url (str_replace ('. ' .$ this ->format , '' , $ this ->apiURL ));
26442642 $ scheme = isset ($ parsed_url ['scheme ' ]) ? $ parsed_url ['scheme ' ].':// ' : '' ;
@@ -2704,7 +2702,7 @@ public function setMyKey($myKeyValue)
27042702 *
27052703 * @return bool get flag state
27062704 */
2707- public function ignore404 ($ ignore = null )
2705+ public function ignore404 ($ ignore = null ): bool
27082706 {
27092707 if (null !== $ ignore ) {
27102708 $ this ->ignoreNotFound = $ ignore ;
@@ -2721,15 +2719,15 @@ public function ignore404($ignore = null)
27212719 * @param string $to Email ecipient
27222720 * @param string $subject Email Subject
27232721 * @param string $body Email Text
2724- * @param null|mixed $cc
2722+ * @param string $cc
27252723 *
27262724 * @return bool mail sent status
27272725 */
2728- public function sendByMail ($ to , $ subject , $ body , $ cc = null )
2726+ public function sendByMail ($ to , $ subject , $ body , $ cc = '' ): bool
27292727 {
27302728 $ this ->setPostFields ($ body );
27312729 $ this ->performRequest (
2732- rawurlencode ((string ) $ this ->getRecordIdent ()).'/odeslani-dokladu?to= ' .$ to .'&subject= ' .urlencode ($ subject ).'&cc= ' .$ cc ,
2730+ rawurlencode ((string ) $ this ->getRecordIdent ()).'/odeslani-dokladu?to= ' .$ to .'&subject= ' .urlencode ($ subject ).( $ cc ?? '&cc= ' .$ cc) ,
27332731 'PUT ' ,
27342732 'xml ' ,
27352733 );
@@ -2891,7 +2889,7 @@ public function takeData(array $data): int
28912889 *
28922890 * @return array
28932891 */
2894- public function getReportsInfo ()
2892+ public function getReportsInfo (): array
28952893 {
28962894 $ reports = [];
28972895 $ reportsRaw = $ this ->getFlexiData ($ this ->getEvidenceURL ().'/reports ' );
@@ -2947,7 +2945,7 @@ public function requestAuthSessionID(string $username, string $password, $otp =
29472945 *
29482946 * @return bool sign in success
29492947 */
2950- public function login ()
2948+ public function login (): bool
29512949 {
29522950 $ this ->authSessionId = $ this ->requestAuthSessionID (
29532951 $ this ->user ,
@@ -2973,7 +2971,7 @@ public function logout($username = null)
29732971
29742972 /**
29752973 * Compile and send Report about Error500 to AbraFlexi developers
2976- * If AbraFlexi is running on localost try also include java backtrace.
2974+ * If AbraFlexi is running on localhost try also include java backtrace.
29772975 *
29782976 * @param array $errorResponse result of parseError();
29792977 */
@@ -3134,7 +3132,7 @@ public function logBanner($prefix = null, $suffix = null): void
31343132 *
31353133 * @return string create|read|update|delete or update,insert for some inserted and updated in one transaction
31363134 */
3137- public function getLastOperationType ()
3135+ public function getLastOperationType (): string
31383136 {
31393137 return implode (', ' , array_keys (array_filter ($ this ->responseStats )));
31403138 }
0 commit comments