Completed
Branch master (6e56f1)
by Tomáš
08:15
created
src/Bundle/TextileBundle/DependencyInjection/Configuration.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@
 block discarded – undo
22 22
 class Configuration implements ConfigurationInterface
23 23
 {
24 24
     /**
25
-    * {@inheritdoc}
26
-    */
25
+     * {@inheritdoc}
26
+     */
27 27
     public function getConfigTreeBuilder()
28 28
     {
29 29
         $treeBuilder = new TreeBuilder;
Please login to merge, or discard this patch.
src/Bundle/ThemeBundle/ThemeRegistry.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
     public function listThemes()
29 29
     {
30
-        if (! file_exists($this->directory)) {
30
+        if (!file_exists($this->directory)) {
31 31
             return array();
32 32
         }
33 33
 
@@ -56,13 +56,13 @@  discard block
 block discarded – undo
56 56
         $themes = $this->listThemes();
57 57
 
58 58
         foreach (array($this->activeTheme.'-dev', $this->activeTheme) as $activeTheme) {
59
-            if (! isset($themes[$activeTheme])) {
59
+            if (!isset($themes[$activeTheme])) {
60 60
                 continue;
61 61
             }
62 62
 
63 63
             $theme = $themes[$activeTheme];
64 64
             if (isset($theme['parent'])) {
65
-                if (! isset($themes[$theme['parent']])) {
65
+                if (!isset($themes[$theme['parent']])) {
66 66
                     throw new \RuntimeException(sprintf("Theme %s is a child of nonexistent parent theme %s", $this->activeTheme, $theme['parent']));
67 67
                 }
68 68
 
Please login to merge, or discard this patch.
src/Bundle/ThemeBundle/DependencyInjection/Configuration.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@
 block discarded – undo
22 22
 class Configuration implements ConfigurationInterface
23 23
 {
24 24
     /**
25
-    * {@inheritdoc}
26
-    */
25
+     * {@inheritdoc}
26
+     */
27 27
     public function getConfigTreeBuilder()
28 28
     {
29 29
         $treeBuilder = new TreeBuilder;
Please login to merge, or discard this patch.
src/Bundle/TwigBundle/DependencyInjection/SculpinTwigExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         $container->setParameter('sculpin_twig.view_paths', $config['view_paths']);
39 39
         $container->setParameter('sculpin_twig.extensions', $config['extensions']);
40 40
 
41
-        if (! extension_loaded('intl')) {
41
+        if (!extension_loaded('intl')) {
42 42
             // Do not enable the intl Twig extension if the intl PHP extension is not installed.
43 43
             $container->removeDefinition('sculpin_twig.extensions.intl');
44 44
         }
Please login to merge, or discard this patch.
src/Bundle/TwigBundle/DependencyInjection/Configuration.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@
 block discarded – undo
22 22
 class Configuration implements ConfigurationInterface
23 23
 {
24 24
     /**
25
-    * {@inheritdoc}
26
-    */
25
+     * {@inheritdoc}
26
+     */
27 27
     public function getConfigTreeBuilder()
28 28
     {
29 29
         $treeBuilder = new TreeBuilder;
Please login to merge, or discard this patch.
src/Bundle/TwigBundle/FlexibleExtensionFilesystemLoader.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -43,22 +43,22 @@
 block discarded – undo
43 43
      */
44 44
     public function __construct($sourceDir, array $sourcePaths, array $paths, array $extensions)
45 45
     {
46
-        $mappedSourcePaths = array_map(function ($path) use ($sourceDir) {
46
+        $mappedSourcePaths = array_map(function($path) use ($sourceDir) {
47 47
             return $sourceDir.'/'.$path;
48 48
         }, $sourcePaths);
49 49
 
50 50
         $allPaths = array_merge(
51
-            array_filter($mappedSourcePaths, function ($path) {
51
+            array_filter($mappedSourcePaths, function($path) {
52 52
                 return file_exists($path);
53 53
             }),
54
-            array_filter($paths, function ($path) {
54
+            array_filter($paths, function($path) {
55 55
                 return file_exists($path);
56 56
             })
57 57
         );
58 58
 
59 59
         $this->filesystemLoader = new FilesystemLoader($allPaths);
60
-        $this->extensions = array_map(function ($ext) {
61
-            return $ext?'.'.$ext:$ext;
60
+        $this->extensions = array_map(function($ext) {
61
+            return $ext ? '.'.$ext : $ext;
62 62
         }, $extensions);
63 63
     }
64 64
 
Please login to merge, or discard this patch.
src/Bundle/TwigBundle/TwigFormatter.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,9 +47,9 @@
 block discarded – undo
47 47
         $this->arrayLoader = $arrayLoader;
48 48
     }
49 49
 
50
-     /**
51
-     * {@inheritdoc}
52
-     */
50
+        /**
51
+         * {@inheritdoc}
52
+         */
53 53
     public function formatBlocks(FormatContext $formatContext)
54 54
     {
55 55
         try {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
             return $blocks;
69 69
         } catch (\Exception $e) {
70
-            print ' [ ' . get_class($e) . ': ' . $e->getMessage() . " ]\n";
70
+            print ' [ '.get_class($e).': '.$e->getMessage()." ]\n";
71 71
         }
72 72
     }
73 73
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
             return $this->twig->render($formatContext->templateId(), $data);
97 97
         } catch (\Exception $e) {
98
-            print ' [ ' . get_class($e) . ': ' . $e->getMessage() . " ]\n";
98
+            print ' [ '.get_class($e).': '.$e->getMessage()." ]\n";
99 99
         }
100 100
     }
101 101
 
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
             if (!preg_match_all('/{%\s+block\s+(\w+)\s+%}(.*?){%\s+endblock\s+%}/si', $verbatim, $matches)) {
121 121
                 $template = '{% block content %}'.$template.'{% endblock %}';
122 122
             }
123
-            $template = '{% extends "' . $layout . '" %}' . $template;
123
+            $template = '{% extends "'.$layout.'" %}'.$template;
124 124
         }
125 125
 
126 126
         return $template;
Please login to merge, or discard this patch.
src/Bundle/MarkdownTwigCompatBundle/ConvertListener.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@
 block discarded – undo
30 30
      * @var array
31 31
      */
32 32
     protected static $addPlaceholderRe = array(
33
-        '/^({%\s+block\s+(\w+).+?%})$/m',  // {% %} style code
34
-        '/^({%\s+endblock\s+%})$/m',       // {% %} style code
35
-        '/^({{.+?}})$/m',                  // {{ }} style code
33
+        '/^({%\s+block\s+(\w+).+?%})$/m', // {% %} style code
34
+        '/^({%\s+endblock\s+%})$/m', // {% %} style code
35
+        '/^({{.+?}})$/m', // {{ }} style code
36 36
     );
37 37
 
38 38
     /**
Please login to merge, or discard this patch.
DependencyInjection/Compiler/RegisterKernelListenersPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
                     $event['method'] = 'on'.preg_replace_callback(array(
48 48
                         '/(?<=\b)[a-z]/i',
49 49
                         '/[^a-z0-9]/i',
50
-                    ), function ($matches) { return strtoupper($matches[0]); }, $event['event']);
50
+                    ), function($matches) { return strtoupper($matches[0]); }, $event['event']);
51 51
                     $event['method'] = preg_replace('/[^a-z0-9]/i', '', $event['method']);
52 52
                 }
53 53
 
Please login to merge, or discard this patch.