Skip to content

Commit ceab3ba

Browse files
committed
style: code style
1 parent 9d7be6b commit ceab3ba

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

src/Dashboard/Provider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ public static function getSum(string $table, string $field, array $params = [],
9898
*
9999
* @param array $params
100100
* @param array $where
101-
*
102101
* @return array of:
103102
* - mixed 'number': sum for the model
104103
* - string 'url': url to redirect when clicking on the slice
@@ -233,10 +232,11 @@ public static function getSumUsageEmissionsPerModel(array $params = [], array $w
233232
/**
234233
* Undocumented function
235234
*
235+
* @param array $params
236236
* @param array $where
237237
* @return array
238238
*/
239-
public static function getSumUsageEmissionsPerType(array $where = []): array
239+
public static function getSumUsageEmissionsPerType(array $params = [], array $where = []): array
240240
{
241241
/** @var DBmysql $DB */
242242
global $DB;

src/Impact/Embodied/AbstractEmbodiedImpact.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ public function getEvaluableQuery(array $crit = [], bool $entity_restrict = true
251251
],
252252
],
253253
$item_type_table => [
254-
[
254+
[
255255
'FKEY' => [
256256
$item_type_table => $glpi_item_type_fk,
257257
$item_table => $glpi_item_type_fk,

src/Impact/Embodied/Engine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static function getEngineFromItemtype(string $itemtype): ?EmbodiedImpactI
6565
return null;
6666
}
6767

68-
/** @var EmbodiedImpactInterface $embodied_impact */
68+
/** @var AbstractEmbodiedImpact $embodied_impact */
6969
$embodied_impact = new $embodied_impact_class();
7070
try {
7171
return self::configureEngine($embodied_impact);

tests/units/Impact/Embodied/Boavizta/ComputerTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,4 @@ public function testGetEvaluableQuery()
8585
$iterator = $DB->request($request);
8686
$this->assertEquals(0, $iterator->count());
8787
}
88-
89-
}
88+
}

tests/units/Impact/Embodied/Boavizta/MonitorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ public function testGetEvaluableQuery()
8686
$this->assertEquals(0, $iterator->count());
8787
}
8888

89-
}
89+
}

0 commit comments

Comments
 (0)