@@ -144,7 +144,7 @@ |
||
144 | 144 | } |
145 | 145 | |
146 | 146 | $result->content['rows'] = ob_get_contents(); |
147 | - $result->content['summary'] = $dataManager->getSummary($request['params'], $request['model']); |
|
147 | + $result->content['summary'] = $dataManager->getSummary($request['params'], $request['model']); |
|
148 | 148 | ob_clean(); |
149 | 149 | |
150 | 150 | $result->content['pages'] = ''; |
@@ -94,6 +94,6 @@ |
||
94 | 94 | if ($tariff == 139) { |
95 | 95 | return ['online', 'courier']; |
96 | 96 | } |
97 | - return ['online','inPickPoint']; |
|
97 | + return ['online', 'inPickPoint']; |
|
98 | 98 | } |
99 | 99 | } |
100 | 100 | \ No newline at end of file |
@@ -452,6 +452,9 @@ |
||
452 | 452 | } |
453 | 453 | } |
454 | 454 | |
455 | + /** |
|
456 | + * @param string $dir |
|
457 | + */ |
|
455 | 458 | public static function getDirContents($dir, &$results = array(), $curPath = '') { |
456 | 459 | $files = scandir($dir); |
457 | 460 | foreach ($files as $key => $value) { |
@@ -89,6 +89,9 @@ |
||
89 | 89 | App::$cur->log->forceView = $bool; |
90 | 90 | } |
91 | 91 | |
92 | + /** |
|
93 | + * @param integer $size |
|
94 | + */ |
|
92 | 95 | public function convertSize($size) { |
93 | 96 | |
94 | 97 | if ($size < 1024) { |
@@ -69,6 +69,9 @@ |
||
69 | 69 | return $path; |
70 | 70 | } |
71 | 71 | |
72 | + /** |
|
73 | + * @param string $item |
|
74 | + */ |
|
72 | 75 | function unserialize($item) { |
73 | 76 | return $this->serializer()->unserialize($item); |
74 | 77 | } |
@@ -112,7 +112,7 @@ |
||
112 | 112 | $deleteIf = json_decode($this->object->delete_empty, true); |
113 | 113 | foreach ($deleteIf['params'] as $paramId) { |
114 | 114 | if ($model->{$this->object->params[$paramId]->value} === '') { |
115 | - if($model->pk()){ |
|
115 | + if ($model->pk()) { |
|
116 | 116 | $model->delete(); |
117 | 117 | } |
118 | 118 | return 0; |
@@ -112,7 +112,7 @@ |
||
112 | 112 | $deleteIf = json_decode($this->object->delete_empty, true); |
113 | 113 | foreach ($deleteIf['params'] as $paramId) { |
114 | 114 | if ($model->{$this->object->params[$paramId]->value} === '') { |
115 | - if($model->pk()){ |
|
115 | + if($model->pk()) { |
|
116 | 116 | $model->delete(); |
117 | 117 | } |
118 | 118 | return 0; |