Completed
Push — master ( a2f21f...eead40 )
by Nazar
04:19
created
components/modules/Http_server/functions.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 	 *
19 19
 	 * @return object[]
20 20
 	 */
21
-	function &objects_pool ($update_objects_pool = null) {
21
+	function &objects_pool($update_objects_pool = null) {
22 22
 		static $objects_pool = [];
23 23
 		if (is_array($update_objects_pool)) {
24 24
 			$objects_pool = $update_objects_pool;
@@ -231,10 +231,10 @@  discard block
 block discarded – undo
231 231
 			 * Try to load classes from different places. If not found in one place - try in another.
232 232
 			 */
233 233
 			if (
234
-				_require_once($file = DIR."/core/classes/$namespace/$class_name.php", false) ||    //Core classes
234
+				_require_once($file = DIR."/core/classes/$namespace/$class_name.php", false) || //Core classes
235 235
 				_require_once($file = DIR."/core/thirdparty/$namespace/$class_name.php", false) || //Third party classes
236
-				_require_once($file = DIR."/core/traits/$namespace/$class_name.php", false) ||     //Core traits
237
-				_require_once($file = ENGINES."/$namespace/$class_name.php", false) ||             //Core engines
236
+				_require_once($file = DIR."/core/traits/$namespace/$class_name.php", false) || //Core traits
237
+				_require_once($file = ENGINES."/$namespace/$class_name.php", false) || //Core engines
238 238
 				_require_once($file = MODULES."/../$namespace/$class_name.php", false)             //Classes in modules and plugins
239 239
 			) {
240 240
 				$cache[$class] = realpath($file);
Please login to merge, or discard this patch.
components/modules/Http_server/run_pool.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package   Http server
4
- * @category  modules
5
- * @author    Nazar Mokrynskyi <[email protected]>
6
- * @copyright Copyright (c) 2015-2016, Nazar Mokrynskyi
7
- * @license   MIT License, see license.txt
8
- */
3
+	 * @package   Http server
4
+	 * @category  modules
5
+	 * @author    Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright Copyright (c) 2015-2016, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 namespace cs\modules\Http_server;
10 10
 /**
11
- * Running Http server in background on any platform
12
- *
13
- * @param int  $port
14
- */
11
+	 * Running Http server in background on any platform
12
+	 *
13
+	 * @param int  $port
14
+	 */
15 15
 function cross_platform_server_in_background ($port) {
16 16
 	$exec       = defined('HHVM_VERSION') ? 'hhvm' : 'php';
17 17
 	$supervisor = 'php '.__DIR__.'/supervisor.php';
Please login to merge, or discard this patch.
components/modules/Http_server/run_server.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package   Http server
4
- * @category  modules
5
- * @author    Nazar Mokrynskyi <[email protected]>
6
- * @copyright Copyright (c) 2015-2016, Nazar Mokrynskyi
7
- * @license   MIT License, see license.txt
8
- */
3
+	 * @package   Http server
4
+	 * @category  modules
5
+	 * @author    Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright Copyright (c) 2015-2016, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 use
10 10
 	cs\modules\Http_server\Request;
11 11
 /**
12
- * Time of start of execution, is used as current time
13
- */
12
+	 * Time of start of execution, is used as current time
13
+	 */
14 14
 define('MICROTIME', microtime(true));         //Time in seconds (float)
15 15
 define('TIME', floor(MICROTIME));             //Time in seconds (integer)
16 16
 define('DIR', realpath(__DIR__.'/../../..')); //Root directory
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
 }
25 25
 require_once __DIR__.'/custom_loader.php';
26 26
 /**
27
- * Manually require composer autoloader because otherwise it will be included much later
28
- */
27
+	 * Manually require composer autoloader because otherwise it will be included much later
28
+	 */
29 29
 require_once STORAGE.'/Composer/vendor/autoload.php';
30 30
 $loop   = React\EventLoop\Factory::create();
31 31
 $socket = new React\Socket\Server($loop);
Please login to merge, or discard this patch.