Completed
Push — master ( c11653...8f0837 )
by Maxim
06:58 queued 04:04
created
src/Apns/Certificate.php 1 patch
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -43,9 +43,12 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function getP12Certificate()
45 45
     {
46
-        try {
46
+        try
47
+        {
47 48
             return $this->storage->get($this->paths['p12']);
48
-        } catch (\Exception $e) {
49
+        }
50
+        catch (\Exception $e)
51
+        {
49 52
             return '';
50 53
         }
51 54
     }
@@ -57,9 +60,12 @@  discard block
 block discarded – undo
57 60
      */
58 61
     public function getPassword()
59 62
     {
60
-        try {
63
+        try
64
+        {
61 65
             return $this->storage->get($this->paths['password']);
62
-        } catch (\Exception $e) {
66
+        }
67
+        catch (\Exception $e)
68
+        {
63 69
             return '';
64 70
         }
65 71
     }
@@ -71,9 +77,12 @@  discard block
 block discarded – undo
71 77
      */
72 78
     public function getPemCertificate()
73 79
     {
74
-        try {
80
+        try
81
+        {
75 82
             return $this->storage->get($this->paths['pem']);
76
-        } catch (\Exception $e) {
83
+        }
84
+        catch (\Exception $e)
85
+        {
77 86
             return '';
78 87
         }
79 88
     }
Please login to merge, or discard this patch.
src/StatisticsStoragesFactory.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,14 +31,16 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function make($name)
33 33
     {
34
-        switch ($name) {
34
+        switch ($name)
35
+        {
35 36
             case Model::NAME:
36 37
                 $return = new Model();
37 38
                 break;
38 39
             default:
39 40
                 $return = $this->resolveExtends($name);
40 41
 
41
-                if (is_null($return)) {
42
+                if (is_null($return))
43
+                {
42 44
                     throw new \RuntimeException("Unsupported statistics storage '$name'");
43 45
                 }
44 46
         }
@@ -54,7 +56,8 @@  discard block
 block discarded – undo
54 56
      */
55 57
     protected function resolveExtends($name)
56 58
     {
57
-        if (empty(static::$resolvers[$name])) {
59
+        if (empty(static::$resolvers[$name]))
60
+        {
58 61
             return;
59 62
         }
60 63
 
Please login to merge, or discard this patch.
src/Support/HasHttpsImage.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,14 +12,14 @@
 block discarded – undo
12 12
      */
13 13
     public function ensureHttps($image)
14 14
     {
15
-        if (! $image) {
15
+        if ( ! $image) {
16 16
             return;
17 17
         }
18 18
 
19 19
         $parsed = parse_url($image);
20 20
 
21 21
         if ($parsed['scheme'] == 'https' ||
22
-            $parsed['scheme'] == 'ssl'   ||
22
+            $parsed['scheme'] == 'ssl' ||
23 23
             preg_match('/192\.168|localhost|images\.weserv\.nl/', $parsed['host'])) {
24 24
             return $image;
25 25
         }
Please login to merge, or discard this 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.