@@ -29,6 +29,9 @@ discard block  | 
                                                    ||
| 29 | 29 | public $params = [];  | 
                                                        
| 30 | 30 | public $distinct = false;  | 
                                                        
| 31 | 31 | |
| 32 | + /**  | 
                                                        |
| 33 | + * @param $instance  | 
                                                        |
| 34 | + */  | 
                                                        |
| 32 | 35 | function __construct($instance = null)  | 
                                                        
| 33 | 36 |      { | 
                                                        
| 34 | 37 |          if (!$instance) { | 
                                                        
@@ -47,6 +50,9 @@ discard block  | 
                                                    ||
| 47 | 50 | return $this->curInstance->pdo->lastInsertId();  | 
                                                        
| 48 | 51 | }  | 
                                                        
| 49 | 52 | |
| 53 | + /**  | 
                                                        |
| 54 | + * @param string $table  | 
                                                        |
| 55 | + */  | 
                                                        |
| 50 | 56 | public function select($table)  | 
                                                        
| 51 | 57 |      { | 
                                                        
| 52 | 58 | $this->operation = 'SELECT';  | 
                                                        
@@ -22,7 +22,7 @@  | 
                                                    ||
| 22 | 22 |              if (!empty($_SESSION['_INJI_MSG'])) { | 
                                                        
| 23 | 23 |                  foreach ($_SESSION['_INJI_MSG'] as $key => $msg) { | 
                                                        
| 24 | 24 |                      if ($msg['text'] == $text) { | 
                                                        
| 25 | - $msg['count'] ++;  | 
                                                        |
| 25 | + $msg['count']++;  | 
                                                        |
| 26 | 26 | return true;  | 
                                                        
| 27 | 27 | }  | 
                                                        
| 28 | 28 | }  | 
                                                        
@@ -39,7 +39,7 @@  | 
                                                    ||
| 39 | 39 | static $forms = [  | 
                                                        
| 40 | 40 | 'manager' => [  | 
                                                        
| 41 | 41 | 'map' => [  | 
                                                        
| 42 | - ['price', 'currency_id',],  | 
                                                        |
| 42 | + ['price', 'currency_id', ],  | 
                                                        |
| 43 | 43 | ['item_offer_price_type_id', 'item_offer_id']  | 
                                                        
| 44 | 44 | ]  | 
                                                        
| 45 | 45 | ]];  | 
                                                        
@@ -178,15 +178,15 @@ discard block  | 
                                                    ||
| 178 | 178 |      public function cutTag($source, $rawTag) { | 
                                                        
| 179 | 179 | $pos = strpos($source, $rawTag) - 1;  | 
                                                        
| 180 | 180 | echo substr($source, 0, $pos);  | 
                                                        
| 181 | - return substr($source, ( $pos + strlen($rawTag) + 2));  | 
                                                        |
| 181 | + return substr($source, ($pos + strlen($rawTag) + 2));  | 
                                                        |
| 182 | 182 | }  | 
                                                        
| 183 | 183 | |
| 184 | 184 |      public function getHref($type, $params) { | 
                                                        
| 185 | 185 | $href = '';  | 
                                                        
| 186 | 186 |          if (is_string($params)) { | 
                                                        
| 187 | - $href = ($this->app->type != 'app' ? '/' . $this->app->name : '' ) . $params;  | 
                                                        |
| 187 | + $href = ($this->app->type != 'app' ? '/' . $this->app->name : '') . $params;  | 
                                                        |
| 188 | 188 |          } elseif (empty($params['template']) && !empty($params['file'])) { | 
                                                        
| 189 | - $href = ($this->app->type != 'app' ? '/' . $this->app->name : '' ) . $params['file'];  | 
                                                        |
| 189 | + $href = ($this->app->type != 'app' ? '/' . $this->app->name : '') . $params['file'];  | 
                                                        |
| 190 | 190 |          } elseif (!empty($params['template']) && !empty($params['file'])) { | 
                                                        
| 191 | 191 |              $href = $this->app->templatesPath . "/{$this->template->name}/{$type}/{$params['file']}"; | 
                                                        
| 192 | 192 | }  | 
                                                        
@@ -340,7 +340,7 @@ discard block  | 
                                                    ||
| 340 | 340 |                      if (strpos($css, '//') !== false) { | 
                                                        
| 341 | 341 | $href = $css;  | 
                                                        
| 342 | 342 |                      } else { | 
                                                        
| 343 | - $href = ($this->app->type != 'app' ? '/' . $this->app->name : '' ) . $css;  | 
                                                        |
| 343 | + $href = ($this->app->type != 'app' ? '/' . $this->app->name : '') . $css;  | 
                                                        |
| 344 | 344 | }  | 
                                                        
| 345 | 345 | $hrefs[$href] = $href;  | 
                                                        
| 346 | 346 | }  |