From 085779c393fd68fa4c8c75396c5d9b91be6b57db Mon Sep 17 00:00:00 2001 From: Stefan Gehrig Date: Fri, 19 Jan 2018 16:16:03 +0100 Subject: [PATCH 1/3] fixes issue #10 in order to make tests pass again --- src/interfaces/node_arithmetic_base.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/interfaces/node_arithmetic_base.php b/src/interfaces/node_arithmetic_base.php index 4d41291..eda475a 100644 --- a/src/interfaces/node_arithmetic_base.php +++ b/src/interfaces/node_arithmetic_base.php @@ -9,9 +9,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -111,7 +111,11 @@ public function execute( ezcWorkflowExecution $execution ) ); } - if ( is_numeric( $this->configuration['operand'] ) ) + if ( !isset( $this->configuration['operand'] ) ) { + $this->operand = 1; + } + + else if ( is_numeric( $this->configuration['operand'] ) ) { $this->operand = $this->configuration['operand']; } From 8e8b8b293fee4fba2b1e719e0971e7727974a0ba Mon Sep 17 00:00:00 2001 From: Stefan Gehrig Date: Fri, 19 Jan 2018 16:16:46 +0100 Subject: [PATCH 2/3] fixes coding style --- src/interfaces/node_arithmetic_base.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/interfaces/node_arithmetic_base.php b/src/interfaces/node_arithmetic_base.php index eda475a..838038c 100644 --- a/src/interfaces/node_arithmetic_base.php +++ b/src/interfaces/node_arithmetic_base.php @@ -111,7 +111,8 @@ public function execute( ezcWorkflowExecution $execution ) ); } - if ( !isset( $this->configuration['operand'] ) ) { + if ( !isset( $this->configuration['operand'] ) ) + { $this->operand = 1; } From 17df53beb918cabea6dcad3cca1fe8bd3ea8760f Mon Sep 17 00:00:00 2001 From: Stefan Gehrig Date: Fri, 19 Jan 2018 16:20:38 +0100 Subject: [PATCH 3/3] fixes WS issue --- src/interfaces/node_arithmetic_base.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interfaces/node_arithmetic_base.php b/src/interfaces/node_arithmetic_base.php index 838038c..5ca9e1e 100644 --- a/src/interfaces/node_arithmetic_base.php +++ b/src/interfaces/node_arithmetic_base.php @@ -9,9 +9,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY