@@ -14,14 +14,14 @@ discard block |
||
| 14 | 14 | |
| 15 | 15 | |
| 16 | 16 | // Options |
| 17 | -define ('BATIK_PATH', 'batik-rasterizer.jar'); |
|
| 17 | +define('BATIK_PATH', 'batik-rasterizer.jar'); |
|
| 18 | 18 | |
| 19 | 19 | /////////////////////////////////////////////////////////////////////////////// |
| 20 | 20 | ini_set('magic_quotes_gpc', 'off'); |
| 21 | 21 | |
| 22 | 22 | $type = $_POST['type']; |
| 23 | -$svg = (string)$_POST['svg']; |
|
| 24 | -$filename = (string)$_POST['filename']; |
|
| 23 | +$svg = (string) $_POST['svg']; |
|
| 24 | +$filename = (string) $_POST['filename']; |
|
| 25 | 25 | |
| 26 | 26 | // prepare variables |
| 27 | 27 | if (!$filename or !preg_match('/^[A-Za-z0-9\-_ ]+$/', $filename)) { |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | // size |
| 62 | 62 | $width = ''; |
| 63 | 63 | if ($_POST['width']) { |
| 64 | - $width = (int)$_POST['width']; |
|
| 64 | + $width = (int) $_POST['width']; |
|
| 65 | 65 | if ($width) { |
| 66 | 66 | $width = "-w $width"; |
| 67 | 67 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | return $this->filter( |
| 31 | - function (DashboardInterface $dashboard) use ($user) { |
|
| 31 | + function(DashboardInterface $dashboard) use ($user) { |
|
| 32 | 32 | return $user->hasAnyRole($dashboard->getAllowedRoles()); |
| 33 | 33 | } |
| 34 | 34 | ); |
@@ -24,9 +24,9 @@ discard block |
||
| 24 | 24 | $builder->setSections( |
| 25 | 25 | [ |
| 26 | 26 | [ |
| 27 | - 'fields' => function () use ($widget) { |
|
| 27 | + 'fields' => function() use ($widget) { |
|
| 28 | 28 | return array_map( |
| 29 | - function ($field) { |
|
| 29 | + function($field) { |
|
| 30 | 30 | return 'widget_' . $field['field']; |
| 31 | 31 | }, |
| 32 | 32 | $widget->getFields() |
@@ -34,9 +34,9 @@ discard block |
||
| 34 | 34 | } |
| 35 | 35 | ], |
| 36 | 36 | [ |
| 37 | - 'fields' => function () use ($configuration) { |
|
| 37 | + 'fields' => function() use ($configuration) { |
|
| 38 | 38 | return array_map( |
| 39 | - function ($field) { |
|
| 39 | + function($field) { |
|
| 40 | 40 | return 'configuration_' . $field['field']; |
| 41 | 41 | }, |
| 42 | 42 | $configuration->getFields() |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | return $this->filter( |
| 31 | - function (WidgetInterface $widget) use ($user) { |
|
| 31 | + function(WidgetInterface $widget) use ($user) { |
|
| 32 | 32 | return $user->hasAnyRole($widget->getAllowedRoles()); |
| 33 | 33 | } |
| 34 | 34 | ); |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | public function pinned() |
| 44 | 44 | { |
| 45 | 45 | return $this->filter( |
| 46 | - function (WidgetInterface $widget) { |
|
| 46 | + function(WidgetInterface $widget) { |
|
| 47 | 47 | return $widget->isPinned(); |
| 48 | 48 | } |
| 49 | 49 | ); |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | public function column($column, $over = false) |
| 60 | 60 | { |
| 61 | 61 | return $this->filter( |
| 62 | - function (WidgetInterface $widget) use ($column, $over) { |
|
| 62 | + function(WidgetInterface $widget) use ($column, $over) { |
|
| 63 | 63 | |
| 64 | 64 | if ($widget->isPinned()) { |
| 65 | 65 | return false; |