@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package Comments |
|
4 | - * @category modules |
|
5 | - * @author Nazar Mokrynskyi <[email protected]> |
|
6 | - * @copyright Copyright (c) 2011-2015, Nazar Mokrynskyi |
|
7 | - * @license MIT License, see license.txt |
|
8 | - */ |
|
3 | + * @package Comments |
|
4 | + * @category modules |
|
5 | + * @author Nazar Mokrynskyi <[email protected]> |
|
6 | + * @copyright Copyright (c) 2011-2015, Nazar Mokrynskyi |
|
7 | + * @license MIT License, see license.txt |
|
8 | + */ |
|
9 | 9 | namespace cs\modules\Comments; |
10 | 10 | use |
11 | 11 | cs\Cache, |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package Composer |
|
4 | - * @category modules |
|
5 | - * @author Nazar Mokrynskyi <[email protected]> |
|
6 | - * @copyright Copyright (c) 2015, Nazar Mokrynskyi |
|
7 | - * @license MIT License, see license.txt |
|
8 | - */ |
|
3 | + * @package Composer |
|
4 | + * @category modules |
|
5 | + * @author Nazar Mokrynskyi <[email protected]> |
|
6 | + * @copyright Copyright (c) 2015, Nazar Mokrynskyi |
|
7 | + * @license MIT License, see license.txt |
|
8 | + */ |
|
9 | 9 | namespace cs\modules\Composer; |
10 | 10 | use |
11 | 11 | cs\Config, |
@@ -13,33 +13,33 @@ discard block |
||
13 | 13 | cs\Singleton, |
14 | 14 | Symfony\Component\Console\Input\ArrayInput; |
15 | 15 | /** |
16 | - * Provides next events: |
|
17 | - * Composer/generate_package |
|
18 | - * [ |
|
19 | - * 'package' => &$package, //Composer package generated, might be modified |
|
20 | - * 'meta' => $meta //Parsed `meta.json` for component, package is generated for |
|
21 | - * ] |
|
22 | - * |
|
23 | - * Composer/generate_composer_json |
|
24 | - * [ |
|
25 | - * 'composer_json' => &$composer_json //`composer.json` structure that will be used for dependencies installation, might be modified |
|
26 | - * 'auth_json' => &$auth_json //`auth.json` structure that will be used for auth credentials during dependencies installation, might be modified |
|
27 | - * ] |
|
28 | - * |
|
29 | - * Composer/Composer |
|
30 | - * [ |
|
31 | - * 'Composer' => $Composer //Instance of `\Composer\Composer`, so that it is possible, for instance, to inject some plugins manually |
|
32 | - * ] |
|
33 | - * |
|
34 | - * Composer/updated |
|
35 | - * [ |
|
36 | - * 'composer_json' => $composer_json, //`composer.json` structure that was used for dependencies installation |
|
37 | - * 'composer_lock' => $composer_lock //`composer.lock` structure that was generated during dependencies installation |
|
38 | - * 'composer_root' => $composer_root //Path to directory where dependencies were installed, and where `composer.json` and `composer.lock` are located |
|
39 | - * ] |
|
40 | - * |
|
41 | - * @method static Composer instance($check = false) |
|
42 | - */ |
|
16 | + * Provides next events: |
|
17 | + * Composer/generate_package |
|
18 | + * [ |
|
19 | + * 'package' => &$package, //Composer package generated, might be modified |
|
20 | + * 'meta' => $meta //Parsed `meta.json` for component, package is generated for |
|
21 | + * ] |
|
22 | + * |
|
23 | + * Composer/generate_composer_json |
|
24 | + * [ |
|
25 | + * 'composer_json' => &$composer_json //`composer.json` structure that will be used for dependencies installation, might be modified |
|
26 | + * 'auth_json' => &$auth_json //`auth.json` structure that will be used for auth credentials during dependencies installation, might be modified |
|
27 | + * ] |
|
28 | + * |
|
29 | + * Composer/Composer |
|
30 | + * [ |
|
31 | + * 'Composer' => $Composer //Instance of `\Composer\Composer`, so that it is possible, for instance, to inject some plugins manually |
|
32 | + * ] |
|
33 | + * |
|
34 | + * Composer/updated |
|
35 | + * [ |
|
36 | + * 'composer_json' => $composer_json, //`composer.json` structure that was used for dependencies installation |
|
37 | + * 'composer_lock' => $composer_lock //`composer.lock` structure that was generated during dependencies installation |
|
38 | + * 'composer_root' => $composer_root //Path to directory where dependencies were installed, and where `composer.json` and `composer.lock` are located |
|
39 | + * ] |
|
40 | + * |
|
41 | + * @method static Composer instance($check = false) |
|
42 | + */ |
|
43 | 43 | class Composer { |
44 | 44 | use |
45 | 45 | Singleton; |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | $verbosity => true |
121 | 121 | ] |
122 | 122 | ); |
123 | - $output = new Output; |
|
123 | + $output = new Output; |
|
124 | 124 | $output->set_stream(fopen("$storage/last_execution.log", 'w')); |
125 | 125 | $application->setAutoExit(false); |
126 | 126 | $status_code = $application->run($input, $output); |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | 'repositories' => [], |
192 | 192 | 'require' => [] |
193 | 193 | ]; |
194 | - $Config = Config::instance(); |
|
194 | + $Config = Config::instance(); |
|
195 | 195 | foreach (array_keys($Config->components['modules']) as $module) { |
196 | 196 | if ( |
197 | 197 | $module == $component_name && |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | if (!$package['require']) { |
267 | 267 | return; |
268 | 268 | } |
269 | - $composer['repositories'][] = [ |
|
269 | + $composer['repositories'][] = [ |
|
270 | 270 | 'type' => 'package', |
271 | 271 | 'package' => $package |
272 | 272 | ]; |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package Composer |
|
4 | - * @category modules |
|
5 | - * @author Nazar Mokrynskyi <[email protected]> |
|
6 | - * @copyright Copyright (c) 2015, Nazar Mokrynskyi |
|
7 | - * @license MIT License, see license.txt |
|
8 | - */ |
|
3 | + * @package Composer |
|
4 | + * @category modules |
|
5 | + * @author Nazar Mokrynskyi <[email protected]> |
|
6 | + * @copyright Copyright (c) 2015, Nazar Mokrynskyi |
|
7 | + * @license MIT License, see license.txt |
|
8 | + */ |
|
9 | 9 | namespace cs\modules\Composer; |
10 | 10 | use |
11 | 11 | cs\Event; |
@@ -31,7 +31,7 @@ |
||
31 | 31 | 'content' => null, //Is set in constructor |
32 | 32 | 'type' => 'set:text,html' |
33 | 33 | ]; |
34 | - protected $table = '[prefix]content'; |
|
34 | + protected $table = '[prefix]content'; |
|
35 | 35 | /** |
36 | 36 | * @var Prefix |
37 | 37 | */ |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package Content |
|
4 | - * @category modules |
|
5 | - * @author Nazar Mokrynskyi <[email protected]> |
|
6 | - * @copyright Copyright (c) 2014-2015, Nazar Mokrynskyi |
|
7 | - * @license MIT License, see license.txt |
|
8 | - */ |
|
3 | + * @package Content |
|
4 | + * @category modules |
|
5 | + * @author Nazar Mokrynskyi <[email protected]> |
|
6 | + * @copyright Copyright (c) 2014-2015, Nazar Mokrynskyi |
|
7 | + * @license MIT License, see license.txt |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace cs\modules\Content; |
11 | 11 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package Content |
|
4 | - * @category modules |
|
5 | - * @author Nazar Mokrynskyi <[email protected]> |
|
6 | - * @copyright Copyright (c) 2014-2015, Nazar Mokrynskyi |
|
7 | - * @license MIT License, see license.txt |
|
8 | - */ |
|
3 | + * @package Content |
|
4 | + * @category modules |
|
5 | + * @author Nazar Mokrynskyi <[email protected]> |
|
6 | + * @copyright Copyright (c) 2014-2015, Nazar Mokrynskyi |
|
7 | + * @license MIT License, see license.txt |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace cs; |
11 | 11 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package Content |
|
4 | - * @category modules |
|
5 | - * @author Nazar Mokrynskyi <[email protected]> |
|
6 | - * @copyright Copyright (c) 2014-2015, Nazar Mokrynskyi |
|
7 | - * @license MIT License, see license.txt |
|
8 | - */ |
|
3 | + * @package Content |
|
4 | + * @category modules |
|
5 | + * @author Nazar Mokrynskyi <[email protected]> |
|
6 | + * @copyright Copyright (c) 2014-2015, Nazar Mokrynskyi |
|
7 | + * @license MIT License, see license.txt |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace cs\modules\Content; |
11 | 11 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package Cron |
|
4 | - * @category modules |
|
5 | - * @author Nazar Mokrynskyi <[email protected]> |
|
6 | - * @copyright Copyright (c) 2011-2015, Nazar Mokrynskyi |
|
7 | - * @license MIT License, see license.txt |
|
8 | - */ |
|
3 | + * @package Cron |
|
4 | + * @category modules |
|
5 | + * @author Nazar Mokrynskyi <[email protected]> |
|
6 | + * @copyright Copyright (c) 2011-2015, Nazar Mokrynskyi |
|
7 | + * @license MIT License, see license.txt |
|
8 | + */ |
|
9 | 9 | namespace cs; |
10 | 10 | if (isset($_POST['save'], $_POST['tasks'])) { |
11 | 11 | $filename = TEMP.'/'.uniqid('cron'); |
@@ -8,7 +8,7 @@ |
||
8 | 8 | */ |
9 | 9 | namespace cs; |
10 | 10 | if (isset($_POST['save'], $_POST['tasks'])) { |
11 | - $filename = TEMP.'/'.uniqid('cron'); |
|
11 | + $filename = TEMP.'/'.uniqid('cron'); |
|
12 | 12 | $tasks = _trim(explode("\n", trim($_POST['tasks']))); |
13 | 13 | $tasks = implode("\n", $tasks); |
14 | 14 | file_put_contents($filename, "$tasks\n"); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | 'module' => 'text', |
32 | 32 | 'data' => null //Is set in constructor |
33 | 33 | ]; |
34 | - protected $table = '[prefix]deferred_tasks_tasks'; |
|
34 | + protected $table = '[prefix]deferred_tasks_tasks'; |
|
35 | 35 | /** |
36 | 36 | * @var int |
37 | 37 | */ |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package Deferred tasks |
|
4 | - * @category modules |
|
5 | - * @author Nazar Mokrynskyi <[email protected]> |
|
6 | - * @copyright Copyright (c) 2013-2015, Nazar Mokrynskyi |
|
7 | - * @license MIT License, see license.txt |
|
8 | - */ |
|
3 | + * @package Deferred tasks |
|
4 | + * @category modules |
|
5 | + * @author Nazar Mokrynskyi <[email protected]> |
|
6 | + * @copyright Copyright (c) 2013-2015, Nazar Mokrynskyi |
|
7 | + * @license MIT License, see license.txt |
|
8 | + */ |
|
9 | 9 | namespace cs\modules\Deferred_tasks; |
10 | 10 | use |
11 | 11 | cs\ExitException, |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @package Deferred tasks |
|
4 | - * @category modules |
|
5 | - * @author Nazar Mokrynskyi <[email protected]> |
|
6 | - * @copyright Copyright (c) 2013-2015, Nazar Mokrynskyi |
|
7 | - * @license MIT License, see license.txt |
|
8 | - */ |
|
3 | + * @package Deferred tasks |
|
4 | + * @category modules |
|
5 | + * @author Nazar Mokrynskyi <[email protected]> |
|
6 | + * @copyright Copyright (c) 2013-2015, Nazar Mokrynskyi |
|
7 | + * @license MIT License, see license.txt |
|
8 | + */ |
|
9 | 9 | namespace cs; |
10 | 10 | if (isset($_POST['general'])) { |
11 | 11 | Config::instance()->module('Deferred_tasks')->set($_POST['general']); |