@@ -20,11 +20,11 @@ discard block |
||
| 20 | 20 | */ |
| 21 | 21 | class Mailcode_Factory_CommandSets_Set_If extends Mailcode_Factory_CommandSets_IfBase |
| 22 | 22 | { |
| 23 | - public function if(string $condition, string $type='') : Mailcode_Commands_Command_If |
|
| 23 | + public function if (string $condition, string $type = '') : Mailcode_Commands_Command_If |
|
| 24 | 24 | { |
| 25 | 25 | $command = $this->instantiator->buildIf('If', $condition, $type); |
| 26 | 26 | |
| 27 | - if($command instanceof Mailcode_Commands_Command_If) |
|
| 27 | + if ($command instanceof Mailcode_Commands_Command_If) |
|
| 28 | 28 | { |
| 29 | 29 | return $command; |
| 30 | 30 | } |
@@ -32,11 +32,11 @@ discard block |
||
| 32 | 32 | throw $this->instantiator->exceptionUnexpectedType('If', $command); |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - public function var(string $variable, string $operand, string $value, bool $quoteValue=false) : Mailcode_Commands_Command_If_Variable |
|
| 35 | + public function var(string $variable, string $operand, string $value, bool $quoteValue = false) : Mailcode_Commands_Command_If_Variable |
|
| 36 | 36 | { |
| 37 | 37 | $command = $this->instantiator->buildIfVar('If', $variable, $operand, $value, $quoteValue); |
| 38 | 38 | |
| 39 | - if($command instanceof Mailcode_Commands_Command_If_Variable) |
|
| 39 | + if ($command instanceof Mailcode_Commands_Command_If_Variable) |
|
| 40 | 40 | { |
| 41 | 41 | return $command; |
| 42 | 42 | } |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | { |
| 49 | 49 | $command = $this->instantiator->buildIfVar('If', $variable, $operand, $value, true); |
| 50 | 50 | |
| 51 | - if($command instanceof Mailcode_Commands_Command_If_Variable) |
|
| 51 | + if ($command instanceof Mailcode_Commands_Command_If_Variable) |
|
| 52 | 52 | { |
| 53 | 53 | return $command; |
| 54 | 54 | } |
@@ -56,11 +56,11 @@ discard block |
||
| 56 | 56 | throw $this->instantiator->exceptionUnexpectedType('IfVarString', $command); |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | - public function varEquals(string $variable, string $value, bool $quoteValue=false) : Mailcode_Commands_Command_If_Variable |
|
| 59 | + public function varEquals(string $variable, string $value, bool $quoteValue = false) : Mailcode_Commands_Command_If_Variable |
|
| 60 | 60 | { |
| 61 | 61 | $command = $this->instantiator->buildIfVar('If', $variable, '==', $value, $quoteValue); |
| 62 | 62 | |
| 63 | - if($command instanceof Mailcode_Commands_Command_If_Variable) |
|
| 63 | + if ($command instanceof Mailcode_Commands_Command_If_Variable) |
|
| 64 | 64 | { |
| 65 | 65 | return $command; |
| 66 | 66 | } |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | { |
| 73 | 73 | $command = $this->instantiator->buildIfVar('If', $variable, '==', $value, true); |
| 74 | 74 | |
| 75 | - if($command instanceof Mailcode_Commands_Command_If_Variable) |
|
| 75 | + if ($command instanceof Mailcode_Commands_Command_If_Variable) |
|
| 76 | 76 | { |
| 77 | 77 | return $command; |
| 78 | 78 | } |
@@ -80,11 +80,11 @@ discard block |
||
| 80 | 80 | throw $this->instantiator->exceptionUnexpectedType('IfarEqualsString', $command); |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | - public function varNotEquals(string $variable, string $value, bool $quoteValue=false) : Mailcode_Commands_Command_If_Variable |
|
| 83 | + public function varNotEquals(string $variable, string $value, bool $quoteValue = false) : Mailcode_Commands_Command_If_Variable |
|
| 84 | 84 | { |
| 85 | 85 | $command = $this->instantiator->buildIfVar('If', $variable, '!=', $value, $quoteValue); |
| 86 | 86 | |
| 87 | - if($command instanceof Mailcode_Commands_Command_If_Variable) |
|
| 87 | + if ($command instanceof Mailcode_Commands_Command_If_Variable) |
|
| 88 | 88 | { |
| 89 | 89 | return $command; |
| 90 | 90 | } |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | { |
| 97 | 97 | $command = $this->instantiator->buildIfVar('If', $variable, '!=', $value, true); |
| 98 | 98 | |
| 99 | - if($command instanceof Mailcode_Commands_Command_If_Variable) |
|
| 99 | + if ($command instanceof Mailcode_Commands_Command_If_Variable) |
|
| 100 | 100 | { |
| 101 | 101 | return $command; |
| 102 | 102 | } |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | { |
| 109 | 109 | $command = $this->instantiator->buildIfEmpty('If', $variable); |
| 110 | 110 | |
| 111 | - if($command instanceof Mailcode_Commands_Command_If_Empty) |
|
| 111 | + if ($command instanceof Mailcode_Commands_Command_If_Empty) |
|
| 112 | 112 | { |
| 113 | 113 | return $command; |
| 114 | 114 | } |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | { |
| 121 | 121 | $command = $this->instantiator->buildIfNotEmpty('If', $variable); |
| 122 | 122 | |
| 123 | - if($command instanceof Mailcode_Commands_Command_If_NotEmpty) |
|
| 123 | + if ($command instanceof Mailcode_Commands_Command_If_NotEmpty) |
|
| 124 | 124 | { |
| 125 | 125 | return $command; |
| 126 | 126 | } |
@@ -135,11 +135,11 @@ discard block |
||
| 135 | 135 | * @return Mailcode_Commands_Command_If_Contains |
| 136 | 136 | * @throws Mailcode_Factory_Exception |
| 137 | 137 | */ |
| 138 | - public function contains(string $variable, array $searchTerms, bool $caseInsensitive=false) : Mailcode_Commands_Command_If_Contains |
|
| 138 | + public function contains(string $variable, array $searchTerms, bool $caseInsensitive = false) : Mailcode_Commands_Command_If_Contains |
|
| 139 | 139 | { |
| 140 | 140 | $command = $this->instantiator->buildIfContains('If', $variable, $searchTerms, $caseInsensitive); |
| 141 | 141 | |
| 142 | - if($command instanceof Mailcode_Commands_Command_If_Contains) |
|
| 142 | + if ($command instanceof Mailcode_Commands_Command_If_Contains) |
|
| 143 | 143 | { |
| 144 | 144 | return $command; |
| 145 | 145 | } |
@@ -154,11 +154,11 @@ discard block |
||
| 154 | 154 | * @return Mailcode_Commands_Command_If_NotContains |
| 155 | 155 | * @throws Mailcode_Factory_Exception |
| 156 | 156 | */ |
| 157 | - public function notContains(string $variable, array $searchTerms, bool $caseInsensitive=false) : Mailcode_Commands_Command_If_NotContains |
|
| 157 | + public function notContains(string $variable, array $searchTerms, bool $caseInsensitive = false) : Mailcode_Commands_Command_If_NotContains |
|
| 158 | 158 | { |
| 159 | 159 | $command = $this->instantiator->buildIfNotContains('If', $variable, $searchTerms, $caseInsensitive); |
| 160 | 160 | |
| 161 | - if($command instanceof Mailcode_Commands_Command_If_NotContains) |
|
| 161 | + if ($command instanceof Mailcode_Commands_Command_If_NotContains) |
|
| 162 | 162 | { |
| 163 | 163 | return $command; |
| 164 | 164 | } |
@@ -174,11 +174,11 @@ discard block |
||
| 174 | 174 | * @return Mailcode_Commands_Command_If_ListContains |
| 175 | 175 | * @throws Mailcode_Factory_Exception |
| 176 | 176 | */ |
| 177 | - public function listContains(string $variable, array $searchTerms, bool $caseInsensitive=false, bool $regexEnabled=false) : Mailcode_Commands_Command_If_ListContains |
|
| 177 | + public function listContains(string $variable, array $searchTerms, bool $caseInsensitive = false, bool $regexEnabled = false) : Mailcode_Commands_Command_If_ListContains |
|
| 178 | 178 | { |
| 179 | 179 | $command = $this->instantiator->buildIfListContains('If', $variable, $searchTerms, $caseInsensitive, $regexEnabled, 'list-contains'); |
| 180 | 180 | |
| 181 | - if($command instanceof Mailcode_Commands_Command_If_ListContains) |
|
| 181 | + if ($command instanceof Mailcode_Commands_Command_If_ListContains) |
|
| 182 | 182 | { |
| 183 | 183 | return $command; |
| 184 | 184 | } |
@@ -194,11 +194,11 @@ discard block |
||
| 194 | 194 | * @return Mailcode_Commands_Command_If_ListNotContains |
| 195 | 195 | * @throws Mailcode_Factory_Exception |
| 196 | 196 | */ |
| 197 | - public function listNotContains(string $variable, array $searchTerms, bool $caseInsensitive=false, bool $regexEnabled=false) : Mailcode_Commands_Command_If_ListNotContains |
|
| 197 | + public function listNotContains(string $variable, array $searchTerms, bool $caseInsensitive = false, bool $regexEnabled = false) : Mailcode_Commands_Command_If_ListNotContains |
|
| 198 | 198 | { |
| 199 | 199 | $command = $this->instantiator->buildIfListNotContains('If', $variable, $searchTerms, $caseInsensitive, $regexEnabled); |
| 200 | 200 | |
| 201 | - if($command instanceof Mailcode_Commands_Command_If_ListNotContains) |
|
| 201 | + if ($command instanceof Mailcode_Commands_Command_If_ListNotContains) |
|
| 202 | 202 | { |
| 203 | 203 | return $command; |
| 204 | 204 | } |
@@ -214,11 +214,11 @@ discard block |
||
| 214 | 214 | * @return Mailcode_Commands_Command_If_ListBeginsWith |
| 215 | 215 | * @throws Mailcode_Factory_Exception |
| 216 | 216 | */ |
| 217 | - public function listBeginsWith(string $variable, array $searchTerms, bool $caseInsensitive=false, bool $regexEnabled=false) : Mailcode_Commands_Command_If_ListBeginsWith |
|
| 217 | + public function listBeginsWith(string $variable, array $searchTerms, bool $caseInsensitive = false, bool $regexEnabled = false) : Mailcode_Commands_Command_If_ListBeginsWith |
|
| 218 | 218 | { |
| 219 | - $command = $this->instantiator->buildIfListContains('If', $variable, $searchTerms, $caseInsensitive, $regexEnabled,'list-begins-with'); |
|
| 219 | + $command = $this->instantiator->buildIfListContains('If', $variable, $searchTerms, $caseInsensitive, $regexEnabled, 'list-begins-with'); |
|
| 220 | 220 | |
| 221 | - if($command instanceof Mailcode_Commands_Command_If_ListBeginsWith) |
|
| 221 | + if ($command instanceof Mailcode_Commands_Command_If_ListBeginsWith) |
|
| 222 | 222 | { |
| 223 | 223 | return $command; |
| 224 | 224 | } |
@@ -234,11 +234,11 @@ discard block |
||
| 234 | 234 | * @return Mailcode_Commands_Command_If_ListEndsWith |
| 235 | 235 | * @throws Mailcode_Factory_Exception |
| 236 | 236 | */ |
| 237 | - public function listEndsWith(string $variable, array $searchTerms, bool $caseInsensitive=false, bool $regexEnabled=false) : Mailcode_Commands_Command_If_ListEndsWith |
|
| 237 | + public function listEndsWith(string $variable, array $searchTerms, bool $caseInsensitive = false, bool $regexEnabled = false) : Mailcode_Commands_Command_If_ListEndsWith |
|
| 238 | 238 | { |
| 239 | - $command = $this->instantiator->buildIfListContains('If', $variable, $searchTerms, $caseInsensitive, $regexEnabled,'list-ends-with'); |
|
| 239 | + $command = $this->instantiator->buildIfListContains('If', $variable, $searchTerms, $caseInsensitive, $regexEnabled, 'list-ends-with'); |
|
| 240 | 240 | |
| 241 | - if($command instanceof Mailcode_Commands_Command_If_ListEndsWith) |
|
| 241 | + if ($command instanceof Mailcode_Commands_Command_If_ListEndsWith) |
|
| 242 | 242 | { |
| 243 | 243 | return $command; |
| 244 | 244 | } |
@@ -246,11 +246,11 @@ discard block |
||
| 246 | 246 | throw $this->instantiator->exceptionUnexpectedType('IfListEndsWith', $command); |
| 247 | 247 | } |
| 248 | 248 | |
| 249 | - public function beginsWith(string $variable, string $search, bool $caseInsensitive=false) : Mailcode_Commands_Command_If_BeginsWith |
|
| 249 | + public function beginsWith(string $variable, string $search, bool $caseInsensitive = false) : Mailcode_Commands_Command_If_BeginsWith |
|
| 250 | 250 | { |
| 251 | 251 | $command = $this->instantiator->buildIfBeginsWith('If', $variable, $search, $caseInsensitive); |
| 252 | 252 | |
| 253 | - if($command instanceof Mailcode_Commands_Command_If_BeginsWith) |
|
| 253 | + if ($command instanceof Mailcode_Commands_Command_If_BeginsWith) |
|
| 254 | 254 | { |
| 255 | 255 | return $command; |
| 256 | 256 | } |
@@ -258,11 +258,11 @@ discard block |
||
| 258 | 258 | throw $this->instantiator->exceptionUnexpectedType('IfBeginsWith', $command); |
| 259 | 259 | } |
| 260 | 260 | |
| 261 | - public function endsWith(string $variable, string $search, bool $caseInsensitive=false) : Mailcode_Commands_Command_If_EndsWith |
|
| 261 | + public function endsWith(string $variable, string $search, bool $caseInsensitive = false) : Mailcode_Commands_Command_If_EndsWith |
|
| 262 | 262 | { |
| 263 | 263 | $command = $this->instantiator->buildIfEndsWith('If', $variable, $search, $caseInsensitive); |
| 264 | 264 | |
| 265 | - if($command instanceof Mailcode_Commands_Command_If_EndsWith) |
|
| 265 | + if ($command instanceof Mailcode_Commands_Command_If_EndsWith) |
|
| 266 | 266 | { |
| 267 | 267 | return $command; |
| 268 | 268 | } |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | { |
| 275 | 275 | $command = $this->instantiator->buildIfBiggerThan('If', $variable, $value); |
| 276 | 276 | |
| 277 | - if($command instanceof Mailcode_Commands_Command_If_BiggerThan) |
|
| 277 | + if ($command instanceof Mailcode_Commands_Command_If_BiggerThan) |
|
| 278 | 278 | { |
| 279 | 279 | return $command; |
| 280 | 280 | } |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | { |
| 287 | 287 | $command = $this->instantiator->buildIfSmallerThan('If', $variable, $value); |
| 288 | 288 | |
| 289 | - if($command instanceof Mailcode_Commands_Command_If_SmallerThan) |
|
| 289 | + if ($command instanceof Mailcode_Commands_Command_If_SmallerThan) |
|
| 290 | 290 | { |
| 291 | 291 | return $command; |
| 292 | 292 | } |
@@ -298,7 +298,7 @@ discard block |
||
| 298 | 298 | { |
| 299 | 299 | $command = $this->instantiator->buildIfEquals('If', $variable, $value); |
| 300 | 300 | |
| 301 | - if($command instanceof Mailcode_Commands_Command_If_EqualsNumber) |
|
| 301 | + if ($command instanceof Mailcode_Commands_Command_If_EqualsNumber) |
|
| 302 | 302 | { |
| 303 | 303 | return $command; |
| 304 | 304 | } |
@@ -20,11 +20,11 @@ discard block |
||
| 20 | 20 | */ |
| 21 | 21 | class Mailcode_Factory_CommandSets_Set_ElseIf extends Mailcode_Factory_CommandSets_IfBase |
| 22 | 22 | { |
| 23 | - public function elseIf(string $condition, string $type='') : Mailcode_Commands_Command_ElseIf |
|
| 23 | + public function elseIf (string $condition, string $type = '') : Mailcode_Commands_Command_ElseIf |
|
| 24 | 24 | { |
| 25 | 25 | $command = $this->instantiator->buildIf('ElseIf', $condition, $type); |
| 26 | 26 | |
| 27 | - if($command instanceof Mailcode_Commands_Command_ElseIf) |
|
| 27 | + if ($command instanceof Mailcode_Commands_Command_ElseIf) |
|
| 28 | 28 | { |
| 29 | 29 | return $command; |
| 30 | 30 | } |
@@ -32,11 +32,11 @@ discard block |
||
| 32 | 32 | throw $this->instantiator->exceptionUnexpectedType('ElseIf', $command); |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - public function var(string $variable, string $operand, string $value, bool $quoteValue=false) : Mailcode_Commands_Command_ElseIf_Variable |
|
| 35 | + public function var(string $variable, string $operand, string $value, bool $quoteValue = false) : Mailcode_Commands_Command_ElseIf_Variable |
|
| 36 | 36 | { |
| 37 | 37 | $command = $this->instantiator->buildIfVar('ElseIf', $variable, $operand, $value, $quoteValue); |
| 38 | 38 | |
| 39 | - if($command instanceof Mailcode_Commands_Command_ElseIf_Variable) |
|
| 39 | + if ($command instanceof Mailcode_Commands_Command_ElseIf_Variable) |
|
| 40 | 40 | { |
| 41 | 41 | return $command; |
| 42 | 42 | } |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | { |
| 49 | 49 | $command = $this->instantiator->buildIfVar('ElseIf', $variable, $operand, $value, true); |
| 50 | 50 | |
| 51 | - if($command instanceof Mailcode_Commands_Command_ElseIf_Variable) |
|
| 51 | + if ($command instanceof Mailcode_Commands_Command_ElseIf_Variable) |
|
| 52 | 52 | { |
| 53 | 53 | return $command; |
| 54 | 54 | } |
@@ -56,11 +56,11 @@ discard block |
||
| 56 | 56 | throw $this->instantiator->exceptionUnexpectedType('ElseIfVarString', $command); |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | - public function varEquals(string $variable, string $value, bool $quoteValue=false) : Mailcode_Commands_Command_ElseIf_Variable |
|
| 59 | + public function varEquals(string $variable, string $value, bool $quoteValue = false) : Mailcode_Commands_Command_ElseIf_Variable |
|
| 60 | 60 | { |
| 61 | 61 | $command = $this->instantiator->buildIfVar('ElseIf', $variable, '==', $value, $quoteValue); |
| 62 | 62 | |
| 63 | - if($command instanceof Mailcode_Commands_Command_ElseIf_Variable) |
|
| 63 | + if ($command instanceof Mailcode_Commands_Command_ElseIf_Variable) |
|
| 64 | 64 | { |
| 65 | 65 | return $command; |
| 66 | 66 | } |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | { |
| 73 | 73 | $command = $this->instantiator->buildIfVar('ElseIf', $variable, '==', $value, true); |
| 74 | 74 | |
| 75 | - if($command instanceof Mailcode_Commands_Command_ElseIf_Variable) |
|
| 75 | + if ($command instanceof Mailcode_Commands_Command_ElseIf_Variable) |
|
| 76 | 76 | { |
| 77 | 77 | return $command; |
| 78 | 78 | } |
@@ -80,11 +80,11 @@ discard block |
||
| 80 | 80 | throw $this->instantiator->exceptionUnexpectedType('ElseIfVarEqualsString', $command); |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | - public function varNotEquals(string $variable, string $value, bool $quoteValue=false) : Mailcode_Commands_Command_ElseIf_Variable |
|
| 83 | + public function varNotEquals(string $variable, string $value, bool $quoteValue = false) : Mailcode_Commands_Command_ElseIf_Variable |
|
| 84 | 84 | { |
| 85 | 85 | $command = $this->instantiator->buildIfVar('ElseIf', $variable, '!=', $value, $quoteValue); |
| 86 | 86 | |
| 87 | - if($command instanceof Mailcode_Commands_Command_ElseIf_Variable) |
|
| 87 | + if ($command instanceof Mailcode_Commands_Command_ElseIf_Variable) |
|
| 88 | 88 | { |
| 89 | 89 | return $command; |
| 90 | 90 | } |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | { |
| 97 | 97 | $command = $this->instantiator->buildIfVar('ElseIf', $variable, '!=', $value, true); |
| 98 | 98 | |
| 99 | - if($command instanceof Mailcode_Commands_Command_ElseIf_Variable) |
|
| 99 | + if ($command instanceof Mailcode_Commands_Command_ElseIf_Variable) |
|
| 100 | 100 | { |
| 101 | 101 | return $command; |
| 102 | 102 | } |
@@ -111,11 +111,11 @@ discard block |
||
| 111 | 111 | * @return Mailcode_Commands_Command_ElseIf_Contains |
| 112 | 112 | * @throws Mailcode_Factory_Exception |
| 113 | 113 | */ |
| 114 | - public function contains(string $variable, array $searchTerms, bool $caseInsensitive=false) : Mailcode_Commands_Command_ElseIf_Contains |
|
| 114 | + public function contains(string $variable, array $searchTerms, bool $caseInsensitive = false) : Mailcode_Commands_Command_ElseIf_Contains |
|
| 115 | 115 | { |
| 116 | 116 | $command = $this->instantiator->buildIfContains('ElseIf', $variable, $searchTerms, $caseInsensitive); |
| 117 | 117 | |
| 118 | - if($command instanceof Mailcode_Commands_Command_ElseIf_Contains) |
|
| 118 | + if ($command instanceof Mailcode_Commands_Command_ElseIf_Contains) |
|
| 119 | 119 | { |
| 120 | 120 | return $command; |
| 121 | 121 | } |
@@ -130,11 +130,11 @@ discard block |
||
| 130 | 130 | * @return Mailcode_Commands_Command_ElseIf_NotContains |
| 131 | 131 | * @throws Mailcode_Factory_Exception |
| 132 | 132 | */ |
| 133 | - public function notContains(string $variable, array $searchTerms, bool $caseInsensitive=false) : Mailcode_Commands_Command_ElseIf_NotContains |
|
| 133 | + public function notContains(string $variable, array $searchTerms, bool $caseInsensitive = false) : Mailcode_Commands_Command_ElseIf_NotContains |
|
| 134 | 134 | { |
| 135 | 135 | $command = $this->instantiator->buildIfNotContains('ElseIf', $variable, $searchTerms, $caseInsensitive); |
| 136 | 136 | |
| 137 | - if($command instanceof Mailcode_Commands_Command_ElseIf_NotContains) |
|
| 137 | + if ($command instanceof Mailcode_Commands_Command_ElseIf_NotContains) |
|
| 138 | 138 | { |
| 139 | 139 | return $command; |
| 140 | 140 | } |
@@ -150,11 +150,11 @@ discard block |
||
| 150 | 150 | * @return Mailcode_Commands_Command_ElseIf_ListContains |
| 151 | 151 | * @throws Mailcode_Factory_Exception |
| 152 | 152 | */ |
| 153 | - public function listContains(string $variable, array $searchTerms, bool $caseInsensitive=false, bool $regexEnabled=false) : Mailcode_Commands_Command_ElseIf_ListContains |
|
| 153 | + public function listContains(string $variable, array $searchTerms, bool $caseInsensitive = false, bool $regexEnabled = false) : Mailcode_Commands_Command_ElseIf_ListContains |
|
| 154 | 154 | { |
| 155 | 155 | $command = $this->instantiator->buildIfListContains('ElseIf', $variable, $searchTerms, $caseInsensitive, $regexEnabled); |
| 156 | 156 | |
| 157 | - if($command instanceof Mailcode_Commands_Command_ElseIf_ListContains) |
|
| 157 | + if ($command instanceof Mailcode_Commands_Command_ElseIf_ListContains) |
|
| 158 | 158 | { |
| 159 | 159 | return $command; |
| 160 | 160 | } |
@@ -170,11 +170,11 @@ discard block |
||
| 170 | 170 | * @return Mailcode_Commands_Command_ElseIf_ListNotContains |
| 171 | 171 | * @throws Mailcode_Factory_Exception |
| 172 | 172 | */ |
| 173 | - public function listNotContains(string $variable, array $searchTerms, bool $caseInsensitive=false, bool $regexEnabled=false) : Mailcode_Commands_Command_ElseIf_ListNotContains |
|
| 173 | + public function listNotContains(string $variable, array $searchTerms, bool $caseInsensitive = false, bool $regexEnabled = false) : Mailcode_Commands_Command_ElseIf_ListNotContains |
|
| 174 | 174 | { |
| 175 | 175 | $command = $this->instantiator->buildIfListNotContains('ElseIf', $variable, $searchTerms, $caseInsensitive, $regexEnabled); |
| 176 | 176 | |
| 177 | - if($command instanceof Mailcode_Commands_Command_ElseIf_ListNotContains) |
|
| 177 | + if ($command instanceof Mailcode_Commands_Command_ElseIf_ListNotContains) |
|
| 178 | 178 | { |
| 179 | 179 | return $command; |
| 180 | 180 | } |
@@ -190,11 +190,11 @@ discard block |
||
| 190 | 190 | * @return Mailcode_Commands_Command_ElseIf_ListBeginsWith |
| 191 | 191 | * @throws Mailcode_Factory_Exception |
| 192 | 192 | */ |
| 193 | - public function listBeginsWith(string $variable, array $searchTerms, bool $caseInsensitive=false, bool $regexEnabled=false) : Mailcode_Commands_Command_ElseIf_ListBeginsWith |
|
| 193 | + public function listBeginsWith(string $variable, array $searchTerms, bool $caseInsensitive = false, bool $regexEnabled = false) : Mailcode_Commands_Command_ElseIf_ListBeginsWith |
|
| 194 | 194 | { |
| 195 | 195 | $command = $this->instantiator->buildIfListContains('ElseIf', $variable, $searchTerms, $caseInsensitive, $regexEnabled, 'list-begins-with'); |
| 196 | 196 | |
| 197 | - if($command instanceof Mailcode_Commands_Command_ElseIf_ListBeginsWith) |
|
| 197 | + if ($command instanceof Mailcode_Commands_Command_ElseIf_ListBeginsWith) |
|
| 198 | 198 | { |
| 199 | 199 | return $command; |
| 200 | 200 | } |
@@ -210,11 +210,11 @@ discard block |
||
| 210 | 210 | * @return Mailcode_Commands_Command_ElseIf_ListEndsWith |
| 211 | 211 | * @throws Mailcode_Factory_Exception |
| 212 | 212 | */ |
| 213 | - public function listEndsWith(string $variable, array $searchTerms, bool $caseInsensitive=false, bool $regexEnabled=false) : Mailcode_Commands_Command_ElseIf_ListEndsWith |
|
| 213 | + public function listEndsWith(string $variable, array $searchTerms, bool $caseInsensitive = false, bool $regexEnabled = false) : Mailcode_Commands_Command_ElseIf_ListEndsWith |
|
| 214 | 214 | { |
| 215 | 215 | $command = $this->instantiator->buildIfListContains('ElseIf', $variable, $searchTerms, $caseInsensitive, $regexEnabled, 'list-ends-with'); |
| 216 | 216 | |
| 217 | - if($command instanceof Mailcode_Commands_Command_ElseIf_ListEndsWith) |
|
| 217 | + if ($command instanceof Mailcode_Commands_Command_ElseIf_ListEndsWith) |
|
| 218 | 218 | { |
| 219 | 219 | return $command; |
| 220 | 220 | } |
@@ -222,11 +222,11 @@ discard block |
||
| 222 | 222 | throw $this->instantiator->exceptionUnexpectedType('ElseIfListEndsWith', $command); |
| 223 | 223 | } |
| 224 | 224 | |
| 225 | - public function beginsWith(string $variable, string $search, bool $caseInsensitive=false) : Mailcode_Commands_Command_ElseIf_BeginsWith |
|
| 225 | + public function beginsWith(string $variable, string $search, bool $caseInsensitive = false) : Mailcode_Commands_Command_ElseIf_BeginsWith |
|
| 226 | 226 | { |
| 227 | 227 | $command = $this->instantiator->buildIfBeginsWith('ElseIf', $variable, $search, $caseInsensitive); |
| 228 | 228 | |
| 229 | - if($command instanceof Mailcode_Commands_Command_ElseIf_BeginsWith) |
|
| 229 | + if ($command instanceof Mailcode_Commands_Command_ElseIf_BeginsWith) |
|
| 230 | 230 | { |
| 231 | 231 | return $command; |
| 232 | 232 | } |
@@ -234,11 +234,11 @@ discard block |
||
| 234 | 234 | throw $this->instantiator->exceptionUnexpectedType('ElseIfBeginsWith', $command); |
| 235 | 235 | } |
| 236 | 236 | |
| 237 | - public function endsWith(string $variable, string $search, bool $caseInsensitive=false) : Mailcode_Commands_Command_ElseIf_EndsWith |
|
| 237 | + public function endsWith(string $variable, string $search, bool $caseInsensitive = false) : Mailcode_Commands_Command_ElseIf_EndsWith |
|
| 238 | 238 | { |
| 239 | 239 | $command = $this->instantiator->buildIfEndsWith('ElseIf', $variable, $search, $caseInsensitive); |
| 240 | 240 | |
| 241 | - if($command instanceof Mailcode_Commands_Command_ElseIf_EndsWith) |
|
| 241 | + if ($command instanceof Mailcode_Commands_Command_ElseIf_EndsWith) |
|
| 242 | 242 | { |
| 243 | 243 | return $command; |
| 244 | 244 | } |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | { |
| 251 | 251 | $command = $this->instantiator->buildIfEmpty('ElseIf', $variable); |
| 252 | 252 | |
| 253 | - if($command instanceof Mailcode_Commands_Command_ElseIf_Empty) |
|
| 253 | + if ($command instanceof Mailcode_Commands_Command_ElseIf_Empty) |
|
| 254 | 254 | { |
| 255 | 255 | return $command; |
| 256 | 256 | } |
@@ -262,7 +262,7 @@ discard block |
||
| 262 | 262 | { |
| 263 | 263 | $command = $this->instantiator->buildIfNotEmpty('ElseIf', $variable); |
| 264 | 264 | |
| 265 | - if($command instanceof Mailcode_Commands_Command_ElseIf_NotEmpty) |
|
| 265 | + if ($command instanceof Mailcode_Commands_Command_ElseIf_NotEmpty) |
|
| 266 | 266 | { |
| 267 | 267 | return $command; |
| 268 | 268 | } |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | { |
| 275 | 275 | $command = $this->instantiator->buildIfBiggerThan('ElseIf', $variable, $value); |
| 276 | 276 | |
| 277 | - if($command instanceof Mailcode_Commands_Command_ElseIf_BiggerThan) |
|
| 277 | + if ($command instanceof Mailcode_Commands_Command_ElseIf_BiggerThan) |
|
| 278 | 278 | { |
| 279 | 279 | return $command; |
| 280 | 280 | } |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | { |
| 287 | 287 | $command = $this->instantiator->buildIfSmallerThan('ElseIf', $variable, $value); |
| 288 | 288 | |
| 289 | - if($command instanceof Mailcode_Commands_Command_ElseIf_SmallerThan) |
|
| 289 | + if ($command instanceof Mailcode_Commands_Command_ElseIf_SmallerThan) |
|
| 290 | 290 | { |
| 291 | 291 | return $command; |
| 292 | 292 | } |
@@ -298,7 +298,7 @@ discard block |
||
| 298 | 298 | { |
| 299 | 299 | $command = $this->instantiator->buildIfEquals('ElseIf', $variable, $value); |
| 300 | 300 | |
| 301 | - if($command instanceof Mailcode_Commands_Command_ElseIf_EqualsNumber) |
|
| 301 | + if ($command instanceof Mailcode_Commands_Command_ElseIf_EqualsNumber) |
|
| 302 | 302 | { |
| 303 | 303 | return $command; |
| 304 | 304 | } |