@@ -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 | } |
@@ -30,15 +30,15 @@ |
||
| 30 | 30 | //nu modificati |
| 31 | 31 | ), |
| 32 | 32 | 'bill' => array( |
| 33 | - 'fname' => '', // nume |
|
| 34 | - 'lname' => '', // prenume |
|
| 35 | - 'country' => '', // tara |
|
| 36 | - 'company' => '', // firma |
|
| 37 | - 'city' => '', // oras |
|
| 38 | - 'add' => '', // adresa |
|
| 39 | - 'email' => '', // email |
|
| 40 | - 'phone' => '', // telefon |
|
| 41 | - 'fax' => '', // fax |
|
| 33 | + 'fname' => '', // nume |
|
| 34 | + 'lname' => '', // prenume |
|
| 35 | + 'country' => '', // tara |
|
| 36 | + 'company' => '', // firma |
|
| 37 | + 'city' => '', // oras |
|
| 38 | + 'add' => '', // adresa |
|
| 39 | + 'email' => '', // email |
|
| 40 | + 'phone' => '', // telefon |
|
| 41 | + 'fax' => '', // fax |
|
| 42 | 42 | ), |
| 43 | 43 | ); |
| 44 | 44 | } |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | $this->getForm()->addDisplayGroup($this->elements, $this->getGateway()->getLabel()); |
| 35 | 35 | $this->getForm()->getDisplayGroup($this->getGateway()->getLabel()) |
| 36 | 36 | ->setAttrib('class', 'payment_gateway_fieldset') |
| 37 | - ->setAttrib('id', 'payment_gateway_'.$this->getGateway()->getName()); |
|
| 37 | + ->setAttrib('id', 'payment_gateway_' . $this->getGateway()->getName()); |
|
| 38 | 38 | } |
| 39 | 39 | } |
| 40 | 40 | |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | */ |
| 157 | 157 | protected function getElementNameFromMagicMethodArguments($arguments) |
| 158 | 158 | { |
| 159 | - $name = ''.$this->getGateway()->getName().'['.$arguments[0].']'; |
|
| 159 | + $name = '' . $this->getGateway()->getName() . '[' . $arguments[0] . ']'; |
|
| 160 | 160 | $this->elements[$arguments[0]] = $name; |
| 161 | 161 | |
| 162 | 162 | return $name; |
@@ -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 { |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | return HttpResponse::create($output); |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | - throw new RuntimeException('Invalid redirect method "'.$this->getRedirectMethod().'".'); |
|
| 59 | + throw new RuntimeException('Invalid redirect method "' . $this->getRedirectMethod() . '".'); |
|
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | /** |
@@ -109,11 +109,11 @@ discard block |
||
| 109 | 109 | foreach ($this->getRedirectData() as $key => $value) { |
| 110 | 110 | if (is_array($value)) { |
| 111 | 111 | foreach ($value as $iKey => $iValue) { |
| 112 | - $key = $key.'['.$iKey.']'; |
|
| 113 | - $hiddenFields .= $this->generateHiddenInput($key, $iValue)."\n"; |
|
| 112 | + $key = $key . '[' . $iKey . ']'; |
|
| 113 | + $hiddenFields .= $this->generateHiddenInput($key, $iValue) . "\n"; |
|
| 114 | 114 | } |
| 115 | 115 | } else { |
| 116 | - $hiddenFields .= $this->generateHiddenInput($key, $value)."\n"; |
|
| 116 | + $hiddenFields .= $this->generateHiddenInput($key, $value) . "\n"; |
|
| 117 | 117 | } |
| 118 | 118 | } |
| 119 | 119 | |
@@ -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 | } |
@@ -129,7 +129,7 @@ |
||
| 129 | 129 | { |
| 130 | 130 | $class = str_replace('Request', 'Response', $this->getClassFirstName()); |
| 131 | 131 | |
| 132 | - return '\\'.$this->getNamespacePath().'\\'.$class; |
|
| 132 | + return '\\' . $this->getNamespacePath() . '\\' . $class; |
|
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | /** |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | protected function initView() |
| 61 | 61 | { |
| 62 | 62 | $view = $this->newView(); |
| 63 | - $view->setBasePath(dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR.'Views'.DIRECTORY_SEPARATOR); |
|
| 63 | + $view->setBasePath(dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'Views' . DIRECTORY_SEPARATOR); |
|
| 64 | 64 | $this->setView($view); |
| 65 | 65 | } |
| 66 | 66 | |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | */ |
| 76 | 76 | protected function createNamepacedRequest($class, array $parameters) |
| 77 | 77 | { |
| 78 | - $class = $this->getNamespacePath().'\Message\\'.$class; |
|
| 78 | + $class = $this->getNamespacePath() . '\Message\\' . $class; |
|
| 79 | 79 | |
| 80 | 80 | if (class_exists($class)) { |
| 81 | 81 | return $this->createRequest($class, $parameters); // TODO: Change the autogenerated stub |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | */ |
| 222 | 222 | public function newOptionsForm() |
| 223 | 223 | { |
| 224 | - $class = $this->getNamespacePath().'\Form'; |
|
| 224 | + $class = $this->getNamespacePath() . '\Form'; |
|
| 225 | 225 | $form = new $class(); |
| 226 | 226 | /** @var Form $form */ |
| 227 | 227 | $form->setGateway($this); |