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
Push — master ( 928474...372332 )
by Romain
27:10 queued 24:47
created
ff/ff8e5e1a3a187675d750bada7bb921b1cbf996794635aff23ee2f2460c7eb1ca.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         ";
55 55
         // line 12
56 56
         $context['_parent'] = $context;
57
-        $context['_seq'] = twig_ensure_traversable((isset($context["classes"]) || array_key_exists("classes", $context) ? $context["classes"] : (function () { throw new Twig_Error_Runtime('Variable "classes" does not exist.', 12, $this->getSourceContext()); })()));
57
+        $context['_seq'] = twig_ensure_traversable((isset($context["classes"]) || array_key_exists("classes", $context) ? $context["classes"] : (function() { throw new Twig_Error_Runtime('Variable "classes" does not exist.', 12, $this->getSourceContext()); })()));
58 58
         foreach ($context['_seq'] as $context["_key"] => $context["class"]) {
59 59
             // line 13
60 60
             echo "            ";
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 
100 100
     public function getDebugInfo()
101 101
     {
102
-        return array (  86 => 24,  80 => 23,  73 => 19,  67 => 16,  63 => 14,  60 => 13,  56 => 12,  49 => 7,  46 => 6,  40 => 4,  33 => 3,  29 => 1,  27 => 2,  11 => 1,);
102
+        return array(86 => 24, 80 => 23, 73 => 19, 67 => 16, 63 => 14, 60 => 13, 56 => 12, 49 => 7, 46 => 6, 40 => 4, 33 => 3, 29 => 1, 27 => 2, 11 => 1,);
103 103
     }
104 104
 
105 105
     public function getSourceContext()
Please login to merge, or discard this patch.
17/177a7d854780dea2c0a11dd3e7153e8e5a9f58f014625655efef04f68ae88b84.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,13 +15,13 @@  discard block
 block discarded – undo
15 15
     protected function doGetParent(array $context)
16 16
     {
17 17
         // line 7
18
-        return $this->loadTemplate((isset($context["extension"]) || array_key_exists("extension", $context) ? $context["extension"] : (function () { throw new Twig_Error_Runtime('Variable "extension" does not exist.', 7, $this->getSourceContext()); })()), "index.twig", 7);
18
+        return $this->loadTemplate((isset($context["extension"]) || array_key_exists("extension", $context) ? $context["extension"] : (function() { throw new Twig_Error_Runtime('Variable "extension" does not exist.', 7, $this->getSourceContext()); })()), "index.twig", 7);
19 19
     }
20 20
 
21 21
     protected function doDisplay(array $context, array $blocks = array())
22 22
     {
23 23
         // line 1
24
-        if ((isset($context["has_namespaces"]) || array_key_exists("has_namespaces", $context) ? $context["has_namespaces"] : (function () { throw new Twig_Error_Runtime('Variable "has_namespaces" does not exist.', 1, $this->getSourceContext()); })())) {
24
+        if ((isset($context["has_namespaces"]) || array_key_exists("has_namespaces", $context) ? $context["has_namespaces"] : (function() { throw new Twig_Error_Runtime('Variable "has_namespaces" does not exist.', 1, $this->getSourceContext()); })())) {
25 25
             // line 2
26 26
             $context["extension"] = "namespaces.twig";
27 27
         } else {
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
     public function getDebugInfo()
52 52
     {
53
-        return array (  36 => 9,  32 => 7,  29 => 4,  26 => 2,  24 => 1,  18 => 7,);
53
+        return array(36 => 9, 32 => 7, 29 => 4, 26 => 2, 24 => 1, 18 => 7,);
54 54
     }
55 55
 
56 56
     public function getSourceContext()
Please login to merge, or discard this patch.
69/695f6f9443a28203ec7e54c6314ee4d03c4965243598740d3fd6d87f20fc66e2.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         echo "
25 25
 window.projectVersion = '";
26 26
         // line 3
27
-        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->getSourceContext(), (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new Twig_Error_Runtime('Variable "project" does not exist.', 3, $this->getSourceContext()); })()), "version", array()), "html", null, true);
27
+        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->getSourceContext(), (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function() { throw new Twig_Error_Runtime('Variable "project" does not exist.', 3, $this->getSourceContext()); })()), "version", array()), "html", null, true);
28 28
         echo "';
29 29
 
