Passed
Pull Request — master (#1)
by
unknown
02:31
created
src/OneSignal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
      */
98 98
     public function log($message, $category = 'vasadibt\onesignal')
99 99
     {
100
-        if($this->log){
100
+        if ($this->log) {
101 101
             Yii::info($message, $category);
102 102
         }
103 103
     }
Please login to merge, or discard this patch.
src/resolver/NotificationResolver.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
             ->setAllowedTypes('app_ids', 'array')
78 78
             ->setDefined('filters')
79 79
             ->setAllowedTypes('filters', 'array')
80
-            ->setNormalizer('filters', function (Options $options, array $values) {
80
+            ->setNormalizer('filters', function(Options $options, array $values) {
81 81
                 return $this->normalizeFilters($options, $values);
82 82
             })
83 83
             ->setDefined('ios_badgeType')
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
             ->setAllowedTypes('data', 'array')
100 100
             ->setDefined('buttons')
101 101
             ->setAllowedTypes('buttons', 'array')
102
-            ->setNormalizer('buttons', function (Options $options, array $values) {
102
+            ->setNormalizer('buttons', function(Options $options, array $values) {
103 103
                 return $this->normalizeButtons($values);
104 104
             })
105 105
             ->setDefined('android_channel_id')
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             ->setAllowedTypes('existing_android_channel_id', 'string')
109 109
             ->setDefined('android_background_layout')
110 110
             ->setAllowedTypes('android_background_layout', 'array')
111
-            ->setAllowedValues('android_background_layout', function ($layouts) {
111
+            ->setAllowedValues('android_background_layout', function($layouts) {
112 112
                 return $this->filterAndroidBackgroundLayout($layouts);
113 113
             })
114 114
             ->setDefined('small_icon')
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             ->setAllowedTypes('large_icon', 'string')
118 118
             ->setDefined('ios_attachments')
119 119
             ->setAllowedTypes('ios_attachments', 'array')
120
-            ->setAllowedValues('ios_attachments', function ($attachments) {
120
+            ->setAllowedValues('ios_attachments', function($attachments) {
121 121
                 return $this->filterIosAttachments($attachments);
122 122
             })
123 123
             ->setDefined('big_picture')
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
             ->setAllowedTypes('adm_big_picture', 'string')
131 131
             ->setDefined('web_buttons')
132 132
             ->setAllowedTypes('web_buttons', 'array')
133
-            ->setAllowedValues('web_buttons', function ($buttons) {
133
+            ->setAllowedValues('web_buttons', function($buttons) {
134 134
                 return $this->filterWebButtons($buttons);
135 135
             })
136 136
             ->setDefined('ios_category')
@@ -147,12 +147,12 @@  discard block
 block discarded – undo
147 147
             ->setAllowedTypes('firefox_icon', 'string')
148 148
             ->setDefined('url')
149 149
             ->setAllowedTypes('url', 'string')
150
-            ->setAllowedValues('url', function ($value) {
150
+            ->setAllowedValues('url', function($value) {
151 151
                 return $this->filterUrl($value);
152 152
             })
153 153
             ->setDefined('send_after')
154 154
             ->setAllowedTypes('send_after', '\DateTimeInterface')
155
-            ->setNormalizer('send_after', function (Options $options, \DateTimeInterface $value) {
155
+            ->setNormalizer('send_after', function(Options $options, \DateTimeInterface $value) {
156 156
                 return $this->normalizeDateTime($options, $value, self::SEND_AFTER_FORMAT);
157 157
             })
158 158
             ->setDefined('delayed_option')
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
             ->setAllowedValues('delayed_option', ['timezone', 'last-active'])
161 161
             ->setDefined('delivery_time_of_day')
162 162
             ->setAllowedTypes('delivery_time_of_day', '\DateTimeInterface')
163
-            ->setNormalizer('delivery_time_of_day', function (Options $options, \DateTimeInterface $value) {
163
+            ->setNormalizer('delivery_time_of_day', function(Options $options, \DateTimeInterface $value) {
164 164
                 return $this->normalizeDateTime($options, $value, self::DELIVERY_TIME_OF_DAY_FORMAT);
165 165
             })
166 166
             ->setDefined('android_led_color')
Please login to merge, or discard this patch.