mirror of
				https://github.com/pluginsGLPI/example.git
				synced 2025-10-30 19:33:30 +01:00 
			
		
		
		
	Fix CS (from phpcbf)
This commit is contained in:
		
				
					committed by
					
						 Johan Cwiklinski
						Johan Cwiklinski
					
				
			
			
				
	
			
			
			
						parent
						
							0900bde1c9
						
					
				
				
					commit
					46a15511a2
				
			| @@ -47,4 +47,3 @@ Plugin::load('example'); | ||||
| Html::header("TITRE", $_SERVER['PHP_SELF'], "config", "plugins"); | ||||
| _e("This is the plugin config page", 'example'); | ||||
| Html::footer(); | ||||
| ?> | ||||
|   | ||||
| @@ -36,4 +36,3 @@ include ('../../../inc/includes.php'); | ||||
|  | ||||
| $dropdown = new PluginExampleDeviceCamera(); | ||||
| include (GLPI_ROOT . "/front/dropdown.common.form.php"); | ||||
| ?> | ||||
| @@ -36,4 +36,3 @@ include ('../../../inc/includes.php'); | ||||
|  | ||||
| $dropdown = new PluginExampleDeviceCamera(); | ||||
| include (GLPI_ROOT . "/front/dropdown.common.php"); | ||||
| ?> | ||||
|   | ||||
| @@ -39,4 +39,3 @@ Plugin::load('example',true); | ||||
|  | ||||
| $dropdown = new PluginExampleDropdown(); | ||||
| include (GLPI_ROOT . "/front/dropdown.common.form.php"); | ||||
| ?> | ||||
| @@ -39,4 +39,3 @@ Plugin::load('example',true); | ||||
|  | ||||
| $dropdown = new PluginExampleDropdown(); | ||||
| include (GLPI_ROOT . "/front/dropdown.common.php"); | ||||
| ?> | ||||
|   | ||||
| @@ -44,4 +44,3 @@ $example = new PluginExampleExample(); | ||||
| $example->display($_GET); | ||||
|  | ||||
| Html::footer(); | ||||
| ?> | ||||
| @@ -46,4 +46,3 @@ if ($_SESSION["glpiactiveprofile"]["interface"] == "central") { | ||||
| Search::show('PluginExampleExample'); | ||||
|  | ||||
| Html::footer(); | ||||
| ?> | ||||
| @@ -56,4 +56,3 @@ if (isset($_SESSION["glpipopup"]["name"])) { | ||||
|    echo "</div>"; | ||||
|    Html::popFooter(); | ||||
| } | ||||
| ?> | ||||
| @@ -38,4 +38,3 @@ include ('../../../inc/includes.php'); | ||||
| $rulecollection = new PluginExampleRuleTestCollection(); | ||||
|  | ||||
| include (GLPI_ROOT . "/front/rule.common.form.php"); | ||||
| ?> | ||||
|   | ||||
| @@ -38,4 +38,3 @@ include ('../../../inc/includes.php'); | ||||
| $rulecollection = new PluginExampleRuleTestCollection(); | ||||
|  | ||||
| include (GLPI_ROOT . "/front/rule.common.php"); | ||||
| ?> | ||||
|   | ||||
							
								
								
									
										4
									
								
								hook.php
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								hook.php
									
									
									
									
									
								
							| @@ -606,9 +606,9 @@ function plugin_example_postinit() { | ||||
|    global $CFG_GLPI; | ||||
|  | ||||
|    // All plugins are initialized, so all types are registered | ||||
|    foreach (Infocom::getItemtypesThatCanHave() as $type) { | ||||
|    //foreach (Infocom::getItemtypesThatCanHave() as $type) { | ||||
|       // do something | ||||
|    } | ||||
|    //} | ||||
| } | ||||
|  | ||||
|  | ||||
|   | ||||
| @@ -99,4 +99,3 @@ class PluginExampleChild extends CommonDBChild { | ||||
|    } | ||||
|  | ||||
| } | ||||
| ?> | ||||
| @@ -66,7 +66,6 @@ class PluginExampleConfig extends CommonDBTM { | ||||
|       Dropdown::showYesNo("configuration", $my_config['configuration']); | ||||
|       echo "</td></tr>"; | ||||
|  | ||||
|  | ||||
|       echo "<tr class='tab_bg_2'>"; | ||||
|       echo "<td colspan='4' class='center'>"; | ||||
|       echo "<input type='submit' name='update' class='submit' value=\""._sx('button', 'Save')."\">"; | ||||
| @@ -85,4 +84,3 @@ class PluginExampleConfig extends CommonDBTM { | ||||
|    } | ||||
|  | ||||
| } | ||||
| ?> | ||||
| @@ -46,4 +46,3 @@ class PluginExampleDeviceCamera extends CommonDevice { | ||||
|    } | ||||
|  | ||||
| } | ||||
| ?> | ||||
| @@ -44,4 +44,3 @@ class PluginExampleDropdown extends CommonDropdown { | ||||
|       return __('Plugin Example Dropdowns', 'example'); | ||||
|    } | ||||
| } | ||||
| ?> | ||||
|   | ||||
| @@ -479,9 +479,7 @@ class PluginExampleExample extends CommonDBTM { | ||||
|          return array($link); | ||||
|       } | ||||
|  | ||||
|        | ||||
|       return parent::generateLinkContents($link, $item); | ||||
|    } | ||||
|  | ||||
| } | ||||
| ?> | ||||
| @@ -49,4 +49,3 @@ class PluginExampleItem_DeviceCamera extends Item_Devices { | ||||
|    static protected $notable = false; | ||||
|  | ||||
| } | ||||
| ?> | ||||
|   | ||||
| @@ -44,4 +44,3 @@ class PluginExampleNotificationTargetExample extends NotificationTarget { | ||||
|       $this->datas['##example.name##'] = __('Example', 'example'); | ||||
|    } | ||||
| } | ||||
| ?> | ||||
| @@ -80,4 +80,3 @@ class PluginExampleRuleTest extends Rule { | ||||
|       return $actions; | ||||
|    } | ||||
| } | ||||
| ?> | ||||
|   | ||||
| @@ -47,4 +47,3 @@ class PluginExampleRuleTestCollection extends RuleCollection { | ||||
|       return 'Rulesengine test'; | ||||
|    } | ||||
| } | ||||
| ?> | ||||
|   | ||||
| @@ -155,6 +155,7 @@ class PluginExampleShowtabitem { | ||||
|          } | ||||
|       } else { | ||||
|          // here we are going to view a Solution | ||||
|          return; | ||||
|       } | ||||
|    } | ||||
|  | ||||
| @@ -189,6 +190,7 @@ class PluginExampleShowtabitem { | ||||
|          } | ||||
|       } else { | ||||
|          // here we are going to view a Solution | ||||
|          return; | ||||
|       } | ||||
|    } | ||||
|  | ||||
|   | ||||
| @@ -46,4 +46,3 @@ Html::header("TITRE",$_SERVER['PHP_SELF'],"plugins"); | ||||
| echo "This is the plugin report page"; | ||||
|  | ||||
| Html::footer(); | ||||
| ?> | ||||
| @@ -265,4 +265,3 @@ function plugin_example_check_config($verbose = false) { | ||||
|    } | ||||
|    return false; | ||||
| } | ||||
| ?> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user