30 30
 (function(root) {
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     var rootPath = '';
34 34
     var treeHtml = '";
35 35
         // line 9
36
-        echo twig_replace_filter($context["__internal_8afc8a8ae1ba1195f1a5124fbe671ff7240f27c9ccc050ed7e120c7cdabb77b7"]->macro_element((isset($context["tree"]) || array_key_exists("tree", $context) ? $context["tree"] : (function () { throw new Twig_Error_Runtime('Variable "tree" does not exist.', 9, $this->getSourceContext()); })()), twig_get_attribute($this->env, $this->getSourceContext(), (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new Twig_Error_Runtime('Variable "project" does not exist.', 9, $this->getSourceContext()); })()), "config", array(0 => "default_opened_level"), "method"), 0), array("'" => "\\'", "
36
+        echo twig_replace_filter($context["__internal_8afc8a8ae1ba1195f1a5124fbe671ff7240f27c9ccc050ed7e120c7cdabb77b7"]->macro_element((isset($context["tree"]) || array_key_exists("tree", $context) ? $context["tree"] : (function() { throw new Twig_Error_Runtime('Variable "tree" does not exist.', 9, $this->getSourceContext()); })()), twig_get_attribute($this->env, $this->getSourceContext(), (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function() { throw new Twig_Error_Runtime('Variable "project" does not exist.', 9, $this->getSourceContext()); })()), "config", array(0 => "default_opened_level"), "method"), 0), array("'" => "\\'", "
37 37
 " => ""));
38 38
         echo "';
39 39
 
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
             ";
224 224
         // line 24
225 225
         $context['_parent'] = $context;
226
-        $context['_seq'] = twig_ensure_traversable((isset($context["namespaces"]) || array_key_exists("namespaces", $context) ? $context["namespaces"] : (function () { throw new Twig_Error_Runtime('Variable "namespaces" does not exist.', 24, $this->getSourceContext()); })()));
226
+        $context['_seq'] = twig_ensure_traversable((isset($context["namespaces"]) || array_key_exists("namespaces", $context) ? $context["namespaces"] : (function() { throw new Twig_Error_Runtime('Variable "namespaces" does not exist.', 24, $this->getSourceContext()); })()));
227 227
         foreach ($context['_seq'] as $context["_key"] => $context["ns"]) {
228 228
             // line 25
229 229
             echo "{\"type\": \"Namespace\", \"link\": \"";
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
             ";
243 243
         // line 28
244 244
         $context['_parent'] = $context;
245
-        $context['_seq'] = twig_ensure_traversable((isset($context["interfaces"]) || array_key_exists("interfaces", $context) ? $context["interfaces"] : (function () { throw new Twig_Error_Runtime('Variable "interfaces" does not exist.', 28, $this->getSourceContext()); })()));
245
+        $context['_seq'] = twig_ensure_traversable((isset($context["interfaces"]) || array_key_exists("interfaces", $context) ? $context["interfaces"] : (function() { throw new Twig_Error_Runtime('Variable "interfaces" does not exist.', 28, $this->getSourceContext()); })()));
246 246
         foreach ($context['_seq'] as $context["_key"] => $context["class"]) {
247 247
             // line 29
248 248
             echo "{\"type\": \"Interface\", ";
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
             ";
275 275
         // line 33
276 276
         $context['_parent'] = $context;
277
-        $context['_seq'] = twig_ensure_traversable((isset($context["classes"]) || array_key_exists("classes", $context) ? $context["classes"] : (function () { throw new Twig_Error_Runtime('Variable "classes" does not exist.', 33, $this->getSourceContext()); })()));
277
+        $context['_seq'] = twig_ensure_traversable((isset($context["classes"]) || array_key_exists("classes", $context) ? $context["classes"] : (function() { throw new Twig_Error_Runtime('Variable "classes" does not exist.', 33, $this->getSourceContext()); })()));
278 278
         foreach ($context['_seq'] as $context["_key"] => $context["class"]) {
279 279
             // line 34
280 280
             echo "{\"type\": ";
@@ -368,29 +368,29 @@  discard block
 block discarded – undo
368 368
         try {
369 369
             // line 216
370 370
             echo "    ";
371
-            if (twig_get_attribute($this->env, $this->getSourceContext(), (isset($context["class"]) || array_key_exists("class", $context) ? $context["class"] : (function () { throw new Twig_Error_Runtime('Variable "class" does not exist.', 216, $this->getSourceContext()); })()), "methods", array())) {
371
+            if (twig_get_attribute($this->env, $this->getSourceContext(), (isset($context["class"]) || array_key_exists("class", $context) ? $context["class"] : (function() { throw new Twig_Error_Runtime('Variable "class" does not exist.', 216, $this->getSourceContext()); })()), "methods", array())) {
372 372
                 // line 217
373 373
                 echo "        ";
374
-                $context["from_name"] = twig_replace_filter(twig_get_attribute($this->env, $this->getSourceContext(), (isset($context["class"]) || array_key_exists("class", $context) ? $context["class"] : (function () { throw new Twig_Error_Runtime('Variable "class" does not exist.', 217, $this->getSourceContext()); })()), "name", array()), array("\\" => "\\\\"));
374
+                $context["from_name"] = twig_replace_filter(twig_get_attribute($this->env, $this->getSourceContext(), (isset($context["class"]) || array_key_exists("class", $context) ? $context["class"] : (function() { throw new Twig_Error_Runtime('Variable "class" does not exist.', 217, $this->getSourceContext()); })()), "name", array()), array("\\" => "\\\\"));
375 375
                 // line 218
376 376
                 echo "        ";
377
-                $context["from_link"] = $this->env->getExtension('Sami\Renderer\TwigExtension')->pathForClass($context, (isset($context["class"]) || array_key_exists("class", $context) ? $context["class"] : (function () { throw new Twig_Error_Runtime('Variable "class" does not exist.', 218, $this->getSourceContext()); })()));
377
+                $context["from_link"] = $this->env->getExtension('Sami\Renderer\TwigExtension')->pathForClass($context, (isset($context["class"]) || array_key_exists("class", $context) ? $context["class"] : (function() { throw new Twig_Error_Runtime('Variable "class" does not exist.', 218, $this->getSourceContext()); })()));
378 378
                 // line 219
379 379
                 echo "        ";
380 380
                 $context['_parent'] = $context;
381
-                $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->getSourceContext(), (isset($context["class"]) || array_key_exists("class", $context) ? $context["class"] : (function () { throw new Twig_Error_Runtime('Variable "class" does not exist.', 219, $this->getSourceContext()); })()), "methods", array()));
381
+                $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->getSourceContext(), (isset($context["class"]) || array_key_exists("class", $context) ? $context["class"] : (function() { throw new Twig_Error_Runtime('Variable "class" does not exist.', 219, $this->getSourceContext()); })()), "methods", array()));
382 382
                 foreach ($context['_seq'] as $context["_key"] => $context["meth"]) {
383 383
                     // line 220
384 384
                     echo "            {\"type\": \"Method\", \"fromName\": \"";
385
-                    echo (isset($context["from_name"]) || array_key_exists("from_name", $context) ? $context["from_name"] : (function () { throw new Twig_Error_Runtime('Variable "from_name" does not exist.', 220, $this->getSourceContext()); })());
385
+                    echo (isset($context["from_name"]) || array_key_exists("from_name", $context) ? $context["from_name"] : (function() { throw new Twig_Error_Runtime('Variable "from_name" does not exist.', 220, $this->getSourceContext()); })());
386 386
                     echo "\", \"fromLink\": \"";
387
-                    echo (isset($context["from_link"]) || array_key_exists("from_link", $context) ? $context["from_link"] : (function () { throw new Twig_Error_Runtime('Variable "from_link" does not exist.', 220, $this->getSourceContext()); })());
387
+                    echo (isset($context["from_link"]) || array_key_exists("from_link", $context) ? $context["from_link"] : (function() { throw new Twig_Error_Runtime('Variable "from_link" does not exist.', 220, $this->getSourceContext()); })());
388 388
                     echo "\", \"link\": \"";
389 389
                     echo $this->env->getExtension('Sami\Renderer\TwigExtension')->pathForMethod($context, $context["meth"]);
390 390
                     echo "\", \"name\": \"";
391 391
                     echo twig_replace_filter($context["meth"], array("\\" => "\\\\"));
392 392
                     echo "\", \"doc\": \"";
393
-                    echo twig_escape_filter($this->env, json_encode($this->env->getExtension('Sami\Renderer\TwigExtension')->parseDesc($context, twig_get_attribute($this->env, $this->getSourceContext(), $context["meth"], "shortdesc", array()), (isset($context["class"]) || array_key_exists("class", $context) ? $context["class"] : (function () { throw new Twig_Error_Runtime('Variable "class" does not exist.', 220, $this->getSourceContext()); })()))), "html", null, true);
393
+                    echo twig_escape_filter($this->env, json_encode($this->env->getExtension('Sami\Renderer\TwigExtension')->parseDesc($context, twig_get_attribute($this->env, $this->getSourceContext(), $context["meth"], "shortdesc", array()), (isset($context["class"]) || array_key_exists("class", $context) ? $context["class"] : (function() { throw new Twig_Error_Runtime('Variable "class" does not exist.', 220, $this->getSourceContext()); })()))), "html", null, true);
394 394
                     echo "\"},
395 395
         ";
396 396
                 }
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
     <ul>";
430 430
             // line 229
431 431
             $context['_parent'] = $context;
432
-            $context['_seq'] = twig_ensure_traversable((isset($context["tree"]) || array_key_exists("tree", $context) ? $context["tree"] : (function () { throw new Twig_Error_Runtime('Variable "tree" does not exist.', 229, $this->getSourceContext()); })()));
432
+            $context['_seq'] = twig_ensure_traversable((isset($context["tree"]) || array_key_exists("tree", $context) ? $context["tree"] : (function() { throw new Twig_Error_Runtime('Variable "tree" does not exist.', 229, $this->getSourceContext()); })()));
433 433
             foreach ($context['_seq'] as $context["_key"] => $context["element"]) {
434 434
                 // line 230
435 435
                 if (twig_get_attribute($this->env, $this->getSourceContext(), $context["element"], 2, array(), "array")) {
@@ -437,23 +437,23 @@  discard block
 block discarded – undo
437 437
                     echo "                <li data-name=\"namespace:";
438 438
                     echo twig_replace_filter(twig_get_attribute($this->env, $this->getSourceContext(), $context["element"], 1, array(), "array"), array("\\" => "_"));
439 439
                     echo "\" ";
440
-                    if (((isset($context["depth"]) || array_key_exists("depth", $context) ? $context["depth"] : (function () { throw new Twig_Error_Runtime('Variable "depth" does not exist.', 231, $this->getSourceContext()); })()) < (isset($context["opened"]) || array_key_exists("opened", $context) ? $context["opened"] : (function () { throw new Twig_Error_Runtime('Variable "opened" does not exist.', 231, $this->getSourceContext()); })()))) {
440
+                    if (((isset($context["depth"]) || array_key_exists("depth", $context) ? $context["depth"] : (function() { throw new Twig_Error_Runtime('Variable "depth" does not exist.', 231, $this->getSourceContext()); })()) < (isset($context["opened"]) || array_key_exists("opened", $context) ? $context["opened"] : (function() { throw new Twig_Error_Runtime('Variable "opened" does not exist.', 231, $this->getSourceContext()); })()))) {
441 441
                         echo "class=\"opened\"";
442 442
                     }
443 443
                     echo ">
444 444
                     <div style=\"padding-left:";
445 445
                     // line 232
446
-                    echo ((isset($context["depth"]) || array_key_exists("depth", $context) ? $context["depth"] : (function () { throw new Twig_Error_Runtime('Variable "depth" does not exist.', 232, $this->getSourceContext()); })()) * 18);
446
+                    echo ((isset($context["depth"]) || array_key_exists("depth", $context) ? $context["depth"] : (function() { throw new Twig_Error_Runtime('Variable "depth" does not exist.', 232, $this->getSourceContext()); })()) * 18);
447 447
                     echo "px\" class=\"hd\">
448 448
                         <span class=\"glyphicon glyphicon-play\"></span>";
449 449
                     // line 233
450
-                    if ( !twig_get_attribute($this->env, $this->getSourceContext(), (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new Twig_Error_Runtime('Variable "project" does not exist.', 233, $this->getSourceContext()); })()), "config", array(0 => "simulate_namespaces"), "method")) {
450
+                    if (!twig_get_attribute($this->env, $this->getSourceContext(), (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function() { throw new Twig_Error_Runtime('Variable "project" does not exist.', 233, $this->getSourceContext()); })()), "config", array(0 => "simulate_namespaces"), "method")) {
451 451
                         echo "<a href=\"";
452 452
                         echo $this->env->getExtension('Sami\Renderer\TwigExtension')->pathForNamespace($context, twig_get_attribute($this->env, $this->getSourceContext(), $context["element"], 1, array(), "array"));
453 453
                         echo "\">";
454 454
                     }
455 455
                     echo twig_get_attribute($this->env, $this->getSourceContext(), $context["element"], 0, array(), "array");
456
-                    if ( !twig_get_attribute($this->env, $this->getSourceContext(), (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new Twig_Error_Runtime('Variable "project" does not exist.', 233, $this->getSourceContext()); })()), "config", array(0 => "simulate_namespaces"), "method")) {
456
+                    if (!twig_get_attribute($this->env, $this->getSourceContext(), (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function() { throw new Twig_Error_Runtime('Variable "project" does not exist.', 233, $this->getSourceContext()); })()), "config", array(0 => "simulate_namespaces"), "method")) {
457 457
                         echo "</a>";
458 458
                     }
459 459
                     // line 234
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
                     <div class=\"bd\">
462 462
                         ";
463 463
                     // line 236
464
-                    echo $context["__internal_19673542bca73c75548fd07e0673770ce397b80422823d7d940f6382456d6a39"]->macro_element(twig_get_attribute($this->env, $this->getSourceContext(), $context["element"], 2, array(), "array"), (isset($context["opened"]) || array_key_exists("opened", $context) ? $context["opened"] : (function () { throw new Twig_Error_Runtime('Variable "opened" does not exist.', 236, $this->getSourceContext()); })()), ((isset($context["depth"]) || array_key_exists("depth", $context) ? $context["depth"] : (function () { throw new Twig_Error_Runtime('Variable "depth" does not exist.', 236, $this->getSourceContext()); })()) + 1));
464
+                    echo $context["__internal_19673542bca73c75548fd07e0673770ce397b80422823d7d940f6382456d6a39"]->macro_element(twig_get_attribute($this->env, $this->getSourceContext(), $context["element"], 2, array(), "array"), (isset($context["opened"]) || array_key_exists("opened", $context) ? $context["opened"] : (function() { throw new Twig_Error_Runtime('Variable "opened" does not exist.', 236, $this->getSourceContext()); })()), ((isset($context["depth"]) || array_key_exists("depth", $context) ? $context["depth"] : (function() { throw new Twig_Error_Runtime('Variable "depth" does not exist.', 236, $this->getSourceContext()); })()) + 1));
465 465
                     // line 237
466 466
                     echo "</div>
467 467
                 </li>
@@ -471,13 +471,13 @@  discard block
 block discarded – undo
471 471
                     echo "                <li data-name=\"class:";
472 472
                     echo twig_escape_filter($this->env, twig_replace_filter(twig_get_attribute($this->env, $this->getSourceContext(), twig_get_attribute($this->env, $this->getSourceContext(), $context["element"], 1, array(), "array"), "name", array()), array("\\" => "_")), "html", null, true);
473 473
                     echo "\" ";
474
-                    if (((isset($context["depth"]) || array_key_exists("depth", $context) ? $context["depth"] : (function () { throw new Twig_Error_Runtime('Variable "depth" does not exist.', 240, $this->getSourceContext()); })()) < (isset($context["opened"]) || array_key_exists("opened", $context) ? $context["opened"] : (function () { throw new Twig_Error_Runtime('Variable "opened" does not exist.', 240, $this->getSourceContext()); })()))) {
474
+                    if (((isset($context["depth"]) || array_key_exists("depth", $context) ? $context["depth"] : (function() { throw new Twig_Error_Runtime('Variable "depth" does not exist.', 240, $this->getSourceContext()); })()) < (isset($context["opened"]) || array_key_exists("opened", $context) ? $context["opened"] : (function() { throw new Twig_Error_Runtime('Variable "opened" does not exist.', 240, $this->getSourceContext()); })()))) {
475 475
                         echo "class=\"opened\"";
476 476
                     }
477 477
                     echo ">
478 478
                     <div style=\"padding-left:";
479 479
                     // line 241
480
-                    echo twig_escape_filter($this->env, (8 + ((isset($context["depth"]) || array_key_exists("depth", $context) ? $context["depth"] : (function () { throw new Twig_Error_Runtime('Variable "depth" does not exist.', 241, $this->getSourceContext()); })()) * 18)), "html", null, true);
480
+                    echo twig_escape_filter($this->env, (8 + ((isset($context["depth"]) || array_key_exists("depth", $context) ? $context["depth"] : (function() { throw new Twig_Error_Runtime('Variable "depth" does not exist.', 241, $this->getSourceContext()); })()) * 18)), "html", null, true);
481 481
                     echo "px\" class=\"hd leaf\">
482 482
                         <a href=\"";
483 483
                     // line 242
@@ -515,7 +515,7 @@  discard block
 block discarded – undo
515 515
 
516 516
     public function getDebugInfo()
517 517
     {
518
-        return array (  497 => 247,  484 => 242,  480 => 241,  471 => 240,  466 => 237,  464 => 236,  460 => 234,  450 => 233,  446 => 232,  437 => 231,  435 => 230,  431 => 229,  428 => 227,  425 => 226,  411 => 225,  401 => 222,  384 => 220,  379 => 219,  376 => 218,  373 => 217,  370 => 216,  358 => 215,  330 => 159,  327 => 158,  321 => 39,  317 => 40,  314 => 39,  311 => 37,  303 => 35,  280 => 34,  276 => 33,  273 => 32,  265 => 30,  248 => 29,  244 => 28,  241 => 27,  229 => 25,  225 => 24,  222 => 23,  219 => 22,  216 => 21,  211 => 224,  178 => 212,  175 => 184,  173 => 158,  54 => 41,  52 => 21,  36 => 9,  27 => 3,  24 => 2,  22 => 1,);
518
+        return array(497 => 247, 484 => 242, 480 => 241, 471 => 240, 466 => 237, 464 => 236, 460 => 234, 450 => 233, 446 => 232, 437 => 231, 435 => 230, 431 => 229, 428 => 227, 425 => 226, 411 => 225, 401 => 222, 384 => 220, 379 => 219, 376 => 218, 373 => 217, 370 => 216, 358 => 215, 330 => 159, 327 => 158, 321 => 39, 317 => 40, 314 => 39, 311 => 37, 303 => 35, 280 => 34, 276 => 33, 273 => 32, 265 => 30, 248 => 29, 244 => 28, 241 => 27, 229 => 25, 225 => 24, 222 => 23, 219 => 22, 216 => 21, 211 => 224, 178 => 212, 175 => 184, 173 => 158, 54 => 41, 52 => 21, 36 => 9, 27 => 3, 24 => 2, 22 => 1,);
519 519
     }
520 520
 
521 521
     public function getSourceContext()
Please login to merge, or discard this patch.
69/69f863d40aee16999f1b456cfbe9101188a34e30a7c8affa7b973b4d58dd1038.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         // line 30
99 99
         echo twig_escape_filter($this->env, $this->env->getExtension('Sami\Renderer\TwigExtension')->pathForStaticFile($context, "index.html"), "html", null, true);
100 100
         echo "\">";
101
-        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->getSourceContext(), (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new Twig_Error_Runtime('Variable "project" does not exist.', 30, $this->getSourceContext()); })()), "config", array(0 => "title"), "method"), "html", null, true);
101
+        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->getSourceContext(), (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function() { throw new Twig_Error_Runtime('Variable "project" does not exist.', 30, $this->getSourceContext()); })()), "config", array(0 => "title"), "method"), "html", null, true);
102 102
         echo "</a>
