From bf04b74d026c7fd6cfd02356721361551e33170d Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Wed, 6 May 2015 20:39:51 +0200 Subject: [PATCH] indent --- src/Gist/Controller/ViewController.php | 6 +- src/Gist/Resources/views/Home/index.html.twig | 12 +- .../Resources/views/View/notFound.html.twig | 24 +-- src/Gist/Resources/views/View/view.html.twig | 174 +++++++++--------- web/code.php | 165 ----------------- 5 files changed, 106 insertions(+), 275 deletions(-) diff --git a/src/Gist/Controller/ViewController.php b/src/Gist/Controller/ViewController.php index 9090a49..be594ab 100644 --- a/src/Gist/Controller/ViewController.php +++ b/src/Gist/Controller/ViewController.php @@ -30,10 +30,6 @@ class ViewController protected function notFoundResponse(Application $app) { - return $app['twig']->render( - 'View/notFound.html.twig', - array( - ) - ); + return $app['twig']->render('View/notFound.html.twig'); } } diff --git a/src/Gist/Resources/views/Home/index.html.twig b/src/Gist/Resources/views/Home/index.html.twig index b039931..c13204a 100644 --- a/src/Gist/Resources/views/Home/index.html.twig +++ b/src/Gist/Resources/views/Home/index.html.twig @@ -85,11 +85,11 @@ {% endblock %} {% block js %} - {{ parent() }} + {{ parent() }} - {% if gist is not null %} - - {% endif %} + {% if gist is not null %} + + {% endif %} {% endblock %} diff --git a/src/Gist/Resources/views/View/notFound.html.twig b/src/Gist/Resources/views/View/notFound.html.twig index 1952e68..bfc5748 100644 --- a/src/Gist/Resources/views/View/notFound.html.twig +++ b/src/Gist/Resources/views/View/notFound.html.twig @@ -1,16 +1,16 @@ {% extends 'base.html.twig' %} {% block body %} -
-
-
-
- {{ 'gist.404.title'|trans }} -
-
-

{{ 'gist.404.message'|trans }}

-
-
-
-
+
+
+
+
+ {{ 'gist.404.title'|trans }} +
+
+

{{ 'gist.404.message'|trans }}

+
+
+
+
{% endblock %} diff --git a/src/Gist/Resources/views/View/view.html.twig b/src/Gist/Resources/views/View/view.html.twig index ce4ea17..bfc9d5e 100644 --- a/src/Gist/Resources/views/View/view.html.twig +++ b/src/Gist/Resources/views/View/view.html.twig @@ -1,98 +1,98 @@ {% extends 'base.html.twig' %} {% block body %} -
-
- {% if not gist.cipher %} - - {% endif %} -
-
- {% if not gist.cipher %} - - {% endif %} +
+
+ {% if not gist.cipher %} + + {% endif %} +
+
+ {% if not gist.cipher %} + + {% endif %} - {{ gist.title ? gist.title : 'gist.untitled'|trans }} -
-
-
-
-
-
-
- -
-
-
+ {{ gist.title ? gist.title : 'gist.untitled'|trans }} +
+
+
+
+
+
+
+ +
+
+
-
- {% if gist.cipher %} -
-										{{ 'foo' }}
-									
- {% endif %} -
-
- {% if not gist.cipher %} -
-
-

- Commit 82110bbb53fbc5bf010ea4a50d999ab7cb22ae4f -
- Date: Mon May 4 23:09:44 2015 +0200 -

+
+ {% if gist.cipher %} +
+                                        {{ 'foo' }}
+                                    
+ {% endif %} +
+
+ {% if not gist.cipher %} +
+
+

+ Commit 82110bbb53fbc5bf010ea4a50d999ab7cb22ae4f +
+ Date: Mon May 4 23:09:44 2015 +0200 +

-

- - Afficher - - - DIFF - -

-
-
-
- {% endif %} -
-
-
-
-
+

+ + Afficher + + + DIFF + +

+
+
+
+ {% endif %} +
+
+
+
+
{% endblock %} {% block js %} - {{ parent() }} + {{ parent() }} - {% if gist is not null %} - - {% endif %} + {% if gist is not null %} + + {% endif %} {% endblock %} diff --git a/web/code.php b/web/code.php index 1a072a2..062413f 100644 --- a/web/code.php +++ b/web/code.php @@ -45,171 +45,6 @@ $geshi->enable_line_numbers(GESHI_NORMAL_LINE_NUMBERS);
-
-
- -
- -
-
-
-
-
-
- - -
-
-
- -
- parse_code(); - ?> -
-
-
-
-

- Commit 82110bbb53fbc5bf010ea4a50d999ab7cb22ae4f -
- Date: Mon May 4 23:09:44 2015 +0200 -

- -

- - Afficher - - - DIFF - -

-
-
-
-

- Commit 82110bbb53fbc5bf010ea4a50d999ab7cb22ae4f -
- Date: Mon May 4 23:09:44 2015 +0200 -

- -

- - Afficher - - - DIFF - -

-
-
-
-

- Commit 82110bbb53fbc5bf010ea4a50d999ab7cb22ae4f -
- Date: Mon May 4 23:09:44 2015 +0200 -

- -

- - Afficher - - - DIFF - -

-
-
-
-

- Commit 82110bbb53fbc5bf010ea4a50d999ab7cb22ae4f -
- Date: Mon May 4 23:09:44 2015 +0200 -

- -

- - Afficher - - - DIFF - -

-
-
-
-
-