Completed
Push — master ( cfc2eb...5d3227 )
by Nils
03:15
created
src/Rules/Http/Header/GZipRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     {
17 17
         if (strpos($response->getContentType(), 'image') === false
18 18
             && strpos($response->getContentType(), 'pdf') === false
19
-            && (string)$response->getBody() != ''
19
+            && (string) $response->getBody() != ''
20 20
         ) {
21 21
             if (!$response->hasHeader('Content-Encoding') || $response->getHeader('Content-Encoding')[0] !== 'gzip') {
22 22
                 throw new ValidationFailedException('gzip compression not active');
Please login to merge, or discard this patch.
src/Extensions/SmokeFilter/FilterExtension.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,12 +41,12 @@  discard block
 block discarded – undo
41 41
     public function init($filters = array(), $filterFile = '', $exclusive = array())
42 42
     {
43 43
         if (count($exclusive) > 0 && (count($filters) > 0 || $filterFile !== '')) {
44
-            throw new \RuntimeException("It's not possible to define filter lists and an exclusive list at the same time [Extension: " . get_class($this) . '].');
44
+            throw new \RuntimeException("It's not possible to define filter lists and an exclusive list at the same time [Extension: ".get_class($this).'].');
45 45
         }
46 46
 
47 47
         if ($filterFile !== '') {
48 48
             if (!file_exists($filterFile)) {
49
-                throw new \RuntimeException('Filter file not found: ' . $filterFile);
49
+                throw new \RuntimeException('Filter file not found: '.$filterFile);
50 50
             }
51 51
 
52 52
             $filterElements = EnvAwareYaml::parse(file_get_contents($filterFile));
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     public function isFiltered(Event $event, $ruleName, Response $response)
87 87
     {
88
-        $uri = (string)$this->retriever->getOriginUri($response->getUri());
88
+        $uri = (string) $this->retriever->getOriginUri($response->getUri());
89 89
 
90 90
         if ($this->currentModus === self::MODUS_FILTER) {
91 91
             $isFiltered = $this->isFilteredByFilter($ruleName, $uri);
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     private function isFilteredByFilter($ruleName, $uri)
106 106
     {
107 107
         foreach ($this->filters as $filter) {
108
-            if ($ruleName === $filter['rule'] && 0 < preg_match('$' . $filter['uri'] . '$', $uri)) {
108
+            if ($ruleName === $filter['rule'] && 0 < preg_match('$'.$filter['uri'].'$', $uri)) {
109 109
                 return true;
110 110
             }
111 111
         }
Please login to merge, or discard this patch.