Skip to content

Add hardware group metadata structure#162

Merged
Neloop merged 2 commits intomasterfrom
hwgroup-metadata
Feb 24, 2018
Merged

Add hardware group metadata structure#162
Neloop merged 2 commits intomasterfrom
hwgroup-metadata

Conversation

@Neloop
Copy link
Copy Markdown
Member

@Neloop Neloop commented Feb 22, 2018

No description provided.


if (array_key_exists(self::$WALL_TIME_PER_EXERCISE_KEY, $parsed)) {
$this->wallTimePerExercise = $parsed[self::$WALL_TIME_PER_EXERCISE_KEY];
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code repetition calls for foreach loop.

self::$CPU_TIME_PER_EXERCISE_KEY => $this->cpuTimePerExercise,
self::$WALL_TIME_PER_TEST_KEY => $this->wallTimePerTest,
self::$WALL_TIME_PER_EXERCISE_KEY => $this->wallTimePerExercise
];
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarly to my previous remark, this could have been done by foreach/array_map.

@Neloop Neloop merged commit e73046f into master Feb 24, 2018
@Neloop Neloop deleted the hwgroup-metadata branch February 24, 2018 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants