Bladeren bron

-Dashboard: Clean trailing spaces + Correction coquille

necron.s550 1 jaar geleden
bovenliggende
commit
b37a2f91aa
2 gewijzigde bestanden met toevoegingen van 4 en 15 verwijderingen
  1. 4 14
      plugin/dashboard/DashboardWidget.class.php
  2. 0 1
      plugin/dashboard/page.list.dashboard.php

+ 4 - 14
plugin/dashboard/DashboardWidget.class.php

@@ -50,7 +50,6 @@ class DashboardWidget extends Entity{
 	}
 
 	public function toArray($decoded=false){
-		
 		return array_merge(array(
 			'icon' => $this->icon,
 			'headerBackground' => $this->headerBackground,
@@ -82,13 +81,10 @@ class DashboardWidget extends Entity{
 
 
 	public static function model($slug = null){
-
 		$model = array();
 		Plugin::callHook('widget',array(&$models));
 
-
-
-		//todo placer en hook
+		//@TODO: Placer en hook
 		$clock = new DashboardWidget();
 		$clock->icon = 'far fa-user';
 		$clock->headerBackground = 'rgb(0, 123, 255)';
@@ -98,30 +94,24 @@ class DashboardWidget extends Entity{
 		$clock->width = 3;
 		$clock->height = 3;
 		$models['clock'] = $clock;
-			
-		
+
+
 		$newModel = new DashboardWidget();
 		$newModel->icon = 'far fa-user';
 		$newModel->headerBackground = 'rgb(0, 123, 255)';
-		$newModel->description = 'Type de widget non définit';
+		$newModel->description = 'Type de widget non défini';
 		$newModel->label = 'Nouveau widget';
 		$newModel->content = '<div class="text-center m-auto">Cliquez sur l\'icone <i class="fas fa-ellipsis-v text-muted mx-1"></i> en haut à droite pour configurer votre widget</div>';
 		$newModel->width = 3;
 		$newModel->height = 2;
 		$models[self::MODEL_NEW] = $newModel;
-		
 
 		foreach($models as $model){
 			if(!isset($model->model)) continue;
 			$models[$model->model] = $model;
 		}
-
 		if(!isset($slug)) return $models;
 
-
 		return isset($models[$slug]) ? $models[$slug] : $model;
-
-		
 	}
 }
-?>

+ 0 - 1
plugin/dashboard/page.list.dashboard.php

@@ -1,6 +1,5 @@
  <?php
 global $myUser,$conf;
-
 if(!$myUser->can('dashboard','read')) return;
 require_once(__DIR__.SLASH.'Dashboard.class.php');