@@ -8,7 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | |
| 10 | 10 | /** |
| 11 | - * @return self |
|
| 11 | + * @return \Nip\Records\AbstractModels\Record |
|
| 12 | 12 | */ |
| 13 | 13 | public function getCurrent() |
| 14 | 14 | { |
@@ -71,6 +71,9 @@ |
||
| 71 | 71 | } |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | + /** |
|
| 75 | + * @param string $name |
|
| 76 | + */ |
|
| 74 | 77 | public static function nameTransaction($name) |
| 75 | 78 | { |
| 76 | 79 | if (self::isLoaded()) { |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | if ($string === null || strlen($string) == 0) { |
| 19 | 19 | $return = '-'; // valorile nule sunt inlocuite cu - |
| 20 | 20 | } else { |
| 21 | - $return = strlen($string).$string; |
|
| 21 | + $return = strlen($string) . $string; |
|
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | return $return; |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | $ipad = str_repeat(chr(0x36), $blocksize); |
| 44 | 44 | $opad = str_repeat(chr(0x5c), $blocksize); |
| 45 | 45 | |
| 46 | - $hmac = pack('H*', $hashfunc(($key ^ $opad).pack('H*', $hashfunc(($key ^ $ipad).$data)))); |
|
| 46 | + $hmac = pack('H*', $hashfunc(($key ^ $opad) . pack('H*', $hashfunc(($key ^ $ipad) . $data)))); |
|
| 47 | 47 | |
| 48 | 48 | return bin2hex($hmac); |
| 49 | 49 | } |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | |
| 51 | 51 | <p> |
| 52 | 52 | <?php |
| 53 | - echo $this->Messages()->$messageType($model->getManager()->getMessage('confirm.'.$model->status)); ?> |
|
| 53 | + echo $this->Messages()->$messageType($model->getManager()->getMessage('confirm.' . $model->status)); ?> |
|
| 54 | 54 | </p> |
| 55 | 55 | <?php |
| 56 | 56 | } else { |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | { |
| 70 | 70 | if ($this->hasModel()) { |
| 71 | 71 | // return $this->getModel()->getConfirmStatusTitle(); |
| 72 | - return translator()->translate('payment-gateways.messages.confirm.'.$this->getMessageType().'.title'); |
|
| 72 | + return translator()->translate('payment-gateways.messages.confirm.' . $this->getMessageType() . '.title'); |
|
| 73 | 73 | } else { |
| 74 | 74 | return 'Error confirming payment'; |
| 75 | 75 | } |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | $pClass->setData([ |
| 42 | 42 | // 'FIRST_NAME' => $donor->first_name, // nume |
| 43 | 43 | // 'LAST_NAME' => $donor->last_name, // prenume |
| 44 | - 'EMAIL' => $donor->email, // email |
|
| 44 | + 'EMAIL' => $donor->email, // email |
|
| 45 | 45 | ]); |
| 46 | 46 | |
| 47 | 47 | $pClass->calculatePSIGN(); |
@@ -12,9 +12,9 @@ |
||
| 12 | 12 | protected $_records = null; |
| 13 | 13 | protected $_localCache; |
| 14 | 14 | |
| 15 | - /** |
|
| 16 | - * @return Record |
|
| 17 | - */ |
|
| 15 | + /** |
|
| 16 | + * @return Record |
|
| 17 | + */ |
|
| 18 | 18 | public function findOne($primary) |
| 19 | 19 | { |
| 20 | 20 | if (!$this->_records) { |