103 103
             </div>
104 104
             <div class=\"collapse navbar-collapse\" id=\"navbar-elements\">
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
         echo "\">Classes</a></li>
110 110
                     ";
111 111
         // line 35
112
-        if ((isset($context["has_namespaces"]) || array_key_exists("has_namespaces", $context) ? $context["has_namespaces"] : (function () { throw new Twig_Error_Runtime('Variable "has_namespaces" does not exist.', 35, $this->getSourceContext()); })())) {
112
+        if ((isset($context["has_namespaces"]) || array_key_exists("has_namespaces", $context) ? $context["has_namespaces"] : (function() { throw new Twig_Error_Runtime('Variable "has_namespaces" does not exist.', 35, $this->getSourceContext()); })())) {
113 113
             // line 36
114 114
             echo "                        <li><a href=\"";
115 115
             echo twig_escape_filter($this->env, $this->env->getExtension('Sami\Renderer\TwigExtension')->pathForStaticFile($context, "namespaces.html"), "html", null, true);
@@ -154,14 +154,14 @@  discard block
 block discarded – undo
154 154
         echo "    <div id=\"control-panel\">
155 155
         ";
156 156
         // line 54
157
-        if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->getSourceContext(), (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new Twig_Error_Runtime('Variable "project" does not exist.', 54, $this->getSourceContext()); })()), "versions", array())) > 1)) {
157
+        if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->getSourceContext(), (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function() { throw new Twig_Error_Runtime('Variable "project" does not exist.', 54, $this->getSourceContext()); })()), "versions", array())) > 1)) {
158 158
             // line 55
159 159
             echo "            <form action=\"#\" method=\"GET\">
160 160
                 <select id=\"version-switcher\" name=\"version\">
161 161
                     ";
162 162
             // line 57
163 163
             $context['_parent'] = $context;
164
-            $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->getSourceContext(), (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new Twig_Error_Runtime('Variable "project" does not exist.', 57, $this->getSourceContext()); })()), "versions", array()));
164
+            $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->getSourceContext(), (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function() { throw new Twig_Error_Runtime('Variable "project" does not exist.', 57, $this->getSourceContext()); })()), "versions", array()));
165 165
             foreach ($context['_seq'] as $context["_key"] => $context["version"]) {
166 166
                 // line 58
167 167
                 echo "                        <option value=\"";
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
 
222 222
     public function getDebugInfo()
223 223
     {
224
-        return array (  206 => 77,  203 => 76,  190 => 66,  185 => 63,  180 => 60,  167 => 58,  163 => 57,  159 => 55,  157 => 54,  154 => 53,  151 => 52,  146 => 49,  143 => 48,  133 => 41,  129 => 40,  125 => 39,  120 => 38,  114 => 36,  112 => 35,  108 => 34,  99 => 30,  88 => 21,  85 => 20,  79 => 13,  73 => 11,  65 => 15,  62 => 14,  60 => 13,  57 => 12,  55 => 11,  51 => 10,  45 => 7,  41 => 6,  37 => 4,  34 => 3,  11 => 1,);
224
+        return array(206 => 77, 203 => 76, 190 => 66, 185 => 63, 180 => 60, 167 => 58, 163 => 57, 159 => 55, 157 => 54, 154 => 53, 151 => 52, 146 => 49, 143 => 48, 133 => 41, 129 => 40, 125 => 39, 120 => 38, 114 => 36, 112 => 35, 108 => 34, 99 => 30, 88 => 21, 85 => 20, 79 => 13, 73 => 11, 65 => 15, 62 => 14, 60 => 13, 57 => 12, 55 => 11, 51 => 10, 45 => 7, 41 => 6, 37 => 4, 34 => 3, 11 => 1,);
225 225
     }
226 226
 
227 227
     public function getSourceContext()
Please login to merge, or discard this patch.
src/Strime/Slackify/Webhooks/Webhook.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -97,10 +97,10 @@  discard block
 block discarded – undo
97 97
         if (isset($values["link"]) && ($values["link"] !== NULL)) {
98 98
             $values["message"] .= "\n";
99 99
             $values["message"] .= "<" . $values["link"]; 
100
-            if(isset($values["link_text"]) && ($values["link_text"] !== NULL)) {
100
+            if (isset($values["link_text"]) && ($values["link_text"] !== NULL)) {
101 101
                 $values["message"] .= "|" . $values["link_text"];
102 102
             }
103
-            $values["message"] .= ">" ;
103
+            $values["message"] .= ">";
104 104
         }
105 105
 
106 106
         // Set the parameters for the request
@@ -142,13 +142,13 @@  discard block
 block discarded – undo
142 142
         try {
143 143
             $client = new \GuzzleHttp\Client();
144 144
             $json_response = $client->request('POST', $this->url, [
145
-                'body' => json_encode( $params )
145
+                'body' => json_encode($params)
146 146
             ]);
147 147
             // $curl_status = $json_response->getStatusCode();
148 148
             // $response = json_decode( $json_response->getBody() );
149 149
         }
150
-        catch(RequestException $e) {
151
-            throw new RuntimeException('The request to the webhook failed: '.$e->getMessage(), $e->getCode(), $e);
150
+        catch (RequestException $e) {
151
+            throw new RuntimeException('The request to the webhook failed: ' . $e->getMessage(), $e->getCode(), $e);
152 152
         }
153 153
 
154 154
         // We re-initialize the attachments to prevent any conflict with a future message.
Please login to merge, or discard this patch.