Completed
Push — master ( a942a8...a79fb5 )
by Emmanuel
05:31
created
src/GlW3CValidator.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -102,10 +102,10 @@  discard block
 block discarded – undo
102 102
         $request  = $client->createRequest('POST', $w3curl . $validator, ['exceptions' => false]);
103 103
         $postBody = $request->getBody();
104 104
         $postBody->addFile(
105
-                 new PostFile($field, fopen(
106
-                     $file,
107
-                     'r'
108
-                 ))
105
+                    new PostFile($field, fopen(
106
+                        $file,
107
+                        'r'
108
+                    ))
109 109
         );
110 110
 
111 111
         $retry    = self::MAX_RETRY;
@@ -166,13 +166,13 @@  discard block
 block discarded – undo
166 166
         $ext   = $fileinfo->getExtension();
167 167
         $title = strtr($fileinfo->getRelativePathname(), ["\\" => "/"]);
168 168
         $view  = $this->sendToW3C(
169
-                      $this->types[$ext]['w3curl'],
170
-                          $this->types[$ext]['validator'],
171
-                          $this->types[$ext]['field'],
172
-                          $this->types[$ext]['resulttag'],
173
-                          strtr($fileinfo->getRealPath(), ["\\" => "/"]),
174
-                          $title,
175
-                          $this->types[$ext]['css']
169
+                        $this->types[$ext]['w3curl'],
170
+                            $this->types[$ext]['validator'],
171
+                            $this->types[$ext]['field'],
172
+                            $this->types[$ext]['resulttag'],
173
+                            strtr($fileinfo->getRealPath(), ["\\" => "/"]),
174
+                            $title,
175
+                            $this->types[$ext]['css']
176 176
         );
177 177
 
178 178
         if (!$view) {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
             $stats[0]->delete();
140 140
         }
141 141
 
142
-        $head   = $html->get("head")[0]->getHtml();
142
+        $head = $html->get("head")[0]->getHtml();
143 143
         
144 144
         $resulttag = $html->get($htmltag);
145 145
         if (count($resulttag) <= 0) {
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
          */
232 232
         foreach ($files as $file) {
233 233
             $callback($file);
234
-            $result[strtr($file->getRelativePath() . '/' . $file->getFilename(),["\\" => "/"])] = $this->validateFile($file);
234
+            $result[strtr($file->getRelativePath() . '/' . $file->getFilename(), ["\\" => "/"])] = $this->validateFile($file);
235 235
         }
236 236
     }
237 237
 
@@ -251,13 +251,13 @@  discard block
 block discarded – undo
251 251
              */
252 252
             foreach ($finder as $finderfile) {
253 253
                 $callback($finderfile);
254
-                $result[strtr($finderfile->getRelativePath() . '/' . $finderfile->getFilename(),["\\" => "/"])] = $this->validateFile($finderfile);
254
+                $result[strtr($finderfile->getRelativePath() . '/' . $finderfile->getFilename(), ["\\" => "/"])] = $this->validateFile($finderfile);
255 255
             }
256 256
         } else {
257 257
             if (preg_match($filter, $file)) {
258 258
                 $finderfile = new SplFileInfo($file, "", "");
259 259
                 $callback($finderfile);
260
-                $result[strtr($finderfile->getRelativePath() . '/' . $finderfile->getFilename(),["\\" => "/"])] = $this->validateFile($finderfile);
260
+                $result[strtr($finderfile->getRelativePath() . '/' . $finderfile->getFilename(), ["\\" => "/"])] = $this->validateFile($finderfile);
261 261
             }
262 262
         }
263 263
     }
Please login to merge, or discard this patch.