Completed
Pull Request — develop (#675)
by Wachter
05:15 queued 02:53
created
src/Client/Bundle/WebsiteBundle/Controller/ScaffoldingController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
         return $this->renderStructure(
17 17
             $structure,
18
-            ['metadata' => $metadata],
18
+            [ 'metadata' => $metadata ],
19 19
             $preview,
20 20
             $partial
21 21
         );
Please login to merge, or discard this patch.
src/CodeExplorerBundle/Twig/SourceCodeExtension.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
         return [
44 44
             new \Twig_SimpleFunction(
45 45
                 'show_source_code',
46
-                [$this, 'showSourceCode'],
47
-                ['is_safe' => ['html'], 'needs_environment' => true]
46
+                [ $this, 'showSourceCode' ],
47
+                [ 'is_safe' => [ 'html' ], 'needs_environment' => true ]
48 48
             ),
49 49
         ];
50 50
     }
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             $method->getStartLine() - 1,
76 76
             $method->getEndLine() - $method->getStartLine() + 1
77 77
         );
78
-        $controllerCode = '    ' . $method->getDocComment() . "\n" . implode('', $methodCode);
78
+        $controllerCode = '    '.$method->getDocComment()."\n".implode('', $methodCode);
79 79
 
80 80
         return [
81 81
             'file_path' => $method->getFileName(),
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     private function getCallableReflector($callable)
97 97
     {
98 98
         if (is_array($callable)) {
99
-            return new \ReflectionMethod($callable[0], $callable[1]);
99
+            return new \ReflectionMethod($callable[ 0 ], $callable[ 1 ]);
100 100
         }
101 101
 
102 102
         if (is_object($callable) && !$callable instanceof \Closure) {
@@ -131,14 +131,14 @@  discard block
 block discarded – undo
131 131
 
132 132
         $indentedLines = array_filter(
133 133
             $codeLines,
134
-            function ($lineOfCode) {
134
+            function($lineOfCode) {
135 135
                 return '' === $lineOfCode || '    ' === substr($lineOfCode, 0, 4);
136 136
             }
137 137
         );
138 138
 
139 139
         if (count($indentedLines) === count($codeLines)) {
140 140
             $formattedCode = array_map(
141
-                function ($lineOfCode) {
141
+                function($lineOfCode) {
142 142
                     return substr($lineOfCode, 4);
143 143
                 },
144 144
                 $codeLines
Please login to merge, or discard this patch.
src/CodeExplorerBundle/DependencyInjection/CodeExplorerExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 {
24 24
     public function load(array $configs, ContainerBuilder $container)
25 25
     {
26
-        $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
26
+        $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
27 27
 
28 28
         $loader->load('services.yml');
29 29
     }
Please login to merge, or discard this patch.