@@ -22,6 +22,9 @@ discard block |
||
22 | 22 | } |
23 | 23 | } |
24 | 24 | |
25 | + /** |
|
26 | + * @param string $path |
|
27 | + */ |
|
25 | 28 | public static function installComposer($path) { |
26 | 29 | if (file_exists($path . '/composer/bin/composer')) { |
27 | 30 | return true; |
@@ -74,6 +77,10 @@ discard block |
||
74 | 77 | self::command('install', false, $path); |
75 | 78 | } |
76 | 79 | |
80 | + /** |
|
81 | + * @param string $command |
|
82 | + * @param string $path |
|
83 | + */ |
|
77 | 84 | public static function command($command, $needOutput = true, $path = null) { |
78 | 85 | ini_set('memory_limit', '2000M'); |
79 | 86 | include_once getenv('COMPOSER_HOME') . '/composer/vendor/autoload.php'; |
@@ -31,6 +31,9 @@ |
||
31 | 31 | public $params = []; |
32 | 32 | public $distinct = false; |
33 | 33 | |
34 | + /** |
|
35 | + * @param $instance |
|
36 | + */ |
|
34 | 37 | public function __construct($instance = null) { |
35 | 38 | if (!$instance) { |
36 | 39 | $this->curInstance = \App::$cur->db->connection; |