diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-10-08 09:31:49 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-10-08 09:31:49 +0400 |
commit | 84eba85074891bfa6a718ae413a1d87ced4f28ca (patch) | |
tree | 6df358670aba14da2883dd68434b326edc6a50fe /plugins/ExampleUI | |
parent | 1fa8da9b963e99e08c829fe6491e8ccf2d1054e2 (diff) |
Applying phpstorm code style PSR refs #3771
Diffstat (limited to 'plugins/ExampleUI')
-rw-r--r-- | plugins/ExampleUI/API.php | 4 | ||||
-rw-r--r-- | plugins/ExampleUI/Controller.php | 12 | ||||
-rw-r--r-- | plugins/ExampleUI/CustomDataTable.php | 10 |
3 files changed, 13 insertions, 13 deletions
diff --git a/plugins/ExampleUI/API.php b/plugins/ExampleUI/API.php index 3555a76776..5827acac67 100644 --- a/plugins/ExampleUI/API.php +++ b/plugins/ExampleUI/API.php @@ -53,7 +53,7 @@ class API $server2 = mt_rand(40, 110); } - $value = array('server1' => $server1, 'server2' => $server2); + $value = array('server1' => $server1, 'server2' => $server2); $temperatures[$subPeriod->getLocalizedShortString()] = $value; } @@ -103,7 +103,7 @@ class API foreach ($planetsDataTable->getRows() as $row) { $logo = sprintf('plugins/ExampleUI/images/icons-planet/%s.png', strtolower($row->getColumn('label'))); - $url = sprintf('http://en.wikipedia.org/wiki/%s', $row->getColumn('label')); + $url = sprintf('http://en.wikipedia.org/wiki/%s', $row->getColumn('label')); $row->addMetadata('logo', $logo); $row->addMetadata('url', $url); diff --git a/plugins/ExampleUI/Controller.php b/plugins/ExampleUI/Controller.php index d6cbdf316a..0b607682bc 100644 --- a/plugins/ExampleUI/Controller.php +++ b/plugins/ExampleUI/Controller.php @@ -23,7 +23,7 @@ class Controller extends \Piwik\Controller public function dataTables() { $controllerAction = $this->pluginName . '.' . __FUNCTION__; - $apiAction = 'ExampleUI.getTemperatures'; + $apiAction = 'ExampleUI.getTemperatures'; /** * this is an example how you can make a custom visualization reusable. @@ -76,9 +76,9 @@ class Controller extends \Piwik\Controller $view = ViewDataTable::factory( 'graphPie', 'ExampleUI.getPlanetRatios', $controllerAction = 'ExampleUI.pieGraph'); - $view->columns_to_display = array('value'); + $view->columns_to_display = array('value'); $view->translations['value'] = "times the diameter of Earth"; - $view->show_footer_icons = false; + $view->show_footer_icons = false; $view->visualization_properties->selectable_columns = array("value"); $view->visualization_properties->max_graph_elements = 10; @@ -103,9 +103,9 @@ class Controller extends \Piwik\Controller $view = ViewDataTable::factory( 'cloud', 'ExampleUI.getPlanetRatios', $controllerAction = 'ExampleUI.echoSimpleTagClouds'); - $view->columns_to_display = array('label', 'value'); + $view->columns_to_display = array('label', 'value'); $view->translations['value'] = "times the diameter of Earth"; - $view->show_footer = false; + $view->show_footer = false; echo $view->render(); } @@ -120,7 +120,7 @@ class Controller extends \Piwik\Controller 'display_logo_instead_of_label', true ); - $view->columns_to_display = array('label', 'value'); + $view->columns_to_display = array('label', 'value'); $view->translations['value'] = "times the diameter of Earth"; echo $view->render(); diff --git a/plugins/ExampleUI/CustomDataTable.php b/plugins/ExampleUI/CustomDataTable.php index 1d921e6bcd..bfda92a704 100644 --- a/plugins/ExampleUI/CustomDataTable.php +++ b/plugins/ExampleUI/CustomDataTable.php @@ -22,12 +22,12 @@ class CustomDataTable $view->translations['value'] = $value; $view->translations['label'] = $label; - $view->filter_sort_column = 'label'; - $view->filter_sort_order = 'asc'; - $view->filter_limit = 24; - $view->y_axis_unit = '°C'; // useful if the user requests the bar graph + $view->filter_sort_column = 'label'; + $view->filter_sort_order = 'asc'; + $view->filter_limit = 24; + $view->y_axis_unit = '°C'; // useful if the user requests the bar graph $view->show_exclude_low_population = false; - $view->show_table_all_columns = false; + $view->show_table_all_columns = false; $view->visualization_properties->setForVisualization( 'Piwik\\Plugins\\CoreVisualizations\\Visualizations\\HtmlTable', 'disable_row_evolution', |