Passed
Pull Request — main (#1)
by Abdullah
01:49
created
src/config/config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,6 +3,6 @@
 block discarded – undo
3 3
 return [
4 4
     'DEFAULT_TIME_ZONE' => 'GMT', //GMT or UTC
5 5
     'TIME_DIFF_SYMBOL' => '.', //+00.00
6
-    'LABEL_FIELD_NAME' => 'label' ,
6
+    'LABEL_FIELD_NAME' => 'label',
7 7
     'VALUE_FIELD_NAME' => 'value'
8 8
 ];
Please login to merge, or discard this patch.
src/PhpTimeZoneServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     public function register()
19 19
     {
20 20
         $this->mergeConfigFrom(__DIR__.'/config/config.php', 'Timezone');
21
-        $this->app->bind('TimeZoneService', function () {
21
+        $this->app->bind('TimeZoneService', function() {
22 22
             return new TimeZoneService();
23 23
         });
24 24
     }
Please login to merge, or discard this patch.
src/TimeZoneService.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -143,9 +143,9 @@  discard block
 block discarded – undo
143 143
     }
144 144
 
145 145
     /**
146
-    * @param $time
147
-    * @return string
148
-    */
146
+     * @param $time
147
+     * @return string
148
+     */
149 149
     private function getZone($time): string
150 150
     {
151 151
         return str_replace('_', ' ', $time->format('e'));
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      * @param bool $isLabel
157 157
      * @param bool $isValue
158 158
      * @return array
159
-    */
159
+     */
160 160
     private function getTimeZoneList(array $timezones, string $type = 'list'): array
161 161
     {
162 162
         $label = Config::get('Timezone.LABEL_FIELD_NAME', 'label');
Please login to merge, or discard this patch.