Completed
Pull Request — master (#39)
by Jeremy
02:59
created
src/Factory.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * hirak/prestissimo
4
- * @author Hiraku NAKANO
5
- * @license MIT https://github.com/hirak/prestissimo
6
- */
3
+     * hirak/prestissimo
4
+     * @author Hiraku NAKANO
5
+     * @license MIT https://github.com/hirak/prestissimo
6
+     */
7 7
 namespace Hirak\Prestissimo;
8 8
 
9 9
 /**
Please login to merge, or discard this patch.
src/ParallelDownloader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,10 +105,10 @@
 block discarded – undo
105 105
             if ($pluginConfig['insecure']) {
106 106
                 $opts[CURLOPT_SSL_VERIFYPEER] = false;
107 107
             }
108
-            if (! empty($pluginConfig['userAgent'])) {
108
+            if (!empty($pluginConfig['userAgent'])) {
109 109
                 $opts[CURLOPT_USERAGENT] = $pluginConfig['userAgent'];
110 110
             }
111
-            if (! empty($pluginConfig['capath'])) {
111
+            if (!empty($pluginConfig['capath'])) {
112 112
                 $opts[CURLOPT_CAPATH] = $pluginConfig['capath'];
113 113
             }
114 114
             unset($opts[CURLOPT_ENCODING]);
Please login to merge, or discard this patch.
src/Aspects/HttpGetRequest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     {
67 67
         $struct = parse_url($url);
68 68
         // @codeCoverageIgnoreStart
69
-        if (! $struct) {
69
+        if (!$struct) {
70 70
             throw new \InvalidArgumentException("$url is not valid URL");
71 71
         }
72 72
         // @codeCoverageIgnoreEnd
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         $this->username = self::setOr($struct, 'user', null);
79 79
         $this->password = self::setOr($struct, 'pass', null);
80 80
 
81
-        if (! empty($struct['query'])) {
81
+        if (!empty($struct['query'])) {
82 82
             parse_str($struct['query'], $this->query);
83 83
         }
84 84
     }
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      * @param string $key
90 90
      * @param string $default
91 91
      */
92
-    private static function setOr(array $struct, $key, $default=null)
92
+    private static function setOr(array $struct, $key, $default = null)
93 93
     {
94 94
         if (!empty($struct[$key])) {
95 95
             return $struct[$key];
Please login to merge, or discard this patch.