Completed
Push — master ( 980da0...838035 )
by Michael
11:51
created
htdocs/class/xoopsform/spin/formspin.php 1 patch
Braces   +19 added lines, -7 removed lines patch added patch discarded remove patch
@@ -250,7 +250,9 @@  discard block
 block discarded – undo
250 250
     function setSmallIncrement($smallIncrement)
251 251
     {
252 252
         $this->_smallIncrement = intval($smallIncrement);
253
-        if ($this->_smallIncrement == 0) $this->_smallIncrement =1;
253
+        if ($this->_smallIncrement == 0) {
254
+            $this->_smallIncrement =1;
255
+        }
254 256
     }
255 257
     
256 258
     /*-----------------------------------------------------------------*/
@@ -270,7 +272,9 @@  discard block
 block discarded – undo
270 272
     function setLargeIncrement($largeIncrement)
271 273
     {
272 274
         $this->_largeIncrement = intval($largeIncrement);
273
-        if ($this->_largeIncrement == 0) $this->_largeIncrement = 10;
275
+        if ($this->_largeIncrement == 0) {
276
+            $this->_largeIncrement = 10;
277
+        }
274 278
     }
275 279
     
276 280
     /*-----------------------------------------------------------------*/
@@ -291,7 +295,9 @@  discard block
 block discarded – undo
291 295
     function setSize($size)
292 296
     {
293 297
         $this->_size = $size;
294
-        if ($this->_size == 0) $this->_size = 2;
298
+        if ($this->_size == 0) {
299
+            $this->_size = 2;
300
+        }
295 301
     }
296 302
     /*-----------------------------------------------------------------*/
297 303
     function getImgFolder()
@@ -309,7 +315,9 @@  discard block
 block discarded – undo
309 315
      */
310 316
     function setImgFolder($folder)
311 317
     {
312
-        if ($folder <> '' ) $this->_imgFolder = $folder;
318
+        if ($folder <> '' ) {
319
+            $this->_imgFolder = $folder;
320
+        }
313 321
     }
314 322
     /*-----------------------------------------------------------------*/
315 323
     /**
@@ -345,7 +353,9 @@  discard block
 block discarded – undo
345 353
      */
346 354
     function setStyleText($style)
347 355
     {
348
-        if ($style <> '') $this->_styleText = $style;
356
+        if ($style <> '') {
357
+            $this->_styleText = $style;
358
+        }
349 359
     }
350 360
     /*-----------------------------------------------------------------*/
351 361
     /**
@@ -363,7 +373,9 @@  discard block
 block discarded – undo
363 373
      */
364 374
     function setStyleBordure($style)
365 375
     {
366
-        if ($style <> '') $this->_styleBordure = $style;
376
+        if ($style <> '') {
377
+            $this->_styleBordure = $style;
378
+        }
367 379
     }
368 380
     /*-----------------------------------------------------------------*/
