emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/phps-mode a8eadfa 130/405: Improved sample files inline


From: Stefan Monnier
Subject: [elpa] externals/phps-mode a8eadfa 130/405: Improved sample files inline and alternative control structures
Date: Sat, 13 Jul 2019 09:59:58 -0400 (EDT)

branch: externals/phps-mode
commit a8eadfab205eeed25f9b25541995c76a0d0a55ba
Author: Christian Johansson <address@hidden>
Commit: Christian Johansson <address@hidden>

    Improved sample files inline and alternative control structures
---
 sample-php-files/alternative-control-structure.php | 13 +++++++------
 sample-php-files/inline-control-structures.php     | 17 +++++++----------
 2 files changed, 14 insertions(+), 16 deletions(-)

diff --git a/sample-php-files/alternative-control-structure.php 
b/sample-php-files/alternative-control-structure.php
index a9f0bef..817c61f 100644
--- a/sample-php-files/alternative-control-structure.php
+++ b/sample-php-files/alternative-control-structure.php
@@ -1,21 +1,22 @@
 <?php
 
 if (true):
-    echo 'was here';
-    echo 'was here 2';
+    echo 'was true 1';
+    echo 'was true 1 2';
 endif;
 
 if (true):
-    echo 'was here';
+    echo 'was true 2';
 else:
-    echo 'was here 2';
+    echo 'was false 2';
 endif;
 
 
 switch (true):
     case true:
-        echo 'was here 1';
-        echo 'was here 2';
+        echo 'was true 3';
+        echo 'was true 3 2';
+        break;
     default:
         echo 'the default';
 endswitch;
diff --git a/sample-php-files/inline-control-structures.php 
b/sample-php-files/inline-control-structures.php
index dc88f02..23a4217 100644
--- a/sample-php-files/inline-control-structures.php
+++ b/sample-php-files/inline-control-structures.php
@@ -1,17 +1,14 @@
 <?php
 
 if (true)
-    echo 'was here';
-echo 'was here 2';
+    echo 'was true 1';
+echo 'was here';
 
 if (true)
-    echo 'was here';
+    echo 'was true 3';
 else
-    echo 'was here 2';
+    echo 'was false';
 
-switch (true) {
-    case true:
-        echo 'something here';
-    default:
-        echo 'the default here';
-}
+$i = 0;
+while ($i++ < 10)
+    echo ' ' . $i . ' ';



reply via email to

[Prev in Thread] Current Thread [Next in Thread]