Completed
Push — master ( 7b1ef3...9d50ee )
by Maxim
02:41
created
src/Support/HasHttpsImage.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,8 @@  discard block
 block discarded – undo
12 12
      */
13 13
     public function ensureHttps($image)
14 14
     {
15
-        if (! $image) {
15
+        if (! $image)
16
+        {
16 17
             return;
17 18
         }
18 19
 
@@ -20,7 +21,8 @@  discard block
 block discarded – undo
20 21
 
21 22
         if ($parsed['scheme'] == 'https' ||
22 23
             $parsed['scheme'] == 'ssl'   ||
23
-            preg_match('/192\.168|localhost|images\.weserv\.nl/', $parsed['host'])) {
24
+            preg_match('/192\.168|localhost|images\.weserv\.nl/', $parsed['host']))
25
+        {
24 26
             return $image;
25 27
         }
26 28
 
Please login to merge, or discard this patch.
src/ProvidersFactory.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,8 +38,10 @@  discard block
 block discarded – undo
38 38
     {
39 39
         $provider = $this->resolveExtends($name, $options);
40 40
 
41
-        if (is_null($provider)) {
42
-            switch ($name) {
41
+        if (is_null($provider))
42
+        {
43
+            switch ($name)
44
+            {
43 45
                 case Chrome::NAME:
44 46
                     $provider = new Chrome($options);
45 47
                     break;
@@ -68,7 +70,8 @@  discard block
 block discarded – undo
68 70
      */
69 71
     protected function resolveExtends($name, array $options)
70 72
     {
71
-        if (empty(static::$resolvers[$name])) {
73
+        if (empty(static::$resolvers[$name]))
74
+        {
72 75
             return;
73 76
         }
74 77
 
Please login to merge, or discard this patch.
src/Apns/Package.php 1 patch
Braces   +10 added lines, -5 removed lines patch added patch discarded remove patch
@@ -67,12 +67,14 @@  discard block
 block discarded – undo
67 67
     {
68 68
         $packagePath = $this->storage->getAdapter()->applyPathPrefix(static::PACKAGE_FILENAME);
69 69
 
70
-        if ($this->storage->has(static::PACKAGE_FILENAME)) {
70
+        if ($this->storage->has(static::PACKAGE_FILENAME))
71
+        {
71 72
             return $packagePath;
72 73
         }
73 74
 
74 75
         $this->zip = new \ZipArchive();
75
-        if ($this->zip->open($packagePath, \ZipArchive::CREATE) !== true) {
76
+        if ($this->zip->open($packagePath, \ZipArchive::CREATE) !== true)
77
+        {
76 78
             return false;
77 79
         }
78 80
 
@@ -97,7 +99,8 @@  discard block
 block discarded – undo
97 99
      */
98 100
     protected function addIcons()
99 101
     {
100
-        foreach ($this->icons as $file) {
102
+        foreach ($this->icons as $file)
103
+        {
101 104
             $this->addFile('icon.iconset/' . $file, $file);
102 105
         }
103 106
     }
@@ -148,7 +151,8 @@  discard block
 block discarded – undo
148 151
         $password = $this->certificate->getPassword();
149 152
 
150 153
         $certs = [];
151
-        if (! openssl_pkcs12_read($pkcs12, $certs, $password)) {
154
+        if (! openssl_pkcs12_read($pkcs12, $certs, $password))
155
+        {
152 156
             throw new \RuntimeException(openssl_error_string());
153 157
         }
154 158
 
@@ -164,7 +168,8 @@  discard block
 block discarded – undo
164 168
         // Convert the signature from PEM to DER
165 169
         $signature_pem = file_get_contents($signaturePath);
166 170
         $matches = [];
167
-        if (! preg_match('~Content-Disposition:[^\n]+\s*?([A-Za-z0-9+=/\r\n]+)\s*?-----~', $signature_pem, $matches)) {
171
+        if (! preg_match('~Content-Disposition:[^\n]+\s*?([A-Za-z0-9+=/\r\n]+)\s*?-----~', $signature_pem, $matches))
172
+        {
168 173
             throw new \RuntimeException(openssl_error_string());
169 174
         }
170 175
 
Please login to merge, or discard this patch.
src/Support/EventsEmitter.php 1 patch
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,8 @@  discard block
 block discarded – undo
32 32
     {
33 33
         $statisticsStorage = $this->makeStatisticsStorage();
34 34
 
35
-        if (! is_null($statisticsStorage)) {
35
+        if (! is_null($statisticsStorage))
36
+        {
36 37
             static::$events->useListenerProvider($statisticsStorage);
37 38
         }
38 39
     }
@@ -76,10 +77,14 @@  discard block
 block discarded – undo
76 77
      */
77 78
     protected function makeStatisticsStorage()
78 79
     {
79
-        if (! empty($this->project->config['statistics']['storage'])) {
80
+        if (! empty($this->project->config['statistics']['storage']))
81
+        {
80 82
             $storage = $this->project->config['statistics']['storage'];
81 83
 
82
-            if (class_exists($storage)) return new $storage;
84
+            if (class_exists($storage))
85
+            {
86
+                return new $storage;
87
+            }
83 88
         }
84 89
 
85 90
         return null;
Please login to merge, or discard this patch.