Passed
Branch fuck-54 (e8694d)
by Kacper
02:57
created
Parser/TokenFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -41,11 +41,11 @@  discard block
 block discarded – undo
41 41
 
42 42
     public function create($params) {
43 43
         $params[0] = !empty($params[0]) ? $this->getName($params[0]) : $this->_base;
44
-        if(empty($params['rule'])) {
44
+        if (empty($params['rule'])) {
45 45
             $params['rule'] = $this->_rule;
46 46
         }
47 47
 
48
-        if(isset($params['pos'])) {
48
+        if (isset($params['pos'])) {
49 49
             $params['pos'] += $this->_offset;
50 50
         }
51 51
 
@@ -61,11 +61,11 @@  discard block
 block discarded – undo
61 61
         /** @var Token $token */
62 62
         $token = new $this->_class($params);
63 63
 
64
-        if($this->_type == 0x3) {
64
+        if ($this->_type == 0x3) {
65 65
             return $token;
66 66
         }
67 67
 
68
-        if($this->_type === self::START) {
68
+        if ($this->_type === self::START) {
69 69
             $token->setEnd(false);
70 70
             return $token;
71 71
         } else {
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      */
149 149
     public function setClass($class)
150 150
     {
151
-        if(!is_a($class, 'Kadet\Highlighter\Parser\Token', true)) {
151
+        if (!is_a($class, 'Kadet\Highlighter\Parser\Token', true)) {
152 152
             throw new \InvalidArgumentException('$class must extend Kadet\Highlighter\Parser\Token');
153 153
         }
154 154
 
Please login to merge, or discard this patch.