Passed
Push — master ( df2682...2600cb )
by Sebastian
04:55
created
src/Localization/Generator.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -258,8 +258,7 @@
 block discarded – undo
258 258
         if(empty($tokens))
259 259
         {
260 260
             $content = '/* No strings found. */';
261
-        }
262
-        else
261
+        } else
263 262
         {
264 263
             $content =
265 264
             '/**'.PHP_EOL.
Please login to merge, or discard this patch.
src/Localization/Parser/Token/PHP.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,7 @@
 block discarded – undo
17 17
             if(isset($this->parentToken)) {
18 18
                 $this->line = $this->parentToken->getLine();
19 19
             }
20
-        }
21
-        else
20
+        } else
22 21
         {
23 22
             $this->token = token_name($this->definition[0]);
24 23
             $this->value = $this->definition[1];
Please login to merge, or discard this patch.
src/Localization/Editor/Filters.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@  discard block
 block discarded – undo
50 50
             foreach($defaults as $name => $val) {
51 51
                 $this->setValue($name, $val);
52 52
             }
53
-        }
54
-        else if($this->request->getBool($this->vars['filter'])) 
53
+        } else if($this->request->getBool($this->vars['filter'])) 
55 54
         {
56 55
             $this->parseSearchTerms($this->request->getParam($this->vars['search']));
57 56
             
@@ -72,8 +71,7 @@  discard block
 block discarded – undo
72 71
                 ->setEnum('', 'client', 'server')
73 72
                 ->get('')
74 73
             );
75
-        }
76
-        else
74
+        } else
77 75
         {
78 76
             $this->parseSearchTerms($this->getValue($this->vars['search']));
79 77
         }
Please login to merge, or discard this patch.
src/Localization/Writer.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,8 +121,7 @@
 block discarded – undo
121 121
             $lines[] = '; ';
122 122
             $lines[] = '; 1) Do not to modify the keys (left hand side of the = sign)';
123 123
             $lines[] = '; 2) Save the file as UTF-8 without BOM';
124
-        } 
125
-        else 
124
+        } else 
126 125
         {
127 126
             $lines[] = '; Do NOT edit this file directly! It depends on the main translation file';
128 127
             $lines[] = '; and any changes will be lost. Edit the main file instead.';
Please login to merge, or discard this patch.
src/Localization/Parser/Token/Javascript.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,7 @@
 block discarded – undo
19 19
             if(isset($this->parentToken)) {
20 20
                 $this->line = $this->parentToken->getLine();
21 21
             }
22
-        }
23
-        else
22
+        } else
24 23
         {
25 24
             $this->token = JTokenizer::getTokenName($this->definition[0]);
26 25
             $this->value = $this->definition[1];
Please login to merge, or discard this patch.
src/Localization/Parser/Language.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -124,8 +124,7 @@
 block discarded – undo
124 124
         try
125 125
         {
126 126
             $this->content = FileHelper::readContents($path);
127
-        }
128
-        catch (FileHelper_Exception $e)
127
+        } catch (FileHelper_Exception $e)
129 128
         {
130 129
             throw new Localization_Exception(
131 130
                 sprintf('Source code file [%s] could not be read', basename($path)),
Please login to merge, or discard this patch.
src/Localization.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -246,8 +246,7 @@
 block discarded – undo
246 246
             {
247 247
                 return $locale;
248 248
             }
249
-        }
250
-        catch (Throwable $e)
249
+        } catch (Throwable $e)
251 250
         {
252 251
 
253 252
         }
Please login to merge, or discard this patch.
src/Localization/Editor/Template/PageScaffold.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -290,8 +290,7 @@  discard block
 block discarded – undo
290 290
                         if($totalFiles == 1)
291 291
                         {
292 292
                             pt('Found in a single file:');
293
-                        }
294
-                        else
293
+                        } else
295 294
                         {
296 295
                             pt('Found in %1$s files:', $totalFiles);
297 296
                         }
@@ -463,8 +462,7 @@  discard block
 block discarded – undo
463 462
                     ?>
464 463
                     <b><?php echo $source->getLabel() ?></b>
465 464
                     <?php
466
-                }
467
-                else
465
+                } else
468 466
                 {
469 467
                     echo $source->getLabel();
470 468
                 }
@@ -554,8 +552,7 @@  discard block
 block discarded – undo
554 552
                 </a>
555 553
             </p>
556 554
             <?php
557
-        }
558
-        else
555
+        } else
559 556
         {
560 557
             echo $this->editor->getFilters()->renderForm();
561 558
 
Please login to merge, or discard this patch.
src/Localization/Editor.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -271,8 +271,7 @@
 block discarded – undo
271 271
         if($this->request->getBool($this->getVarName(self::VARIABLE_SCAN)))
272 272
         {
273 273
             $this->executeScan();
274
-        } 
275
-        else if($this->request->getBool($this->getSaveVariableName()))
274
+        } else if($this->request->getBool($this->getSaveVariableName()))
276 275
         {
277 276
             $this->executeSave();
278 277
         }
Please login to merge, or discard this patch.