Completed
Pull Request — master (#37)
by San
07:03
created
sources/lib/Controller/PommProfilerController.php 3 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
15 15
 use Symfony\Component\HttpKernel\Profiler\Profiler;
16 16
 use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
17
-
18 17
 use PommProject\Foundation\Pomm;
19 18
 
20 19
 /**
Please login to merge, or discard this patch.
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -72,6 +72,11 @@
 block discarded – undo
72 72
         return $this->explain($request, $token, $index_query, 'json');
73 73
     }
74 74
 
75
+    /**
76
+     * @param string $token
77
+     * @param integer $index_query
78
+     * @param string $format
79
+     */
75 80
     public function explain(Request $request, $token, $index_query, $format)
76 81
     {
77 82
         $panel = 'pomm';
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,8 +112,7 @@
 block discarded – undo
112 112
 
113 113
         if ($format === 'json') {
114 114
             $template = '@Pomm/Profiler/graph.html.twig';
115
-        }
116
-        else {
115
+        } else {
117 116
             $template = '@Pomm/Profiler/explain.html.twig';
118 117
         }
119 118
 
Please login to merge, or discard this patch.
sources/lib/DatabaseDataCollector.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -70,6 +70,9 @@
 block discarded – undo
70 70
         $this->watch($name);
71 71
     }
72 72
 
73
+    /**
74
+     * @param string $name
75
+     */
73 76
     private function watch($name)
74 77
     {
75 78
         if ($this->stopwatch !== null) {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -11,9 +11,7 @@
 block discarded – undo
11 11
 namespace PommProject\SymfonyBridge;
12 12
 
13 13
 use PommProject\Foundation\Exception\SqlException;
14
-use PommProject\Foundation\Listener\Listener;
15 14
 use PommProject\Foundation\Session\Session;
16
-
17 15
 use Symfony\Component\Stopwatch\Stopwatch;
18 16
 use Symfony\Component\HttpFoundation\Request;
19 17
 use Symfony\Component\HttpFoundation\Response;
Please login to merge, or discard this patch.
sources/lib/PropertyInfo/Extractor/TypeExtractor.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -59,6 +59,7 @@  discard block
 block discarded – undo
59 59
     /**
60 60
      * Get the sql type of $property
61 61
      *
62
+     * @param string $property
62 63
      * @return string
63 64
      */
64 65
     private function getSqlType(Session $session, $model_name, $property)
@@ -72,6 +73,7 @@  discard block
 block discarded – undo
72 73
     /**
73 74
      * Get the corresponding php type of a $sql_type type
74 75
      *
76
+     * @param string $sql_type
75 77
      * @return string
76 78
      */
77 79
     private function getPommType(Session $session, $sql_type)
@@ -90,6 +92,7 @@  discard block
 block discarded – undo
90 92
     /**
91 93
      * Create a new Type for the $pomm_type type
92 94
      *
95
+     * @param string $pomm_type
93 96
      * @return Type
94 97
      */
95 98
     private function createPropertyType($pomm_type)
Please login to merge, or discard this patch.
sources/lib/PropertyInfo/Extractor/PommExtractor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,4 +12,4 @@
 block discarded – undo
12 12
 
13 13
 @trigger_error('The '.__NAMESPACE__.'\PommExtractor class is deprecated since version 2.3 and will be removed in 3.0. Use the '.__NAMESPACE__.'\TypeExtractor class instead.', E_USER_DEPRECATED);
14 14
 
15
-class_alias(__NAMESPACE__ . '\TypeExtractor', __NAMESPACE__ . '\PommExtractor');
15
+class_alias(__NAMESPACE__.'\TypeExtractor', __NAMESPACE__.'\PommExtractor');
Please login to merge, or discard this patch.
sources/lib/Configurator/DatabaseCollectorConfigurator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
         $callable = [$this->datacollector, 'execute'];
41 41
 
42 42
         foreach ($pomm->getSessionBuilders() as $name => $builder) {
43
-            $pomm->addPostConfiguration($name, function ($session) use ($callable) {
43
+            $pomm->addPostConfiguration($name, function($session) use ($callable) {
44 44
                 $session
45 45
                     ->getClientUsingPooler('listener', 'query')
46 46
                     ->attachAction($callable)
Please login to merge, or discard this patch.