@@ -92,6 +92,9 @@ discard block |
||
92 | 92 | return false; |
93 | 93 | } |
94 | 94 | |
95 | + /** |
|
96 | + * @param string $file |
|
97 | + */ |
|
95 | 98 | public function getFileContents($file) |
96 | 99 | { |
97 | 100 | return file_get_contents($file); |
@@ -142,6 +145,10 @@ discard block |
||
142 | 145 | return true; |
143 | 146 | } |
144 | 147 | |
148 | + /** |
|
149 | + * @param string $type |
|
150 | + * @param boolean $indexByShortName |
|
151 | + */ |
|
145 | 152 | private function getMetaData($type, $indexByShortName) |
146 | 153 | { |
147 | 154 | $array = []; |
@@ -99,7 +99,7 @@ |
||
99 | 99 | /** |
100 | 100 | * Generates payload. |
101 | 101 | * |
102 | - * @return array |
|
102 | + * @return string |
|
103 | 103 | */ |
104 | 104 | protected function generatePayload() |
105 | 105 | { |
@@ -277,7 +277,7 @@ |
||
277 | 277 | /** |
278 | 278 | * set the filters for the block |
279 | 279 | * |
280 | - * @param array $filter the blocks's filters |
|
280 | + * @param array $filters the blocks's filters |
|
281 | 281 | */ |
282 | 282 | public function setFilters($filters) |
283 | 283 | { |
@@ -75,7 +75,7 @@ |
||
75 | 75 | /** |
76 | 76 | * set the user item |
77 | 77 | * |
78 | - * @param User $user the user item |
|
78 | + * @param integer $user the user item |
|
79 | 79 | */ |
80 | 80 | public function setUser($user) |
81 | 81 | { |
@@ -208,7 +208,7 @@ |
||
208 | 208 | if (!$fp) { |
209 | 209 | return false; |
210 | 210 | } else { |
211 | - $out = "GET $path_query? HTTP/1.1\r\n"; |
|
211 | + $out = "get $path_query? HTTP/1.1\r\n"; |
|
212 | 212 | $out .= "User-Agent: $userAgent\r\n"; |
213 | 213 | $out .= "Referer: $ref\r\n"; |
214 | 214 | $out .= "Host: $urlArray[host]\r\n"; |
@@ -54,7 +54,7 @@ |
||
54 | 54 | ->getMock(); |
55 | 55 | $kernel |
56 | 56 | ->method('getModule') |
57 | - ->will($this->returnCallback(function ($moduleName) { |
|
57 | + ->will($this->returnCallback(function($moduleName) { |
|
58 | 58 | if ($moduleName == 'ExceptionModule') { |
59 | 59 | // mocks situation where module is not namespaced. |
60 | 60 | throw new \Exception(); |
@@ -76,6 +76,6 @@ |
||
76 | 76 | |
77 | 77 | private function getSplFileInfo($file) |
78 | 78 | { |
79 | - return new SplFileInfo(realpath(__DIR__ . '/../Fixtures/'. $file), '/../Fixtures', '/../Fixtures/' . $file); |
|
79 | + return new SplFileInfo(realpath(__DIR__ . '/../Fixtures/' . $file), '/../Fixtures', '/../Fixtures/' . $file); |
|
80 | 80 | } |
81 | 81 | } |
@@ -1130,7 +1130,7 @@ |
||
1130 | 1130 | * |
1131 | 1131 | * @return array of entity objects |
1132 | 1132 | */ |
1133 | - public function getRelatedObjectsToPersist(&$objects = []) |
|
1133 | + public function getRelatedObjectsToPersist(&$objects = []) |
|
1134 | 1134 | { |
1135 | 1135 | return []; |
1136 | 1136 | } |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | 'constraints' => [ |
140 | 140 | new Type('string'), |
141 | 141 | new Regex([ |
142 | - 'pattern' => '/^(?:'. UsersConstant::UNAME_VALIDATION_PATTERN .'(?:\s*,\s*'. UsersConstant::UNAME_VALIDATION_PATTERN .')*)?$/uD', |
|
142 | + 'pattern' => '/^(?:' . UsersConstant::UNAME_VALIDATION_PATTERN . '(?:\s*,\s*' . UsersConstant::UNAME_VALIDATION_PATTERN . ')*)?$/uD', |
|
143 | 143 | 'message' => $options['translator']->__('The value provided does not appear to be a valid list of user names. The list should consist of one or more user names made up of lowercase letters, numbers, underscores, periods, or dashes. Separate each user name with a comma. For example: \'root, administrator, superuser\' (the quotes should not appear in the list). Spaces surrounding commas are ignored, however extra spaces before or after the list are not and will result in an error. Empty values (two commas together, or separated only by spaces) are not allowed. The list is optional, and if no values are to be defined then the list should be completely empty (no extra spaces, commas, or any other characters).') |
144 | 144 | ]) |
145 | 145 | ] |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | 'constraints' => [ |
167 | 167 | new Type('string'), |
168 | 168 | new Regex([ |
169 | - 'pattern' => '/^(?:'. UsersConstant::EMAIL_DOMAIN_VALIDATION_PATTERN .'(?:\s*,\s*'. UsersConstant::EMAIL_DOMAIN_VALIDATION_PATTERN .')*)?$/Ui', |
|
169 | + 'pattern' => '/^(?:' . UsersConstant::EMAIL_DOMAIN_VALIDATION_PATTERN . '(?:\s*,\s*' . UsersConstant::EMAIL_DOMAIN_VALIDATION_PATTERN . ')*)?$/Ui', |
|
170 | 170 | 'message' => $options['translator']->__('The contents of this field does not appear to be a valid list of e-mail address domains. The list should consist of one or more e-mail address domains (the part after the \'@\'), separated by commas. For example: \'gmail.com, example.org, acme.co.uk\' (the quotes should not appear in the list). Do not include the \'@\' itself. Spaces surrounding commas are ignored, however extra spaces before or after the list are not and will result in an error. Empty values (two commas together, or separated only by spaces) are not allowed. The list is optional, and if no values are to be defined then the list should be completely empty (no extra spaces, commas, or any other characters).') |
171 | 171 | ]) |
172 | 172 | ] |