Passed
Push — master ( 640afe...4ce04b )
by Jesse
03:30
created
Category
src/Timezones/TimezonesServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
         //     return new Timezones;
34 34
         // });
35 35
 
36
-        $this->app->bind(Timezones::class, function () {
36
+        $this->app->bind(Timezones::class, function() {
37 37
             return new Timezones;
38 38
             // $loader = AliasLoader::getInstance();
39 39
             // $loader->alias('Timezones', 'jessedp\Timezones\Facades\Timezones');
Please login to merge, or discard this patch.
src/Timezones/Timezones.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         $dbl_offset = (float) str_replace(':', '.', $str_offset);
68 68
 
69 69
         //only strip things if we're bothering with regions
70
-        if (! empty($region)) {
70
+        if (!empty($region)) {
71 71
             $timezone = substr($timezone, strlen($region) + 1);
72 72
         }
73 73
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 
101 101
         // Attributes for select element
102 102
         $attrSet = '';
103
-        if (isset($opts['attr']) && is_array($opts['attr']) && ! empty($opts['attr'])) {
103
+        if (isset($opts['attr']) && is_array($opts['attr']) && !empty($opts['attr'])) {
104 104
             $attr = $opts['attr'];
105 105
 
106 106
             foreach ($attr as $attr_name => $attr_value) {
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 
117 117
         $limit_regions = [];
118 118
         //setup specfic regions - could be better and validate them here too, but, eh...
119
-        if (isset($opts['regions']) && is_array($opts['regions']) && ! empty($opts['regions'])) {
119
+        if (isset($opts['regions']) && is_array($opts['regions']) && !empty($opts['regions'])) {
120 120
             $limit_regions = $opts['regions'];
121 121
         }
122 122
 
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 
126 126
         if ($with_regions) {
127 127
             $regions = self::$regions;
128
-        } elseif (! empty($limit_regions)) {
128
+        } elseif (!empty($limit_regions)) {
129 129
             foreach ($limit_regions as $region) {
130 130
                 $regions[$region] = self::$regions[$region];
131 131
             }
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
         $date = new DateTime($timestamp, new DateTimeZone('UTC'));
217 217
 
218 218
         $list = DateTimeZone::listIdentifiers();
219
-        if (! in_array($timezone, $list)) {
219
+        if (!in_array($timezone, $list)) {
220 220
             $timezone = 'UTC';
221 221
         }
222 222
         $date->setTimezone(new DateTimeZone($timezone));
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
     public static function convertToUTC($timestamp, $timezone, $format = 'Y-m-d H:i:s')
236 236
     {
237 237
         $list = DateTimeZone::listIdentifiers();
238
-        if (! in_array($timezone, $list)) {
238
+        if (!in_array($timezone, $list)) {
239 239
             $timezone = 'UTC';
240 240
         }
241 241
 
Please login to merge, or discard this patch.