@@ -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 = ''; |
@@ -212,7 +212,7 @@ |
||
| 212 | 212 | $attr->nodeValue = date('YmdHis'); |
| 213 | 213 | $xmlNotifyElem->appendChild($attr); |
| 214 | 214 | |
| 215 | - $this->_crc = md5(rand().time()); |
|
| 215 | + $this->_crc = md5(rand() . time()); |
|
| 216 | 216 | $attr = $xmlDoc->createAttribute('crc'); |
| 217 | 217 | $attr->nodeValue = $this->_crc; |
| 218 | 218 | $xmlNotifyElem->appendChild($attr); |
@@ -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 | /** |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | */ |
| 98 | 98 | public function getConfirmStatusTitle() |
| 99 | 99 | { |
| 100 | - return $this->getManager()->getMessage('confirm.'.$this->getStatus()->getName()); |
|
| 100 | + return $this->getManager()->getMessage('confirm.' . $this->getStatus()->getName()); |
|
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | /** |
@@ -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() |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | public function getLabel($type, $params = [], $language = false) |
| 26 | 26 | { |
| 27 | - $slug = 'labels.'.$type; |
|
| 27 | + $slug = 'labels.' . $type; |
|
| 28 | 28 | |
| 29 | 29 | return $this->translate($slug, $params, $language); |
| 30 | 30 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | */ |
| 38 | 38 | public function translate($slug, $params = [], $language = false) |
| 39 | 39 | { |
| 40 | - $slug = $this->getController().'.'.$slug; |
|
| 40 | + $slug = $this->getController() . '.' . $slug; |
|
| 41 | 41 | |
| 42 | 42 | return $this->getTranslator()->translate($slug, $params, $language); |
| 43 | 43 | } |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | */ |
| 84 | 84 | public function getMessage($name, $params = [], $language = false) |
| 85 | 85 | { |
| 86 | - $slug = 'messages.'.$name; |
|
| 86 | + $slug = 'messages.' . $name; |
|
| 87 | 87 | |
| 88 | 88 | return $this->translate($slug, $params, $language); |
| 89 | 89 | } |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | */ |
| 33 | 33 | public function getName() |
| 34 | 34 | { |
| 35 | - return $this->getManager()->getLabel('title.singular').' #'.$this->id; |
|
| 35 | + return $this->getManager()->getLabel('title.singular') . ' #' . $this->id; |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | /** |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | public function getFile() |
| 52 | 52 | { |
| 53 | 53 | $file = $this->getNewFile(); |
| 54 | - $fileName = $this->getFileNameDefault().'.pdf'; |
|
| 54 | + $fileName = $this->getFileNameDefault() . '.pdf'; |
|
| 55 | 55 | $file->setName($fileName); |
| 56 | 56 | |
| 57 | 57 | return $file; |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | $this->pdfDrawGuidelines($pdf); |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | - $pdf->Output($this->getFileNameFromModel($model).'.pdf', 'D'); |
|
| 100 | + $pdf->Output($this->getFileNameFromModel($model) . '.pdf', 'D'); |
|
| 101 | 101 | die(); |
| 102 | 102 | } |
| 103 | 103 | |
@@ -151,8 +151,8 @@ discard block |
||
| 151 | 151 | header('Cache-Control: private, must-revalidate, post-check=0, pre-check=0, max-age=1'); |
| 152 | 152 | header('Pragma: public'); |
| 153 | 153 | header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); // Date in the past |
| 154 | - header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); |
|
| 155 | - header('Content-Disposition: attachment; filename="'.basename($file).'";'); |
|
| 154 | + header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); |
|
| 155 | + header('Content-Disposition: attachment; filename="' . basename($file) . '";'); |
|
| 156 | 156 | header("Content-Transfer-Encoding: Binary"); |
| 157 | 157 | readfile($file); |
| 158 | 158 | die(); |
@@ -170,9 +170,9 @@ discard block |
||
| 170 | 170 | if ($model->demo === true) { |
| 171 | 171 | $this->pdfDrawGuidelines($pdf); |
| 172 | 172 | } |
| 173 | - $fileName = $this->getFileNameFromModel($model).'.pdf'; |
|
| 173 | + $fileName = $this->getFileNameFromModel($model) . '.pdf'; |
|
| 174 | 174 | if (is_dir($directory)) { |
| 175 | - return $pdf->Output($directory.$fileName, 'F'); |
|
| 175 | + return $pdf->Output($directory . $fileName, 'F'); |
|
| 176 | 176 | } |
| 177 | 177 | |
| 178 | 178 | return false; |