Completed
Pull Request — master (#130)
by Greg
01:43
created
src/Parser/Internal/DocblockTag.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      */
46 46
     public static function splitTagAndContent($subject, &$matches)
47 47
     {
48
-        $regex = '/' . self::TAG_REGEX . self::DESCRIPTION_REGEX . '/s';
48
+        $regex = '/'.self::TAG_REGEX.self::DESCRIPTION_REGEX.'/s';
49 49
         return preg_match($regex, $subject, $matches);
50 50
     }
51 51
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     public function __toString()
94 94
     {
95
-        return '@' . $this->getTag() . ' ' . $this->getContent();
95
+        return '@'.$this->getTag().' '.$this->getContent();
96 96
     }
97 97
 
98 98
     /**
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      */
123 123
     public function hasVariableAndDescription(&$matches)
124 124
     {
125
-        $regex = '/^\s*' . self::VARIABLE_OR_WORD_REGEX . self::DESCRIPTION_REGEX . '/s';
125
+        $regex = '/^\s*'.self::VARIABLE_OR_WORD_REGEX.self::DESCRIPTION_REGEX.'/s';
126 126
         return preg_match($regex, $this->getContent(), $matches);
127 127
     }
128 128
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
      */
137 137
     public function hasTypeVariableAndDescription(&$matches)
138 138
     {
139
-        $regex = '/^\s*' . self::TYPE_REGEX . self::VARIABLE_REGEX . self::DESCRIPTION_REGEX . '/s';
139
+        $regex = '/^\s*'.self::TYPE_REGEX.self::VARIABLE_REGEX.self::DESCRIPTION_REGEX.'/s';
140 140
         return preg_match($regex, $this->getContent(), $matches);
141 141
     }
142 142
 
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
      */
150 150
     public function hasWordAndDescription(&$matches)
151 151
     {
152
-        $regex = '/^\s*' . self::WORD_REGEX . self::DESCRIPTION_REGEX . '/s';
152
+        $regex = '/^\s*'.self::WORD_REGEX.self::DESCRIPTION_REGEX.'/s';
153 153
         return preg_match($regex, $this->getContent(), $matches);
154 154
     }
155 155
 }
Please login to merge, or discard this patch.