369 381
     /**
@@ -493,7 +505,7 @@  discard block
 block discarded – undo
493 505
     if (substr($value,0,strlen($attribut)) <> $attribut){
494 506
       $r ="{$attribut}=\"{$value}\"";
495 507
     }
496
-  }else{
508
+  } else{
497 509
     $r = '';
498 510
   }
499 511
   
Please login to merge, or discard this patch.
htdocs/modules/extcal/class/event.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1691,9 +1691,11 @@
 block discarded – undo
1691 1691
                     if ($occurEventStart <= $periodEnd // Event start falls within search period
1692 1692
                         && $occurEventEnd >= $periodStart // Event end falls within search period
1693 1693
                         && in_array($dayArray[date('w', $occurEventStart)], $eventOptions)
1694
-                    ) // This week day is selected
1694
+                    ) {
1695
+                        // This week day is selected
1695 1696
                     {
1696 1697
                         $event['event_start'] = $occurEventStart;
1698
+                    }
1697 1699
                         $event['event_end']   = $occurEventEnd;
1698 1700
 
1699 1701
                         $recuEvents[] = $event;
Please login to merge, or discard this patch.
htdocs/modules/extcal/class/pear/Calendar/tests/day_test.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -115,8 +115,9 @@
 block discarded – undo
115 115
         $this->cal->build($selection);
116 116
         $i = 0;
117 117
         while ( $Child = $this->cal->fetch() ) {
118
-            if ( $i == 13 )
119
-                break;
118
+            if ( $i == 13 ) {
119
+                            break;
120
+            }
120 121
             ++$i;
121 122
         }
122 123
         $this->assertTrue($Child->isSelected());
Please login to merge, or discard this patch.
htdocs/modules/extcal/class/pear/Calendar/tests/month_test.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -131,8 +131,9 @@
 block discarded – undo
131 131
         $this->cal->build($selection);
132 132
         $i = 1;
133 133
         while ( $Child = $this->cal->fetch() ) {
134
-            if ( $i == 25 )
135
-                break;
134
+            if ( $i == 25 ) {
135
+                            break;
136
+            }
136 137
             ++$i;
137 138
         }
138 139
         $this->assertTrue($Child->isSelected());
Please login to merge, or discard this patch.
htdocs/modules/extcal/class/pear/Calendar/tests/minute_test.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,8 +103,9 @@
 block discarded – undo
103 103
         $this->cal->build($selection);
104 104
         $i = 0;
105 105
         while ( $Child = $this->cal->fetch() ) {
106
-            if ( $i == 43 )
107
-                break;
106
+            if ( $i == 43 ) {
107
+                            break;
108
+            }
108 109
             ++$i;
109 110
         }
110 111
         $this->assertTrue($Child->isSelected());
Please login to merge, or discard this patch.
htdocs/modules/extcal/class/pear/Calendar/tests/year_test.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -159,8 +159,9 @@
 block discarded – undo
159 159
         $this->cal->build($selection);
160 160
         $i = 1;
161 161
         while ( $Child = $this->cal->fetch() ) {
162
-            if ( $i == 10 )
163
-                break;
162
+            if ( $i == 10 ) {
163
+                            break;
164
+            }
164 165
             ++$i;
165 166
         }
166 167
         $this->assertTrue($Child->isSelected());
Please login to merge, or discard this patch.
htdocs/modules/extcal/class/pear/Calendar/tests/hour_test.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,8 +103,9 @@
 block discarded – undo
103 103
         $this->cal->build($selection);
104 104
         $i = 0;
105 105
         while ( $Child = $this->cal->fetch() ) {
106
-            if ( $i == 32 )
107
-                break;
106
+            if ( $i == 32 ) {
107
+                            break;
108
+            }
108 109
             ++$i;
109 110
         }
110 111
         $this->assertTrue($Child->isSelected());
Please login to merge, or discard this patch.
htdocs/modules/extcal/class/pear/Calendar/docs/examples/16.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,12 @@
 block discarded – undo
8 8
 require_once CALENDAR_ROOT.'Month/Weekdays.php';
9 9
 require_once CALENDAR_ROOT.'Decorator/Uri.php';
10 10
 
11
-if (!isset($_GET['jahr'])) $_GET['jahr'] = date('Y');
12
-if (!isset($_GET['monat'])) $_GET['monat'] = date('m');
11
+if (!isset($_GET['jahr'])) {
12
+    $_GET['jahr'] = date('Y');
13
+}
14
+if (!isset($_GET['monat'])) {
15
+    $_GET['monat'] = date('m');
16
+}
13 17
 
14 18
 // Build the month
15 19
 $Calendar = new Calendar_Month_Weekdays($_GET['jahr'], $_GET['monat']);
Please login to merge, or discard this patch.
htdocs/modules/extcal/class/pear/Calendar/docs/examples/1.php 1 patch
Braces   +18 added lines, -6 removed lines patch added patch discarded remove patch
@@ -16,12 +16,24 @@
 block discarded – undo
16 16
     define('CALENDAR_ROOT','../../');
17 17
 }
18 18
 
19
-if (!isset($_GET['y'])) $_GET['y'] = 2003;
20
-if (!isset($_GET['m'])) $_GET['m'] = 8;
21
-if (!isset($_GET['d'])) $_GET['d'] = 9;
22
-if (!isset($_GET['h'])) $_GET['h'] = 12;
23
-if (!isset($_GET['i'])) $_GET['i'] = 34;
24
-if (!isset($_GET['s'])) $_GET['s'] = 46;
19
+if (!isset($_GET['y'])) {
20
+    $_GET['y'] = 2003;
21
+}
22
+if (!isset($_GET['m'])) {
23
+    $_GET['m'] = 8;
24
+}
25
+if (!isset($_GET['d'])) {
26
+    $_GET['d'] = 9;
27
+}
28
+if (!isset($_GET['h'])) {
29
+    $_GET['h'] = 12;
30
+}
31
+if (!isset($_GET['i'])) {
32
+    $_GET['i'] = 34;
33
+}
34
+if (!isset($_GET['s'])) {
35
+    $_GET['s'] = 46;
36
+}
25 37
 
26 38
 switch (@$_GET['view']) {
27 39
     default:
Please login to merge, or discard this patch.