Passed
Push — master ( 009312...5c1851 )
by Sebastian
04:14
created
src/Mailcode/Traits/Commands/Validation/TimezoneTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
             if (!$this->timezoneToken instanceof Mailcode_Parser_Statement_Tokenizer_Token_StringLiteral &&
41 41
                 !$this->timezoneToken instanceof Mailcode_Parser_Statement_Tokenizer_Token_Variable) {
42 42
                 $this->validationResult->makeError(
43
-                    t('Invalid timezone:') . ' ' . t('Expected a string or variable.'),
43
+                    t('Invalid timezone:').' '.t('Expected a string or variable.'),
44 44
                     TimezoneInterface::VALIDATION_TIMEZONE_CODE_WRONG_TYPE
45 45
                 );
46 46
                 return;
Please login to merge, or discard this patch.
src/Mailcode/Traits/Commands/Validation/CountTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
         if ($this->countEnabled) {
48 48
             if (!$this->countToken instanceof Mailcode_Parser_Statement_Tokenizer_Token_Variable) {
49 49
                 $this->validationResult->makeError(
50
-                    t('Invalid count subject:') . ' ' . t('Expected a variable.'),
50
+                    t('Invalid count subject:').' '.t('Expected a variable.'),
51 51
                     CountInterface::VALIDATION_COUNT_CODE_WRONG_TYPE
52 52
                 );
53 53
                 return;
Please login to merge, or discard this patch.
src/Mailcode/Traits/Commands/Validation/BreakAtTrait.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -43,13 +43,13 @@  discard block
 block discarded – undo
43 43
 
44 44
         $val = $this->validator->createKeyword(Mailcode_Commands_Keywords::TYPE_BREAK_AT);
45 45
 
46
-        $this->breakAtEnabled = $val->isValid() && $this->breakAtToken != null;;
46
+        $this->breakAtEnabled = $val->isValid() && $this->breakAtToken != null; ;
47 47
 
48 48
         if ($this->breakAtEnabled) {
49 49
             if (!$this->breakAtToken instanceof Mailcode_Parser_Statement_Tokenizer_Token_Number &&
50 50
                 !$this->breakAtToken instanceof Mailcode_Parser_Statement_Tokenizer_Token_Variable) {
51 51
                 $this->validationResult->makeError(
52
-                    t('Invalid break-at value:') . ' ' . t('Expected a number or variable.'),
52
+                    t('Invalid break-at value:').' '.t('Expected a number or variable.'),
53 53
                     BreakAtInterface::VALIDATION_BREAK_AT_CODE_WRONG_TYPE
54 54
                 );
55 55
                 return;
@@ -73,19 +73,19 @@  discard block
 block discarded – undo
73 73
     public function getBreakAt()
74 74
     {
75 75
         $token = $this->getBreakAtToken();
76
-        if($token === null) {
76
+        if ($token === null) {
77 77
             return null;
78 78
         }
79 79
 
80
-        if($token instanceof Mailcode_Parser_Statement_Tokenizer_Token_Variable) {
80
+        if ($token instanceof Mailcode_Parser_Statement_Tokenizer_Token_Variable) {
81 81
             return $token->getVariable();
82 82
         }
83 83
 
84
-        if($token instanceof Mailcode_Parser_Statement_Tokenizer_Token_Number) {
84
+        if ($token instanceof Mailcode_Parser_Statement_Tokenizer_Token_Number) {
85 85
             return (int)$token->getValue();
86 86
         }
87 87
 
88
-        if($token instanceof Mailcode_Parser_Statement_Tokenizer_Token_StringLiteral) {
88
+        if ($token instanceof Mailcode_Parser_Statement_Tokenizer_Token_StringLiteral) {
89 89
             return (int)$token->getText();
90 90
         }
91 91
 
Please login to merge, or discard this patch.