Passed
Push — master ( 56d5ad...ec463d )
by Malte
05:28 queued 45s
created
examples/custom_attachment_mask.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
      * New custom method which can be called through a mask
17 17
      * @return string
18 18
      */
19
-    public function token(){
19
+    public function token() {
20 20
         return implode('-', [$this->id, $this->getMessage()->getUid(), $this->name]);
21 21
     }
22 22
 
Please login to merge, or discard this patch.
examples/custom_message_mask.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
      * New custom method which can be called through a mask
17 17
      * @return string
18 18
      */
19
-    public function my_token(){
19
+    public function my_token() {
20 20
         return implode('-', [$this->message_id, $this->uid, $this->message_no]);
21 21
     }
22 22
 
Please login to merge, or discard this patch.
src/Providers/LaravelServiceProvider.php 2 patches
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -114,11 +114,15 @@  discard block
 block discarded – undo
114 114
         $arrays = func_get_args();
115 115
         $base = array_shift($arrays);
116 116
 
117
-        if(!is_array($base)) $base = empty($base) ? array() : array($base);
117
+        if(!is_array($base)) {
118
+            $base = empty($base) ? array() : array($base);
119
+        }
118 120
 
119 121
         foreach($arrays as $append) {
120 122
 
121
-            if(!is_array($append)) $append = array($append);
123
+            if(!is_array($append)) {
124
+                $append = array($append);
125
+            }
122 126
 
123 127
             foreach($append as $key => $value) {
124 128
 
@@ -130,7 +134,9 @@  discard block
 block discarded – undo
130 134
                 if(is_array($value) or is_array($base[$key])) {
131 135
                     $base[$key] = $this->array_merge_recursive_distinct($base[$key], $append[$key]);
132 136
                 } else if(is_numeric($key)) {
133
-                    if(!in_array($value, $base)) $base[] = $value;
137
+                    if(!in_array($value, $base)) {
138
+                        $base[] = $value;
139
+                    }
134 140
                 } else {
135 141
                     $base[$key] = $value;
136 142
                 }
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      * If however the default account is missing a parameter the package default account parameter will be used.
59 59
      * This can be disabled by setting imap.default in your config file to 'false'
60 60
      */
61
-    private function setVendorConfig(){
61
+    private function setVendorConfig() {
62 62
 
63 63
         $config_key = 'imap';
64 64
         $path = __DIR__.'/../config/'.$config_key.'.php';
@@ -70,17 +70,17 @@  discard block
 block discarded – undo
70 70
 
71 71
         $config = $this->app['config']->get($config_key);
72 72
 
73
-        if(is_array($config)){
74
-            if(isset($config['default'])){
75
-                if(isset($config['accounts']) && $config['default'] != false){
73
+        if (is_array($config)) {
74
+            if (isset($config['default'])) {
75
+                if (isset($config['accounts']) && $config['default'] != false) {
76 76
 
77 77
                     $default_config = $vendor_config['accounts']['default'];
78
-                    if(isset($config['accounts'][$config['default']])){
78
+                    if (isset($config['accounts'][$config['default']])) {
79 79
                         $default_config = array_merge($default_config, $config['accounts'][$config['default']]);
80 80
                     }
81 81
 
82
-                    if(is_array($config['accounts'])){
83
-                        foreach($config['accounts'] as $account_key => $account){
82
+                    if (is_array($config['accounts'])) {
83
+                        foreach ($config['accounts'] as $account_key => $account) {
84 84
                             $config['accounts'][$account_key] = array_merge($default_config, $account);
85 85
                         }
86 86
                     }
@@ -114,23 +114,23 @@  discard block
 block discarded – undo
114 114
         $arrays = func_get_args();
115 115
         $base = array_shift($arrays);
116 116
 
117
-        if(!is_array($base)) $base = empty($base) ? array() : array($base);
117
+        if (!is_array($base)) $base = empty($base) ? array() : array($base);
118 118
 
119
-        foreach($arrays as $append) {
119
+        foreach ($arrays as $append) {
120 120
 
121
-            if(!is_array($append)) $append = array($append);
121
+            if (!is_array($append)) $append = array($append);
122 122
 
123
-            foreach($append as $key => $value) {
123
+            foreach ($append as $key => $value) {
124 124
 
125
-                if(!array_key_exists($key, $base) and !is_numeric($key)) {
125
+                if (!array_key_exists($key, $base) and !is_numeric($key)) {
126 126
                     $base[$key] = $append[$key];
127 127
                     continue;
128 128
                 }
129 129
 
130
-                if(is_array($value) or is_array($base[$key])) {
130
+                if (is_array($value) or is_array($base[$key])) {
131 131
                     $base[$key] = $this->array_merge_recursive_distinct($base[$key], $append[$key]);
132
-                } else if(is_numeric($key)) {
133
-                    if(!in_array($value, $base)) $base[] = $value;
132
+                } else if (is_numeric($key)) {
133
+                    if (!in_array($value, $base)) $base[] = $value;
134 134
                 } else {
135 135
                     $base[$key] = $value;
136 136
                 }
Please login to merge, or discard this patch.