@@ -93,7 +93,7 @@ |
||
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | /** |
| 96 | - * @param $type |
|
| 96 | + * @param string $type |
|
| 97 | 97 | * @return MobilpayFile |
| 98 | 98 | */ |
| 99 | 99 | public function getFileModel($type) |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | /** |
| 85 | - * @return bool |
|
| 85 | + * @return boolean|null |
|
| 86 | 86 | */ |
| 87 | 87 | protected function decodeRequestData() |
| 88 | 88 | { |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | } |
| 160 | 160 | |
| 161 | 161 | /** @noinspection PhpMissingParentCallCommonInspection |
| 162 | - * @return mixed |
|
| 162 | + * @return boolean |
|
| 163 | 163 | */ |
| 164 | 164 | protected function isProviderRequest() |
| 165 | 165 | { |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use ByTIC\Common\Payments\Gateways\Providers\AbstractGateway\Message\PurchaseRequest; |
| 6 | 6 | use ByTIC\Common\Payments\Gateways\Providers\AbstractGateway\Message\RedirectResponse\RedirectTrait; |
| 7 | -use ByTIC\Common\Payments\Models\BillingRecord\Traits\RecordTrait as BillingRecord; |
|
| 8 | 7 | use ByTIC\Common\Payments\Models\BillingRecord\Traits\RecordTrait as BillingRecordTrait; |
| 9 | 8 | use ByTIC\Common\Payments\Models\Methods\Traits\RecordTrait; |
| 10 | 9 | use ByTIC\Common\Records\Records; |
@@ -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 | /** |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | /** |
| 113 | - * @return EmailTrait |
|
| 113 | + * @return Record |
|
| 114 | 114 | */ |
| 115 | 115 | protected function newBlankEmail() |
| 116 | 116 | { |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | |
| 125 | 125 | /** |
| 126 | 126 | * @param EmailTrait $email |
| 127 | - * @return mixed |
|
| 127 | + * @return EmailTrait |
|
| 128 | 128 | */ |
| 129 | 129 | protected function hydrateEmail($email) |
| 130 | 130 | { |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | } |
| 146 | 146 | |
| 147 | 147 | /** |
| 148 | - * @return \Record |
|
| 148 | + * @return Record |
|
| 149 | 149 | */ |
| 150 | 150 | public function getItem() |
| 151 | 151 | { |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | } |
| 154 | 154 | |
| 155 | 155 | /** |
| 156 | - * @param Record|BuilderAwareTrait $item |
|
| 156 | + * @param BuilderAwareTrait $item |
|
| 157 | 157 | * @return $this |
| 158 | 158 | */ |
| 159 | 159 | public function setItem($item) |
@@ -210,7 +210,7 @@ |
||
| 210 | 210 | } |
| 211 | 211 | |
| 212 | 212 | /** |
| 213 | - * @param null $value |
|
| 213 | + * @param string $value |
|
| 214 | 214 | * @return bool |
| 215 | 215 | */ |
| 216 | 216 | public function IsHTML($value = null) |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | - * @return mixed |
|
| 39 | + * @return null|string |
|
| 40 | 40 | */ |
| 41 | 41 | public function getTypeValue() |
| 42 | 42 | { |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | |
| 134 | 134 | /** |
| 135 | 135 | * @param FPDI $pdf |
| 136 | - * @param $value |
|
| 136 | + * @param null|string $value |
|
| 137 | 137 | * @return int|string |
| 138 | 138 | */ |
| 139 | 139 | protected function pdfXPosition($pdf, $value) |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | |
| 159 | 159 | /** |
| 160 | 160 | * @param FPDI $pdf |
| 161 | - * @param $value |
|
| 161 | + * @param null|string $value |
|
| 162 | 162 | * @return int|string |
| 163 | 163 | */ |
| 164 | 164 | protected function pdfYPosition($pdf, $value) |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | return $valueType; |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | - return '<<'.$this->field.'>>'; |
|
| 83 | + return '<<' . $this->field . '>>'; |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /** |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | { |
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | - * @param $model |
|
| 18 | + * @param \ByTIC\Common\Records\Record $model |
|
| 19 | 19 | * @return null |
| 20 | 20 | */ |
| 21 | 21 | public function getValue($model) |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | abstract public function getModelExample(); |
| 88 | 88 | |
| 89 | 89 | /** |
| 90 | - * @param $model |
|
| 90 | + * @param Record $model |
|
| 91 | 91 | */ |
| 92 | 92 | public function download($model) |
| 93 | 93 | { |
@@ -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; |
@@ -232,7 +232,7 @@ |
||
| 232 | 232 | } |
| 233 | 233 | |
| 234 | 234 | /** |
| 235 | - * @return bool|mixed |
|
| 235 | + * @return null|false |
|
| 236 | 236 | */ |
| 237 | 237 | public function update() |
| 238 | 238 | { |