Passed
Push — master ( 4ce04b...28417d )
by Jesse
02:00
created
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
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
         $regions = [];
127 127
         if ($with_regions) {
128 128
             $regions = self::$regions;
129
-        } elseif (! empty($limit_regions)) {
129
+        } elseif (!empty($limit_regions)) {
130 130
             foreach ($limit_regions as $region) {
131 131
                 $regions[$region] = self::$regions[$region];
132 132
             }
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
         $date = new DateTime($timestamp, new DateTimeZone('UTC'));
218 218
 
219 219
         $list = DateTimeZone::listIdentifiers();
220
-        if (! in_array($timezone, $list)) {
220
+        if (!in_array($timezone, $list)) {
221 221
             $timezone = 'UTC';
222 222
         }
223 223
         $date->setTimezone(new DateTimeZone($timezone));
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
     public static function convertToUTC($timestamp, $timezone, $format = 'Y-m-d H:i:s')
237 237
     {
238 238
         $list = DateTimeZone::listIdentifiers();
239
-        if (! in_array($timezone, $list)) {
239
+        if (!in_array($timezone, $list)) {
240 240
             $timezone = 'UTC';
241 241
         }
242 242
 
Please login to merge, or discard this patch.