@@ -227,12 +227,12 @@ |
||
227 | 227 | public function sendHeaders() |
228 | 228 | { |
229 | 229 | $message = $this->statusMessage ?: $this->getStatusMessageFromCode($this->statusCode); |
230 | - header($this->httpVersion . ' ' . $this->statusCode . ' ' . $message); |
|
230 | + header($this->httpVersion.' '.$this->statusCode.' '.$message); |
|
231 | 231 | |
232 | - header('Content-Type: ' . $this->contentType); |
|
232 | + header('Content-Type: '.$this->contentType); |
|
233 | 233 | |
234 | 234 | foreach ($this->headers AS $key => $val) { |
235 | - header($key . ': ' . $val); |
|
235 | + header($key.': '.$val); |
|
236 | 236 | } |
237 | 237 | |
238 | 238 | } |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | $result .= '?'; |
112 | 112 | foreach ($attributes AS $key => $val) { |
113 | 113 | if ($key !== $val) { |
114 | - $result .= '&' . $key . '=' . $val; |
|
114 | + $result .= '&'.$key.'='.$val; |
|
115 | 115 | } |
116 | 116 | } |
117 | 117 | |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | if (0 === strpos($patBlocks[$i], '<')) { |
137 | 137 | $cut = strpos($patBlocks[$i], ':'); |
138 | 138 | |
139 | - if (preg_match('/' . substr($patBlocks[$i], $cut + 1, -1) . '/', $uriBlocks[$i])) { |
|
139 | + if (preg_match('/'.substr($patBlocks[$i], $cut + 1, -1).'/', $uriBlocks[$i])) { |
|
140 | 140 | $attr[substr($patBlocks[$i], 1, $cut - 1)] = $uriBlocks[$i]; |
141 | 141 | } else { |
142 | 142 | return false; |
@@ -168,14 +168,14 @@ discard block |
||
168 | 168 | |
169 | 169 | foreach ($repBlocks AS $value) { |
170 | 170 | if (0 !== strpos($value, '<')) { |
171 | - $result .= '/' . $value; |
|
171 | + $result .= '/'.$value; |
|
172 | 172 | |
173 | 173 | unset($attr[$value]); |
174 | 174 | } else { |
175 | 175 | $element = substr($value, 1, -1); |
176 | 176 | |
177 | 177 | if (!empty($attr[$element])) { |
178 | - $result .= '/' . $attr[$element]; |
|
178 | + $result .= '/'.$attr[$element]; |
|
179 | 179 | |
180 | 180 | unset($attr[$element]); |
181 | 181 | } else { |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | protected static function doCli() |
58 | 58 | { |
59 | - return static::$number . ' - ' . static::$message . ' on ' . static::$file . ':' . static::$line; |
|
59 | + return static::$number.' - '.static::$message.' on '.static::$file.':'.static::$line; |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | /** |
@@ -65,20 +65,20 @@ discard block |
||
65 | 65 | protected static function doRun() |
66 | 66 | { |
67 | 67 | $str = '<div class="error" style="width: 100%;">'; |
68 | - $str .= '<h2>FatalError ' . static::$number . ' - ' . static::$message . ' on ' . static::$file . ':' . static::$line . '</h2>'; |
|
68 | + $str .= '<h2>FatalError '.static::$number.' - '.static::$message.' on '.static::$file.':'.static::$line.'</h2>'; |
|
69 | 69 | |
70 | 70 | $str .= '<table width="100%" style="width: 100%">'; |
71 | 71 | $str .= '<tr>'; |
72 | 72 | $str .= '<th width="100px">Context</th>'; |
73 | 73 | $str .= '<td style="vertical-align: top; height: 300px">'; |
74 | - $str .= '<textarea disabled style="width:100%; height: 100%">' . print_r(static::$context, |
|
75 | - true) . '</textarea>'; |
|
74 | + $str .= '<textarea disabled style="width:100%; height: 100%">'.print_r(static::$context, |
|
75 | + true).'</textarea>'; |
|
76 | 76 | $str .= '</td>'; |
77 | 77 | $str .= '</tr>'; |
78 | 78 | $str .= '<tr>'; |
79 | 79 | $str .= '<th width="100px">Debug trace</th>'; |
80 | 80 | $str .= '<td style="vertical-align: top; height: 300px">'; |
81 | - $str .= '<textarea disabled style="width: 100%; height: 100%">' . print_r(static::$trace, true) . '</textarea>'; |
|
81 | + $str .= '<textarea disabled style="width: 100%; height: 100%">'.print_r(static::$trace, true).'</textarea>'; |
|
82 | 82 | $str .= '</td>'; |
83 | 83 | $str .= '</tr>'; |
84 | 84 | $str .= '</table>'; |
@@ -96,8 +96,8 @@ |
||
96 | 96 | continue; |
97 | 97 | } |
98 | 98 | |
99 | - $path = $alias . '\\' . substr($className, mb_strlen($prefix) + 1); |
|
100 | - $absolutePath = str_replace('\\', DIRECTORY_SEPARATOR, $path) . $extension; |
|
99 | + $path = $alias.'\\'.substr($className, mb_strlen($prefix) + 1); |
|
100 | + $absolutePath = str_replace('\\', DIRECTORY_SEPARATOR, $path).$extension; |
|
101 | 101 | |
102 | 102 | if (is_readable($absolutePath)) { |
103 | 103 | return $absolutePath; |
@@ -76,11 +76,11 @@ |
||
76 | 76 | foreach ($this->rules() AS $rule) { |
77 | 77 | $validator = new Validator(['container' => $this->container, 'rule' => $rule]); |
78 | 78 | if (is_string($js = $validator->run($this, true))) { |
79 | - $result .= ' ' . $js; |
|
79 | + $result .= ' '.$js; |
|
80 | 80 | } |
81 | 81 | } |
82 | 82 | |
83 | - return $result . '});'; |
|
83 | + return $result.'});'; |
|
84 | 84 | } |
85 | 85 | |
86 | 86 | /** |
@@ -208,7 +208,7 @@ |
||
208 | 208 | } |
209 | 209 | } |
210 | 210 | foreach ($this->config['buttons'] AS $button) { |
211 | - $type = $button['type'] . 'Button'; |
|
211 | + $type = $button['type'].'Button'; |
|
212 | 212 | echo Html::$type($button['label'], !empty($button['options']) ? $button['options'] : []); |
213 | 213 | } |
214 | 214 | } |
@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | $smallName = substr($cl, strrpos($cl, '\\') + 1); |
53 | 53 | |
54 | 54 | return [ |
55 | - 'id' => $smallName . '_' . $property, |
|
56 | - 'name' => $smallName . '[' . $property . ']', |
|
55 | + 'id' => $smallName.'_'.$property, |
|
56 | + 'name' => $smallName.'['.$property.']', |
|
57 | 57 | 'value' => property_exists($model, $property) ? $model->$property : null |
58 | 58 | ]; |
59 | 59 | } |
@@ -130,9 +130,9 @@ discard block |
||
130 | 130 | $element = $this->getField($model, $property); |
131 | 131 | $options['id'] = $element['id']; |
132 | 132 | |
133 | - return Html::openTag('div', $this->getBlock('block', $options)) . |
|
134 | - Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
|
135 | - $this->textField($model, $property, $options) . |
|
133 | + return Html::openTag('div', $this->getBlock('block', $options)). |
|
134 | + Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)). |
|
135 | + $this->textField($model, $property, $options). |
|
136 | 136 | Html::closeTag('div'); |
137 | 137 | } |
138 | 138 | |
@@ -194,9 +194,9 @@ discard block |
||
194 | 194 | $element = $this->getField($model, $property); |
195 | 195 | $options['id'] = $element['id']; |
196 | 196 | |
197 | - return Html::openTag('div', $this->getBlock('block', $options)) . |
|
198 | - Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
|
199 | - $this->fileField($model, $property, $options) . |
|
197 | + return Html::openTag('div', $this->getBlock('block', $options)). |
|
198 | + Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)). |
|
199 | + $this->fileField($model, $property, $options). |
|
200 | 200 | Html::closeTag('div'); |
201 | 201 | } |
202 | 202 | |
@@ -235,9 +235,9 @@ discard block |
||
235 | 235 | $element = $this->getField($model, $property); |
236 | 236 | $options['id'] = $element['id']; |
237 | 237 | |
238 | - return Html::openTag('div', $this->getBlock('block', $options)) . |
|
239 | - Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
|
240 | - $this->imageField($model, $property, $options) . |
|
238 | + return Html::openTag('div', $this->getBlock('block', $options)). |
|
239 | + Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)). |
|
240 | + $this->imageField($model, $property, $options). |
|
241 | 241 | Html::closeTag('div'); |
242 | 242 | } |
243 | 243 | |
@@ -277,9 +277,9 @@ discard block |
||
277 | 277 | $element = $this->getField($model, $property); |
278 | 278 | $options['id'] = $element['id']; |
279 | 279 | |
280 | - return Html::openTag('div', $this->getBlock('block', $options)) . |
|
281 | - Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
|
282 | - $this->passwordField($model, $property, $options) . |
|
280 | + return Html::openTag('div', $this->getBlock('block', $options)). |
|
281 | + Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)). |
|
282 | + $this->passwordField($model, $property, $options). |
|
283 | 283 | Html::closeTag('div'); |
284 | 284 | } |
285 | 285 | |
@@ -318,9 +318,9 @@ discard block |
||
318 | 318 | $element = $this->getField($model, $property); |
319 | 319 | $options['id'] = $element['id']; |
320 | 320 | |
321 | - return Html::openTag('div', $this->getBlock('block', $options)) . |
|
322 | - Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
|
323 | - $this->textAreaField($model, $property, $options) . |
|
321 | + return Html::openTag('div', $this->getBlock('block', $options)). |
|
322 | + Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)). |
|
323 | + $this->textAreaField($model, $property, $options). |
|
324 | 324 | Html::closeTag('div'); |
325 | 325 | } |
326 | 326 | |
@@ -359,9 +359,9 @@ discard block |
||
359 | 359 | $element = $this->getField($model, $property); |
360 | 360 | $options['id'] = $element['id']; |
361 | 361 | |
362 | - return Html::openTag('div', $this->getBlock('block', $options)) . |
|
363 | - Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
|
364 | - $this->checkBoxField($model, $property, $options) . |
|
362 | + return Html::openTag('div', $this->getBlock('block', $options)). |
|
363 | + Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)). |
|
364 | + $this->checkBoxField($model, $property, $options). |
|
365 | 365 | Html::closeTag('div'); |
366 | 366 | } |
367 | 367 | |
@@ -402,9 +402,9 @@ discard block |
||
402 | 402 | $element = $this->getField($model, $property); |
403 | 403 | $options['id'] = $element['id']; |
404 | 404 | |
405 | - return Html::openTag('div', $this->getBlock('block', $options)) . |
|
406 | - Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
|
407 | - $this->listBoxField($model, $property, $options) . |
|
405 | + return Html::openTag('div', $this->getBlock('block', $options)). |
|
406 | + Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)). |
|
407 | + $this->listBoxField($model, $property, $options). |
|
408 | 408 | Html::closeTag('div'); |
409 | 409 | } |
410 | 410 | |
@@ -448,9 +448,9 @@ discard block |
||
448 | 448 | $element = $this->getField($model, $property); |
449 | 449 | $options['id'] = $element['id']; |
450 | 450 | |
451 | - return Html::openTag('div', $this->getBlock('block', $options)) . |
|
452 | - Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
|
453 | - $this->dropDownListField($model, $property, $options) . |
|
451 | + return Html::openTag('div', $this->getBlock('block', $options)). |
|
452 | + Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)). |
|
453 | + $this->dropDownListField($model, $property, $options). |
|
454 | 454 | Html::closeTag('div'); |
455 | 455 | } |
456 | 456 | |
@@ -493,9 +493,9 @@ discard block |
||
493 | 493 | $element = $this->getField($model, $property); |
494 | 494 | $options['id'] = $element['id']; |
495 | 495 | |
496 | - return Html::openTag('div', $this->getBlock('block', $options)) . |
|
497 | - Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
|
498 | - $this->checkBoxListField($model, $property, $options) . |
|
496 | + return Html::openTag('div', $this->getBlock('block', $options)). |
|
497 | + Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)). |
|
498 | + $this->checkBoxListField($model, $property, $options). |
|
499 | 499 | Html::closeTag('div'); |
500 | 500 | } |
501 | 501 | |
@@ -535,9 +535,9 @@ discard block |
||
535 | 535 | $element = $this->getField($model, $property); |
536 | 536 | $options['id'] = $element['id']; |
537 | 537 | |
538 | - return Html::openTag('div', $this->getBlock('block', $options)) . |
|
539 | - Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
|
540 | - $this->radioButtonListField($model, $property, $options) . |
|
538 | + return Html::openTag('div', $this->getBlock('block', $options)). |
|
539 | + Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)). |
|
540 | + $this->radioButtonListField($model, $property, $options). |
|
541 | 541 | Html::closeTag('div'); |
542 | 542 | } |
543 | 543 | |
@@ -579,9 +579,9 @@ discard block |
||
579 | 579 | $element = $this->getField($model, $property); |
580 | 580 | $options['id'] = $element['id']; |
581 | 581 | |
582 | - return Html::openTag('div', $this->getBlock('block', $options)) . |
|
583 | - Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
|
584 | - $this->colorField($model, $property, $options) . |
|
582 | + return Html::openTag('div', $this->getBlock('block', $options)). |
|
583 | + Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)). |
|
584 | + $this->colorField($model, $property, $options). |
|
585 | 585 | Html::closeTag('div'); |
586 | 586 | } |
587 | 587 | |
@@ -620,9 +620,9 @@ discard block |
||
620 | 620 | $element = $this->getField($model, $property); |
621 | 621 | $options['id'] = $element['id']; |
622 | 622 | |
623 | - return Html::openTag('div', $this->getBlock('block', $options)) . |
|
624 | - Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
|
625 | - $this->dateField($model, $property, $options) . |
|
623 | + return Html::openTag('div', $this->getBlock('block', $options)). |
|
624 | + Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)). |
|
625 | + $this->dateField($model, $property, $options). |
|
626 | 626 | Html::closeTag('div'); |
627 | 627 | } |
628 | 628 | |
@@ -661,9 +661,9 @@ discard block |
||
661 | 661 | $element = $this->getField($model, $property); |
662 | 662 | $options['id'] = $element['id']; |
663 | 663 | |
664 | - return Html::openTag('div', $this->getBlock('block', $options)) . |
|
665 | - Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
|
666 | - $this->dateTimeField($model, $property, $options) . |
|
664 | + return Html::openTag('div', $this->getBlock('block', $options)). |
|
665 | + Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)). |
|
666 | + $this->dateTimeField($model, $property, $options). |
|
667 | 667 | Html::closeTag('div'); |
668 | 668 | } |
669 | 669 | |
@@ -702,9 +702,9 @@ discard block |
||
702 | 702 | $element = $this->getField($model, $property); |
703 | 703 | $options['id'] = $element['id']; |
704 | 704 | |
705 | - return Html::openTag('div', $this->getBlock('block', $options)) . |
|
706 | - Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
|
707 | - $this->dateTimeLocalField($model, $property, $options) . |
|
705 | + return Html::openTag('div', $this->getBlock('block', $options)). |
|
706 | + Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)). |
|
707 | + $this->dateTimeLocalField($model, $property, $options). |
|
708 | 708 | Html::closeTag('div'); |
709 | 709 | } |
710 | 710 | |
@@ -743,9 +743,9 @@ discard block |
||
743 | 743 | $element = $this->getField($model, $property); |
744 | 744 | $options['id'] = $element['id']; |
745 | 745 | |
746 | - return Html::openTag('div', $this->getBlock('block', $options)) . |
|
747 | - Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
|
748 | - $this->emailField($model, $property, $options) . |
|
746 | + return Html::openTag('div', $this->getBlock('block', $options)). |
|
747 | + Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)). |
|
748 | + $this->emailField($model, $property, $options). |
|
749 | 749 | Html::closeTag('div'); |
750 | 750 | } |
751 | 751 | |
@@ -784,9 +784,9 @@ discard block |
||
784 | 784 | $element = $this->getField($model, $property); |
785 | 785 | $options['id'] = $element['id']; |
786 | 786 | |
787 | - return Html::openTag('div', $this->getBlock('block', $options)) . |
|
788 | - Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
|
789 | - $this->numberField($model, $property, $options) . |
|
787 | + return Html::openTag('div', $this->getBlock('block', $options)). |
|
788 | + Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)). |
|
789 | + $this->numberField($model, $property, $options). |
|
790 | 790 | Html::closeTag('div'); |
791 | 791 | } |
792 | 792 | |
@@ -825,9 +825,9 @@ discard block |
||
825 | 825 | $element = $this->getField($model, $property); |
826 | 826 | $options['id'] = $element['id']; |
827 | 827 | |
828 | - return Html::openTag('div', $this->getBlock('block', $options)) . |
|
829 | - Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
|
830 | - $this->rangeField($model, $property, $options) . |
|
828 | + return Html::openTag('div', $this->getBlock('block', $options)). |
|
829 | + Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)). |
|
830 | + $this->rangeField($model, $property, $options). |
|
831 | 831 | Html::closeTag('div'); |
832 | 832 | } |
833 | 833 | |
@@ -866,9 +866,9 @@ discard block |
||
866 | 866 | $element = $this->getField($model, $property); |
867 | 867 | $options['id'] = $element['id']; |
868 | 868 | |
869 | - return Html::openTag('div', $this->getBlock('block', $options)) . |
|
870 | - Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
|
871 | - $this->searchField($model, $property, $options) . |
|
869 | + return Html::openTag('div', $this->getBlock('block', $options)). |
|
870 | + Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)). |
|
871 | + $this->searchField($model, $property, $options). |
|
872 | 872 | Html::closeTag('div'); |
873 | 873 | } |
874 | 874 | |
@@ -907,9 +907,9 @@ discard block |
||
907 | 907 | $element = $this->getField($model, $property); |
908 | 908 | $options['id'] = $element['id']; |
909 | 909 | |
910 | - return Html::openTag('div', $this->getBlock('block', $options)) . |
|
911 | - Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
|
912 | - $this->telField($model, $property, $options) . |
|
910 | + return Html::openTag('div', $this->getBlock('block', $options)). |
|
911 | + Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)). |
|
912 | + $this->telField($model, $property, $options). |
|
913 | 913 | Html::closeTag('div'); |
914 | 914 | } |
915 | 915 | |
@@ -948,9 +948,9 @@ discard block |
||
948 | 948 | $element = $this->getField($model, $property); |
949 | 949 | $options['id'] = $element['id']; |
950 | 950 | |
951 | - return Html::openTag('div', $this->getBlock('block', $options)) . |
|
952 | - Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
|
953 | - $this->timeField($model, $property, $options) . |
|
951 | + return Html::openTag('div', $this->getBlock('block', $options)). |
|
952 | + Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)). |
|
953 | + $this->timeField($model, $property, $options). |
|
954 | 954 | Html::closeTag('div'); |
955 | 955 | } |
956 | 956 | |
@@ -989,9 +989,9 @@ discard block |
||
989 | 989 | $element = $this->getField($model, $property); |
990 | 990 | $options['id'] = $element['id']; |
991 | 991 | |
992 | - return Html::openTag('div', $this->getBlock('block', $options)) . |
|
993 | - Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
|
994 | - $this->urlField($model, $property, $options) . |
|
992 | + return Html::openTag('div', $this->getBlock('block', $options)). |
|
993 | + Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)). |
|
994 | + $this->urlField($model, $property, $options). |
|
995 | 995 | Html::closeTag('div'); |
996 | 996 | } |
997 | 997 | |
@@ -1030,9 +1030,9 @@ discard block |
||
1030 | 1030 | $element = $this->getField($model, $property); |
1031 | 1031 | $options['id'] = $element['id']; |
1032 | 1032 | |
1033 | - return Html::openTag('div', $this->getBlock('block', $options)) . |
|
1034 | - Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
|
1035 | - $this->monthField($model, $property, $options) . |
|
1033 | + return Html::openTag('div', $this->getBlock('block', $options)). |
|
1034 | + Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)). |
|
1035 | + $this->monthField($model, $property, $options). |
|
1036 | 1036 | Html::closeTag('div'); |
1037 | 1037 | } |
1038 | 1038 | |
@@ -1071,9 +1071,9 @@ discard block |
||
1071 | 1071 | $element = $this->getField($model, $property); |
1072 | 1072 | $options['id'] = $element['id']; |
1073 | 1073 | |
1074 | - return Html::openTag('div', $this->getBlock('block', $options)) . |
|
1075 | - Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)) . |
|
1076 | - $this->weekField($model, $property, $options) . |
|
1074 | + return Html::openTag('div', $this->getBlock('block', $options)). |
|
1075 | + Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)). |
|
1076 | + $this->weekField($model, $property, $options). |
|
1077 | 1077 | Html::closeTag('div'); |
1078 | 1078 | } |
1079 | 1079 |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | */ |
80 | 80 | public function setSubject($text) |
81 | 81 | { |
82 | - $this->subject = '=?utf-8?B?' . base64_encode($text) . '?='; |
|
82 | + $this->subject = '=?utf-8?B?'.base64_encode($text).'?='; |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | /** |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | */ |
118 | 118 | public function setHeaders($name, $value) |
119 | 119 | { |
120 | - $this->headers[$name] = $name . ': ' . $value; |
|
120 | + $this->headers[$name] = $name.': '.$value; |
|
121 | 121 | } |
122 | 122 | |
123 | 123 | /** |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | return false; |
130 | 130 | } |
131 | 131 | |
132 | - return implode("\r\n", array_values($this->params)) . "\r\n"; |
|
132 | + return implode("\r\n", array_values($this->params))."\r\n"; |
|
133 | 133 | } |
134 | 134 | |
135 | 135 | /** |
@@ -137,6 +137,6 @@ discard block |
||
137 | 137 | */ |
138 | 138 | public function setParams($name, $value) |
139 | 139 | { |
140 | - $this->params[$name] = $name . ': ' . $value; |
|
140 | + $this->params[$name] = $name.': '.$value; |
|
141 | 141 | } |
142 | 142 | } |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | parent::__construct($container); |
49 | 49 | |
50 | 50 | if (!static::$tableName) { |
51 | - throw new Exception('Table name not set in `' . __CLASS__ . '`` model.'); |
|
51 | + throw new Exception('Table name not set in `'.__CLASS__.'`` model.'); |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | $this->_isNewRecord = $new; |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | public static function finder(IQuery $query = null, $single = false, IContainer $container = null) |
111 | 111 | { |
112 | 112 | $query = ($query instanceof Query) ? $query : new Query($container->db); |
113 | - $query->table = static::$tableName . ' `m`'; |
|
113 | + $query->table = static::$tableName.' `m`'; |
|
114 | 114 | $query->objectName = get_called_class(); |
115 | 115 | $query->single = $single; |
116 | 116 | |
@@ -378,7 +378,7 @@ discard block |
||
378 | 378 | $where .= '`'.self::$primaryKey.'` = :'.self::$primaryKey; |
379 | 379 | } else { |
380 | 380 | throw new Exception($this->container, |
381 | - 'In table ' . static::$tableName . ' option `id` not defined/not use.' |
|
381 | + 'In table '.static::$tableName.' option `id` not defined/not use.' |
|
382 | 382 | ); |
383 | 383 | } |
384 | 384 | } |
@@ -422,7 +422,7 @@ discard block |
||
422 | 422 | } |
423 | 423 | if ($this->beforeDelete()) { |
424 | 424 | if (!self::$primaryKey) { |
425 | - throw new Exception('In table ' . static::$tableName . ' option `id` not defined/not use.'); |
|
425 | + throw new Exception('In table '.static::$tableName.' option `id` not defined/not use.'); |
|
426 | 426 | } |
427 | 427 | |
428 | 428 | if ( |