GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#60)
by Tomasz
01:50
created
src/Parser/WordpressParser.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -49,6 +49,9 @@
 block discarded – undo
49 49
         return $shortcodes;
50 50
     }
51 51
 
52
+    /**
53
+     * @param string $text
54
+     */
52 55
     private static function parseParameters($text)
53 56
     {
54 57
         $text = preg_replace('/[\x{00a0}\x{200b}]+/u', ' ', $text);
Please login to merge, or discard this patch.
src/Processor/Processor.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -125,6 +125,9 @@
 block discarded – undo
125 125
         }, $text);
126 126
     }
127 127
 
128
+    /**
129
+     * @param callable|null $handler
130
+     */
128 131
     private function processHandler(ParsedShortcodeInterface $parsed, ProcessorContext $context, $handler)
129 132
     {
130 133
         $processed = ProcessedShortcode::createFromContext(clone $context);
Please login to merge, or discard this patch.
src/ShortcodeFacade.php 1 patch
Doc Comments   +23 added lines patch added patch discarded remove patch
@@ -76,11 +76,17 @@  discard block
 block discarded – undo
76 76
         $this->processor = $this->processor->withEventContainer($this->events);
77 77
     }
78 78
 
79
+    /**
80
+     * @param string $text
81
+     */
79 82
     public function process($text)
80 83
     {
81 84
         return $this->processor->process($text);
82 85
     }
83 86
 
87
+    /**
88
+     * @param string $text
89
+     */
84 90
     public function parse($text)
85 91
     {
86 92
         return $this->parser->parse($text);
@@ -94,6 +100,10 @@  discard block
 block discarded – undo
94 100
         return $this;
95 101
     }
96 102
 
103
+    /**
104
+     * @param string $name
105
+     * @param \Closure $handler
106
+     */
97 107
     public function addHandler($name, $handler)
98 108
     {
99 109
         $this->handlers->add($name, $handler);
@@ -101,6 +111,10 @@  discard block
 block discarded – undo
101 111
         return $this;
102 112
     }
103 113
 
114
+    /**
115
+     * @param string $alias
116
+     * @param string $name
117
+     */
104 118
     public function addHandlerAlias($alias, $name)
105 119
     {
106 120
         $this->handlers->addAlias($alias, $name);
@@ -108,6 +122,9 @@  discard block
 block discarded – undo
108 122
         return $this;
109 123
     }
110 124
 
125
+    /**
126
+     * @param EventHandler\FilterRawEventHandler $handler
127
+     */
111 128
     public function addEventHandler($name, $handler)
112 129
     {
113 130
         $this->events->addListener($name, $handler);
@@ -117,6 +134,9 @@  discard block
 block discarded – undo
117 134
 
118 135
     /* --- SERIALIZATION --------------------------------------------------- */
119 136
 
137
+    /**
138
+     * @param string $format
139
+     */
120 140
     public function serialize(ShortcodeInterface $shortcode, $format)
121 141
     {
122 142
         switch($format) {
@@ -128,6 +148,9 @@  discard block
 block discarded – undo
128 148
         }
129 149
     }
130 150
 
151
+    /**
152
+     * @param string $format
153
+     */
131 154
     public function unserialize($text, $format)
132 155
     {
133 156
         switch($format) {
Please login to merge, or discard this patch.
src/Parser/RegularParser.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -62,6 +62,11 @@  discard block
 block discarded – undo
62 62
         return $shortcodes;
63 63
     }
64 64
 
65
+    /**
66
+     * @param string|null $bbCode
67
+     * @param null|string $content
68
+     * @param string $text
69
+     */
65 70
     private function getObject($name, $parameters, $bbCode, $offset, $content, $text)
66 71
     {
67 72
         return new ParsedShortcode(new Shortcode($name, $parameters, $content, $bbCode), $text, $offset);
@@ -253,11 +258,18 @@  discard block
 block discarded – undo
253 258
         return implode('', array_map(function(array $token) { return $token[1]; }, $tokens));
254 259
     }
255 260
 
261
+    /**
262
+     * @param integer $type
263
+     */
256 264
     private function lookahead($type)
257 265
     {
258 266
         return $this->position < $this->tokensCount && (empty($type) || $this->tokens[$this->position][0] === $type);
259 267
     }
260 268
 
269
+    /**
270
+     * @param integer|null $type
271
+     * @param \Closure $callback
272
+     */
261 273
     private function match($type, $callback = null, $ws = false)
262 274
     {
263 275
         if($this->position >= $this->tokensCount) {
@@ -289,6 +301,9 @@  discard block
 block discarded – undo
289 301
 
290 302
     /* --- LEXER ----------------------------------------------------------- */
291 303
 
304
+    /**
305
+     * @param string $text
306
+     */
292 307
     private function tokenize($text)
293 308
     {
294 309
         preg_match_all($this->lexerRegex, $text, $matches, PREG_SET_ORDER | PREG_OFFSET_CAPTURE);
Please login to merge, or discard this patch.