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 ( 5512e8...78b9a3 )
by Bruno
01:27
created
src/Ciandt/Behat/PlaceholdersExtension/Config/PlaceholdersRepository.php 4 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,6 @@
 block discarded – undo
47 47
     /**
48 48
      * reads the YAML placeholder definitions and returns an associative array
49 49
      *
50
-     * @param type $config_files
51 50
      * @todo use %paths.base% value
52 51
      * @return array
53 52
      */
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 
4 4
 use Symfony\Component\Yaml\Yaml;
5 5
 use Ciandt\Behat\PlaceholdersExtension\Utils\PlaceholderUtils;
6
-use Ciandt\Behat\PlaceholdersExtension\PlaceholderContainer\PlaceholderContainer;
7 6
 use Ciandt\Behat\PlaceholdersExtension\Exception\MissingSectionException;
8 7
 use Ciandt\Behat\PlaceholdersExtension\Exception\UndefinedPlaceholderException;
9 8
 use Exception;
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
 
72 72
     private function getFilePath($key)
73 73
     {
74
-         if (key_exists($key, $this->configs)) {
74
+          if (key_exists($key, $this->configs)) {
75 75
             return $this->configs[$key]['path'];
76 76
         }
77 77
         return null;
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -87,14 +87,14 @@  discard block
 block discarded – undo
87 87
         $this->environment = $environment;
88 88
     }
89 89
     
90
-    private function getScenarioTags(){
90
+    private function getScenarioTags() {
91 91
         return $this->beforeScenarioSubscriber->getScenarioTags();
92 92
     }
93 93
 
94 94
     public function getReplacement($placeholder, $replaced = array()) {
95 95
         
96 96
         // if the current placeholder was already replaced before, this is a cyclic dependecy
97
-        if (in_array($placeholder, $replaced)){
97
+        if (in_array($placeholder, $replaced)) {
98 98
             $tree = implode('>', $replaced);
99 99
             throw new Exception("Cyclic placeholder dependecy detected. Trying to replace $placeholder again when already replaced: $tree");
100 100
         }
@@ -121,12 +121,12 @@  discard block
 block discarded – undo
121 121
 
122 122
         $replacement = $this->recursivePlaceholderSearch($keys, $placeholders, $treePosition);
123 123
         
124
-        if (is_null($replacement)){
124
+        if (is_null($replacement)) {
125 125
             throw new UndefinedPlaceholderException("No $placeholder placeholder was defined on runtime or on $treePosition>$placeholder for variant $variant and environment $environment");
126 126
         } 
127 127
         
128 128
         //if the replaced string doesn't have placeholders itself
129
-        if (preg_match_all(self::PLACEHOLDER_REGEX, $replacement, $matches, PREG_SET_ORDER) == 0){
129
+        if (preg_match_all(self::PLACEHOLDER_REGEX, $replacement, $matches, PREG_SET_ORDER) == 0) {
130 130
             return $replacement;
131 131
         }
132 132
         
@@ -160,9 +160,9 @@  discard block
 block discarded – undo
160 160
         return null;
161 161
     }
162 162
     
163
-    private function getSectionPlaceholders($configKey, $section){
163
+    private function getSectionPlaceholders($configKey, $section) {
164 164
         $config = $this->getConfig($configKey);
165
-        if (!isset($config) || !key_exists($section, $config)){
165
+        if (!isset($config) || !key_exists($section, $config)) {
166 166
             throw new MissingSectionException(
167 167
                     $configKey,
168 168
                     $this->getFilePath($configKey),
Please login to merge, or discard this patch.
PlaceholdersExtension/Transformation/RuntimePlaceholdersTransformation.php 4 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -34,6 +34,9 @@
 block discarded – undo
34 34
         return $string;
35 35
     }
36 36
 
37
+    /**
38
+     * @param PlaceholdersRepository $repository
39
+     */
37 40
     public static function transformArgument($argument, $repository) {
38 41
         if (is_string($argument)) {
39 42
             return self::replaceStringPlaceholders($argument, $repository);
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -3,13 +3,10 @@
 block discarded – undo
3 3
 
4 4
 namespace Ciandt\Behat\PlaceholdersExtension\Transformation;
5 5
 
6
-use Behat\Behat\Definition\Call\DefinitionCall;
7 6
 use Behat\Gherkin\Node\PyStringNode;
8 7
 use Behat\Gherkin\Node\TableNode;
9 8
 use Behat\Testwork\Call\RuntimeCallee;
10 9
 use Ciandt\Behat\PlaceholdersExtension\Config\PlaceholdersRepository;
11
-use Ciandt\Behat\PlaceholdersExtension\PlaceholderContainer\PlaceholderContainer;
12
-use Ciandt\Behat\PlaceholdersExtension\PlaceholderContainer\PlaceholderContainerStepNode;
13 10
 
14 11
 /**
15 12
  *
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 /**
15 15
  *
16 16
  */
17
- class RuntimePlaceholdersTransformation extends RuntimeCallee implements PlaceholdersTransformation {
17
+  class RuntimePlaceholdersTransformation extends RuntimeCallee implements PlaceholdersTransformation {
18 18
 
19 19
     public function __toString() {
20 20
         return 'UserDefinedPlaceholderTransform';
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
         if ($argument instanceof PyStringNode) {
43 43
             $strings = $argument->getStrings();
44
-            foreach ($strings as &$string){
44
+            foreach ($strings as &$string) {
45 45
                 self::replaceStringPlaceholders($string, $repository);
46 46
             }
47 47
             return new PyStringNode($strings, $argument->getLine());
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         }
55 55
     }
56 56
     
57
-    private static function replaceTablePlaceholders(&$item, $key, $repository){
57
+    private static function replaceTablePlaceholders(&$item, $key, $repository) {
58 58
         $item = self::replaceStringPlaceholders($item, $repository);
59 59
     }
60 60
     
Please login to merge, or discard this patch.
Ciandt/Behat/PlaceholdersExtension/Transformer/PlaceholdersTransformer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@
 block discarded – undo
27 27
     }
28 28
 
29 29
     public function transformArgument(DefinitionCall $definitionCall, $argumentIndex, $argumentValue) {
30
-        if (RuntimePlaceholdersTransformation::supportsArgument($argumentValue)){
31
-            return RuntimePlaceholdersTransformation::transformArgument($argumentValue,$this->repository);
30
+        if (RuntimePlaceholdersTransformation::supportsArgument($argumentValue)) {
31
+            return RuntimePlaceholdersTransformation::transformArgument($argumentValue, $this->repository);
32 32
         }
33 33
         return $argumentValue;
34 34
     }
Please login to merge, or discard this patch.