X-Git-Url: https://git.mxchange.org/?p=shipsimu.git;a=blobdiff_plain;f=application%2Fship-simu%2Fmain%2Fcommands%2Fweb%2Fclass_WebShipsimuProfileCommand.php;h=1bb449a5e025c75c4d7ab6de6bfbf30a3158ba3b;hp=ad5c6b8a91e79b234ac5adbd3bf456682588c9f6;hb=8ff12f905898b0c2b7ff8124c9749ad6fb9c44f3;hpb=ec23e72b16433ac136817f3ea78697fb70236e4a diff --git a/application/ship-simu/main/commands/web/class_WebShipsimuProfileCommand.php b/application/ship-simu/main/commands/web/class_WebShipsimuProfileCommand.php index ad5c6b8..1bb449a 100644 --- a/application/ship-simu/main/commands/web/class_WebShipsimuProfileCommand.php +++ b/application/ship-simu/main/commands/web/class_WebShipsimuProfileCommand.php @@ -83,14 +83,15 @@ class WebShipsimuProfileCommand extends BaseCommand implements Commandable { * @param $requestInstance An instance of a class with an Requestable interface * @param $responseInstance An instance of a class with an Responseable interface * @return void + * @todo Add functionality here */ public function execute (Requestable $requestInstance, Responseable $responseInstance) { // Make sure only allowed values are comming through - foreach ($this->allowedData as $alias=>$element) { + foreach ($this->allowedData as $alias => $element) { // Get data $data = $requestInstance->getRequestElement($element); - // Skip empty fields + // Silently skip empty fields if (empty($data)) continue; // Do we have an alias?