Completed
Branch master (0964ce)
by Nazar
04:13
created
components/modules/Http_server/run_pool.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,18 +1,18 @@
 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, 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, 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
- * @param bool $async
15
- */
11
+	 * Running Http server in background on any platform
12
+	 *
13
+	 * @param int  $port
14
+	 * @param bool $async
15
+	 */
16 16
 function cross_platform_server_in_background ($port, $async) {
17 17
 	$exec       = defined('HHVM_VERSION') ? 'hhvm' : 'php';
18 18
 	$async      = $async ? '-a' : '';
Please login to merge, or discard this patch.
components/modules/Http_server/run_server.php 2 patches
Indentation   +12 added lines, -12 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, 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, 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
@@ -26,14 +26,14 @@  discard block
 block discarded – undo
26 26
 	}
27 27
 }
28 28
 /**
29
- * Whether server should be ready for asynchronous processing (is not - more optimizations might be applied)
30
- */
29
+	 * Whether server should be ready for asynchronous processing (is not - more optimizations might be applied)
30
+	 */
31 31
 define('ASYNC_HTTP_SERVER', $async);
32 32
 unset($async);
33 33
 require_once __DIR__.'/custom_loader.php';
34 34
 /**
35
- * Manually require composer autoloader because otherwise it will be included much later
36
- */
35
+	 * Manually require composer autoloader because otherwise it will be included much later
36
+	 */
37 37
 require_once STORAGE.'/Composer/vendor/autoload.php';
38 38
 $loop   = React\EventLoop\Factory::create();
39 39
 $socket = new React\Socket\Server($loop);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@
 block discarded – undo
11 11
 /**
12 12
  * Time of start of execution, is used as current time
13 13
  */
14
-define('MICROTIME', microtime(true));         //Time in seconds (float)
15
-define('TIME', floor(MICROTIME));             //Time in seconds (integer)
14
+define('MICROTIME', microtime(true)); //Time in seconds (float)
15
+define('TIME', floor(MICROTIME)); //Time in seconds (integer)
16 16
 define('DIR', realpath(__DIR__.'/../../..')); //Root directory
17 17
 chdir(DIR);
18 18
 $async = false;
Please login to merge, or discard this patch.
components/modules/Http_server/supervisor.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 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, 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, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 if ($argc < 2) {
10 10
 	echo "Supervisor takes command as argument and execute it. If command stops for some reason - supervisor will start it again in 1 second and will do that until alive itself.\nUsage: php supervisor.php 'some-command'";
11 11
 	return;
Please login to merge, or discard this patch.
components/modules/HybridAuth/Controller.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package   HybridAuth
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   HybridAuth
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\HybridAuth;
10 10
 use
11 11
 	Exception,
@@ -23,27 +23,27 @@  discard block
 block discarded – undo
23 23
 	cs\Session,
24 24
 	cs\User;
25 25
 /**
26
- * Provides next events:
27
- *  HybridAuth/registration/before
28
- *  [
29
- *   'provider'   => provider   //Provider name
30
- *   'email'      => email      //Email
31
- *   'identifier' => identifier //Identifier given by provider
32
- *   'profile'    => profile    //Profile url
33
- *  ]
34
- *
35
- *  HybridAuth/add_session/before
36
- *  [
37
- *   'adapter'  => $Adapter //instance of Hybrid_Provider_Adapter
38
- *   'provider' => provider //Provider name
39
- *  ]
40
- *
41
- *  HybridAuth/add_session/after
42
- *  [
43
- *   'adapter'  => $Adapter //instance of Hybrid_Provider_Adapter
44
- *   'provider' => provider //Provider name
45
- *  ]
46
- */
26
+	 * Provides next events:
27
+	 *  HybridAuth/registration/before
28
+	 *  [
29
+	 *   'provider'   => provider   //Provider name
30
+	 *   'email'      => email      //Email
31
+	 *   'identifier' => identifier //Identifier given by provider
32
+	 *   'profile'    => profile    //Profile url
33
+	 *  ]
34
+	 *
35
+	 *  HybridAuth/add_session/before
36
+	 *  [
37
+	 *   'adapter'  => $Adapter //instance of Hybrid_Provider_Adapter
38
+	 *   'provider' => provider //Provider name
39
+	 *  ]
40
+	 *
41
+	 *  HybridAuth/add_session/after
42
+	 *  [
43
+	 *   'adapter'  => $Adapter //instance of Hybrid_Provider_Adapter
44
+	 *   'provider' => provider //Provider name
45
+	 *  ]
46
+	 */
47 47
 class Controller {
48 48
 	static function index () {
49 49
 		$route = Route::instance()->route;
Please login to merge, or discard this patch.
components/modules/HybridAuth/Social_integration.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package   HybridAuth
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   HybridAuth
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\HybridAuth;
10 10
 use
11 11
 	cs\Cache,
@@ -14,8 +14,8 @@  discard block
 block discarded – undo
14 14
 	cs\DB\Accessor,
15 15
 	cs\Singleton;
16 16
 /**
17
- * @method static Social_integration instance($check = false)
18
- */
17
+	 * @method static Social_integration instance($check = false)
18
+	 */
19 19
 class Social_integration {
20 20
 	use
21 21
 		Accessor,
Please login to merge, or discard this patch.
components/modules/HybridAuth/events.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package   HybridAuth
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   HybridAuth
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
 Event::instance()->on(
11 11
 	'System/User/construct/after',
Please login to merge, or discard this patch.
components/modules/HybridAuth/events/enabled.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 						return strtolower($provider);
30 30
 				}
31 31
 			};
32
-			$providers     = [];
32
+			$providers = [];
33 33
 			foreach ($Config->module('HybridAuth')->providers as $provider => $provider_settings) {
34 34
 				if ($provider_settings['enabled']) {
35 35
 					$providers[$provider] = [
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package   HybridAuth
4
- * @category  modules
5
- * @author    Nazar Mokrynskyi <[email protected]>
6
- * @copyright Copyright (c) 2012-2015, Nazar Mokrynskyi
7
- * @license   MIT License, see license.txt
8
- */
3
+	 * @package   HybridAuth
4
+	 * @category  modules
5
+	 * @author    Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright Copyright (c) 2012-2015, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 namespace	cs;
10 10
 Event::instance()->on(
11 11
 	'admin/System/components/modules/install/after',
Please login to merge, or discard this patch.
components/modules/HybridAuth/events/uninstalled.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package   HybridAuth
4
- * @category  modules
5
- * @author    Nazar Mokrynskyi <[email protected]>
6
- * @copyright Copyright (c) 2012-2015, Nazar Mokrynskyi
7
- * @license   MIT License, see license.txt
8
- */
3
+	 * @package   HybridAuth
4
+	 * @category  modules
5
+	 * @author    Nazar Mokrynskyi <[email protected]>
6
+	 * @copyright Copyright (c) 2012-2015, Nazar Mokrynskyi
7
+	 * @license   MIT License, see license.txt
8
+	 */
9 9
 namespace	cs;
10 10
 Event::instance()->on(
11 11
 	'admin/System/components/modules/install/after',
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
13 13
 		if ($data['name'] != 'HybridAuth') {
14 14
 			return;
15 15
 		}
16
-		Config::instance()->module('HybridAuth')->providers	= [];
16
+		Config::instance()->module('HybridAuth')->providers = [];
17 17
 	}
18 18
 );
Please login to merge, or discard this patch.
components/modules/OAuth2/OAuth2.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package        OAuth2
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        OAuth2
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\OAuth2;
10 10
 use
11 11
 	cs\Cache\Prefix,
Please login to merge, or discard this patch.