Completed
Branch 0.8-dev (1750db)
by Kacper
02:34
created
Parser/TokenFactory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      *
49 49
      * @return false|Token|null
50 50
      */
51
-    public function create($name, $params = [ ])
51
+    public function create($name, $params = [])
52 52
     {
53 53
         if ($name !== null) {
54 54
             $name = $this->getName($name);
@@ -68,18 +68,18 @@  discard block
 block discarded – undo
68 68
             $params['class'] = $this->_class;
69 69
         }
70 70
 
71
-        if($this->_type & Token::START) {
72
-            if(!isset($params['start'])) {
71
+        if ($this->_type & Token::START) {
72
+            if (!isset($params['start'])) {
73 73
                 $params['start'] = new $params['class']($name, $params);
74 74
             }
75 75
 
76
-            if($this->_type === Token::START) {
76
+            if ($this->_type === Token::START) {
77 77
                 $params['start']->setEnd(false);
78 78
                 return $params['start'];
79 79
             }
80 80
         }
81 81
 
82
-        if($this->_type & Token::END) {
82
+        if ($this->_type & Token::END) {
83 83
             if (isset($params['length'])) {
84 84
                 $end = $params;
85 85
                 $end['pos'] += $params['length'];
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
                 $params['end'] = new $params['class']($name, $end);
89 89
             }
90 90
 
91
-            if($this->_type === Token::END) {
91
+            if ($this->_type === Token::END) {
92 92
                 $params['end']->setStart(false);
93 93
                 return $params['end'];
94 94
             }
Please login to merge, or discard this patch.