@@ -24,7 +24,7 @@ |
||
| 24 | 24 | $params = [ |
| 25 | 25 | 'start_date' => $startDate, |
| 26 | 26 | 'end_date' => $endDate, |
| 27 | - 'custom' => implode((array) $custom, ','), |
|
| 27 | + 'custom' => implode((array)$custom, ','), |
|
| 28 | 28 | 'idx' => 'pv,uv,vv,iv', |
| 29 | 29 | ]; |
| 30 | 30 | |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | $params = [ |
| 25 | 25 | 'start_date' => $startDate, |
| 26 | 26 | 'end_date' => $endDate, |
| 27 | - 'adtags' => implode((array) $adTags, ','), |
|
| 27 | + 'adtags' => implode((array)$adTags, ','), |
|
| 28 | 28 | 'idx' => 'pv,uv,vv,iv', |
| 29 | 29 | ]; |
| 30 | 30 | |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | $params = [ |
| 68 | 68 | 'start_date' => $startDate, |
| 69 | 69 | 'end_date' => $endDate, |
| 70 | - 'urls' => implode((array) $urls, ','), |
|
| 70 | + 'urls' => implode((array)$urls, ','), |
|
| 71 | 71 | 'idx' => 'pv,uv,vv,iv', |
| 72 | 72 | ]; |
| 73 | 73 | |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | $params = [ |
| 116 | 116 | 'start_date' => $startDate, |
| 117 | 117 | 'end_date' => $endDate, |
| 118 | - 'type_contents' => implode((array) $typeContents, ','), |
|
| 118 | + 'type_contents' => implode((array)$typeContents, ','), |
|
| 119 | 119 | 'type' => $type, |
| 120 | 120 | 'idx' => 'visitor_speed,dns_speed,tcp_speed,request_speed,resource_speed,dom_speed', |
| 121 | 121 | ]; |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | $params = [ |
| 25 | 25 | 'start_date' => $startDate, |
| 26 | 26 | 'end_date' => $endDate, |
| 27 | - 'urls' => implode((array) $urls, ','), |
|
| 27 | + 'urls' => implode((array)$urls, ','), |
|
| 28 | 28 | 'idx' => 'pv,uv,vv,iv', |
| 29 | 29 | ]; |
| 30 | 30 | |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | $params = [ |
| 50 | 50 | 'start_date' => $startDate, |
| 51 | 51 | 'end_date' => $endDate, |
| 52 | - 'urls' => implode((array) $urls, ','), |
|
| 52 | + 'urls' => implode((array)$urls, ','), |
|
| 53 | 53 | 'idx' => 'pv,uv,vv,iv', |
| 54 | 54 | ]; |
| 55 | 55 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | $params = [ |
| 75 | 75 | 'start_date' => $startDate, |
| 76 | 76 | 'end_date' => $endDate, |
| 77 | - 'urls' => implode((array) $urls, ','), |
|
| 77 | + 'urls' => implode((array)$urls, ','), |
|
| 78 | 78 | 'idx' => 'pv,uv,vv,iv', |
| 79 | 79 | ]; |
| 80 | 80 | |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | if ($typeContents) { |
| 33 | 33 | return $this->httpGet('ctr_client/get_by_content', array_merge($params, [ |
| 34 | - 'type_contents' => implode((array) $typeContents, ','), |
|
| 34 | + 'type_contents' => implode((array)$typeContents, ','), |
|
| 35 | 35 | ])); |
| 36 | 36 | } |
| 37 | 37 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | $params = [ |
| 57 | 57 | 'start_date' => $startDate, |
| 58 | 58 | 'end_date' => $endDate, |
| 59 | - 'type_ids' => implode((array) $typeIds, ','), |
|
| 59 | + 'type_ids' => implode((array)$typeIds, ','), |
|
| 60 | 60 | 'idx' => 'pv,uv,vv,iv', |
| 61 | 61 | ]; |
| 62 | 62 | |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | $params = [ |
| 82 | 82 | 'start_date' => $startDate, |
| 83 | 83 | 'end_date' => $endDate, |
| 84 | - 'type_ids' => implode((array) $typeIds, ','), |
|
| 84 | + 'type_ids' => implode((array)$typeIds, ','), |
|
| 85 | 85 | 'idx' => 'pv,uv,vv,iv', |
| 86 | 86 | ]; |
| 87 | 87 | |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | $params = [ |
| 107 | 107 | 'start_date' => $startDate, |
| 108 | 108 | 'end_date' => $endDate, |
| 109 | - 'type_ids' => implode((array) $typeIds, ','), |
|
| 109 | + 'type_ids' => implode((array)$typeIds, ','), |
|
| 110 | 110 | 'idx' => 'pv,uv,vv,iv', |
| 111 | 111 | ]; |
| 112 | 112 | |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | ksort($params); |
| 16 | 16 | |
| 17 | 17 | foreach ($params as $key => $value) { |
| 18 | - $secretKey .= $key.'='.$value; |
|
| 18 | + $secretKey .= $key . '=' . $value; |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | return md5($secretKey); |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | $protocol = 'https://'; |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | - return $protocol.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; |
|
| 74 | + return $protocol . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | /** |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | */ |
| 19 | 19 | public function register(Container $pimple) |
| 20 | 20 | { |
| 21 | - $pimple['logger'] = $pimple['log'] = function ($app) { |
|
| 21 | + $pimple['logger'] = $pimple['log'] = function($app) { |
|
| 22 | 22 | $config = $this->formatLogConfig($app); |
| 23 | 23 | |
| 24 | 24 | if (!empty($config)) { |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | 'channels' => [ |
| 54 | 54 | 'single' => [ |
| 55 | 55 | 'driver' => 'single', |
| 56 | - 'path' => $app['config']->get('log.file') ?: \sys_get_temp_dir().'/logs/midas.log', |
|
| 56 | + 'path' => $app['config']->get('log.file') ?: \sys_get_temp_dir() . '/logs/midas.log', |
|
| 57 | 57 | 'level' => $app['config']->get('log.level', 'debug'), |
| 58 | 58 | ], |
| 59 | 59 | ], |
@@ -14,10 +14,10 @@ |
||
| 14 | 14 | public function register() |
| 15 | 15 | { |
| 16 | 16 | $this->mergeConfigFrom( |
| 17 | - __DIR__.'/../config/mta-h5.php', 'services.mta-h5' |
|
| 17 | + __DIR__ . '/../config/mta-h5.php', 'services.mta-h5' |
|
| 18 | 18 | ); |
| 19 | 19 | |
| 20 | - $this->app->singleton('mta-h5', function ($app) { |
|
| 20 | + $this->app->singleton('mta-h5', function($app) { |
|
| 21 | 21 | return new Application( |
| 22 | 22 | $app['config']['services.mta-h5'] |
| 23 | 23 | ); |