@@ -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(); |
@@ -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 | } |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | $address->county = ''; |
109 | 109 | $address->city = $card->getBillingCity(); |
110 | 110 | $address->zipCode = ''; |
111 | - $address->address = $card->getBillingAddress1().' '.$card->getBillingAddress2(); |
|
111 | + $address->address = $card->getBillingAddress1() . ' ' . $card->getBillingAddress2(); |
|
112 | 112 | $address->email = $card->getEmail(); |
113 | 113 | $address->mobilePhone = $card->getBillingPhone(); |
114 | 114 | $address->bank = ''; |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | $address->county = ''; |
134 | 134 | $address->city = $card->getShippingCity(); |
135 | 135 | $address->zipCode = ''; |
136 | - $address->address = $card->getShippingAddress1().' '.$card->getShippingAddress2(); |
|
136 | + $address->address = $card->getShippingAddress1() . ' ' . $card->getShippingAddress2(); |
|
137 | 137 | $address->email = $card->getEmail(); |
138 | 138 | $address->mobilePhone = $card->getShippingPhone(); |
139 | 139 | $address->bank = ''; |
@@ -87,7 +87,7 @@ |
||
87 | 87 | { |
88 | 88 | $path = $this->getParameter($type); |
89 | 89 | if (strpos($path, DIRECTORY_SEPARATOR) === false) { |
90 | - $path = $this->getFileDirectoryPath().$path; |
|
90 | + $path = $this->getFileDirectoryPath() . $path; |
|
91 | 91 | } |
92 | 92 | |
93 | 93 | return $this->setParameter($type, $path); |
@@ -17,7 +17,7 @@ |
||
17 | 17 | */ |
18 | 18 | public function getTypesDirectory() |
19 | 19 | { |
20 | - return dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR.'Types'; |
|
20 | + return dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'Types'; |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | /** |
@@ -76,7 +76,7 @@ |
||
76 | 76 | { |
77 | 77 | $varName = $this->getCurrentVarName(); |
78 | 78 | $helper = $this->getPasswordHelper()->setSalt($user->salt); |
79 | - $value = $user->id.':'.$helper->hash($user->password); |
|
79 | + $value = $user->id . ':' . $helper->hash($user->password); |
|
80 | 80 | CookieJar::instance()->newCookie() |
81 | 81 | ->setName($varName) |
82 | 82 | ->setValue($value) |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | if ($definition) { |
51 | 51 | return $definition->getItems(); |
52 | 52 | } |
53 | - throw new Exception('invalid smart property ['.$name.']'); |
|
53 | + throw new Exception('invalid smart property [' . $name . ']'); |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | if ($definition) { |
91 | 91 | return $definition->getValues($field); |
92 | 92 | } |
93 | - throw new Exception('invalid smart property ['.$name.']'); |
|
93 | + throw new Exception('invalid smart property [' . $name . ']'); |
|
94 | 94 | } |
95 | 95 | |
96 | 96 | /** |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | if ($definition) { |
106 | 106 | return $definition->getItem($value); |
107 | 107 | } |
108 | - throw new Exception('invalid smart property ['.$property.']'); |
|
108 | + throw new Exception('invalid smart property [' . $property . ']'); |
|
109 | 109 | } |
110 | 110 | |
111 | 111 | protected function registerSmartProperties() |
@@ -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 | if (!$this->_records) { |
20 | 20 | $this->getAll(); |
@@ -5,10 +5,10 @@ |
||
5 | 5 | class Auths extends Records |
6 | 6 | { |
7 | 7 | |
8 | - /** |
|
9 | - * @return self |
|
10 | - */ |
|
11 | - public function getCurrent() |
|
8 | + /** |
|
9 | + * @return self |
|
10 | + */ |
|
11 | + public function getCurrent() |
|
12 | 12 | { |
13 | 13 | $model = $this->getModel(); |
14 | 14 | if ($_SESSION[$model]) { |