Completed
Pull Request — master (#17)
by
unknown
05:36
created
src/PatternLabListener.php 3 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -13,19 +13,19 @@  discard block
 block discarded – undo
13 13
 
14 14
 class PatternLabListener extends \PatternLab\Listener {
15 15
   
16
-  /**
17
-  * Add the listeners for this plug-in
18
-  */
19
-  public function __construct() {
16
+    /**
17
+     * Add the listeners for this plug-in
18
+     */
19
+    public function __construct() {
20 20
     
21 21
     $this->addListener("twigPatternLoader.customize","addExtensions");
22 22
     
23
-  }
23
+    }
24 24
   
25
-  /**
26
-  * Add the extensions to the appropriate instance
27
-  */
28
-  public function addExtensions() {
25
+    /**
26
+     * Add the extensions to the appropriate instance
27
+     */
28
+    public function addExtensions() {
29 29
     
30 30
     $instance = TwigUtil::getInstance();
31 31
     $instance->addExtension(new \Jasny\Twig\ArrayExtension());
@@ -34,6 +34,6 @@  discard block
 block discarded – undo
34 34
     $instance->addExtension(new \Jasny\Twig\TextExtension());
35 35
     TwigUtil::setInstance($instance);
36 36
     
37
-  }
37
+    }
38 38
   
39 39
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
   */
19 19
   public function __construct() {
20 20
     
21
-    $this->addListener("twigPatternLoader.customize","addExtensions");
21
+    $this->addListener("twigPatternLoader.customize", "addExtensions");
22 22
     
23 23
   }
24 24
   
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,12 +11,14 @@  discard block
 block discarded – undo
11 11
 
12 12
 use \PatternLab\PatternEngine\Twig\TwigUtil;
13 13
 
14
-class PatternLabListener extends \PatternLab\Listener {
14
+class PatternLabListener extends \PatternLab\Listener
15
+{
15 16
   
16 17
   /**
17 18
   * Add the listeners for this plug-in
18 19
   */
19
-  public function __construct() {
20
+  public function __construct()
21
+  {
20 22
     
21 23
     $this->addListener("twigPatternLoader.customize","addExtensions");
22 24
     
@@ -25,7 +27,8 @@  discard block
 block discarded – undo
25 27
   /**
26 28
   * Add the extensions to the appropriate instance
27 29
   */
28
-  public function addExtensions() {
30
+  public function addExtensions()
31
+  {
29 32
     
30 33
     $instance = TwigUtil::getInstance();
31 34
     $instance->addExtension(new \Jasny\Twig\ArrayExtension());
Please login to merge, or discard this patch.