Completed
Pull Request — master (#141)
by Bhanu
37:51 queued 34s
created
vendor/symfony/http-kernel/HttpCache/Store.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -336,7 +336,7 @@
 block discarded – undo
336 336
      * @param string $key  The store key
337 337
      * @param string $data The data to store
338 338
      *
339
-     * @return bool
339
+     * @return false|null
340 340
      */
341 341
     private function save($key, $data)
342 342
     {
Please login to merge, or discard this patch.
vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php 2 patches
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
      *
215 215
      * @param resource $file The file resource, with the pointer placed at the end of the line to read
216 216
      *
217
-     * @return mixed A string representing the line or null if beginning of file is reached
217
+     * @return null|string A string representing the line or null if beginning of file is reached
218 218
      */
219 219
     protected function readLineFromFile($file)
220 220
     {
@@ -254,6 +254,9 @@  discard block
 block discarded – undo
254 254
         return '' === $line ? null : $line;
255 255
     }
256 256
 
257
+    /**
258
+     * @param string $token
259
+     */
257 260
     protected function createProfileFromData($token, $data, $parent = null)
258 261
     {
259 262
         $profile = new Profile($token);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
         $data = array(
149 149
             'token' => $profile->getToken(),
150 150
             'parent' => $profile->getParentToken(),
151
-            'children' => array_map(function ($p) { return $p->getToken(); }, $profile->getChildren()),
151
+            'children' => array_map(function($p) { return $p->getToken(); }, $profile->getChildren()),
152 152
             'data' => $profile->getCollectors(),
153 153
             'ip' => $profile->getIp(),
154 154
             'method' => $profile->getMethod(),
Please login to merge, or discard this patch.
vendor/symfony/http-kernel/Profiler/Profiler.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
     /**
188 188
      * Gets the Collectors associated with this profiler.
189 189
      *
190
-     * @return array An array of collectors
190
+     * @return DataCollectorInterface[] An array of collectors
191 191
      */
192 192
     public function all()
193 193
     {
@@ -247,6 +247,9 @@  discard block
 block discarded – undo
247 247
         return $this->collectors[$name];
248 248
     }
249 249
 
250
+    /**
251
+     * @param string $value
252
+     */
250 253
     private function getTimestamp($value)
251 254
     {
252 255
         if (null === $value || '' == $value) {
Please login to merge, or discard this patch.
vendor/symfony/http-kernel/Tests/CacheClearer/ChainCacheClearerTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -50,6 +50,9 @@
 block discarded – undo
50 50
         $chainClearer->clear(self::$cacheDir);
51 51
     }
52 52
 
53
+    /**
54
+     * @return \Symfony\Component\HttpKernel\CacheClearer\CacheClearerInterface
55
+     */
53 56
     protected function getMockClearer()
54 57
     {
55 58
         return $this->getMock('Symfony\Component\HttpKernel\CacheClearer\CacheClearerInterface');
Please login to merge, or discard this patch.
vendor/symfony/http-kernel/Tests/CacheWarmer/CacheWarmerAggregateTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -89,6 +89,9 @@
 block discarded – undo
89 89
         $aggregate->warmUp(self::$cacheDir);
90 90
     }
91 91
 
92
+    /**
93
+     * @return \Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface
94
+     */
92 95
     protected function getCacheWarmerMock()
93 96
     {
94 97
         $warmer = $this->getMockBuilder('Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface')
Please login to merge, or discard this patch.
vendor/symfony/http-kernel/Tests/CacheWarmer/CacheWarmerTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -50,6 +50,9 @@
 block discarded – undo
50 50
 {
51 51
     protected $file;
52 52
 
53
+    /**
54
+     * @param string $file
55
+     */
53 56
     public function __construct($file)
54 57
     {
55 58
         $this->file = $file;
Please login to merge, or discard this patch.
vendor/symfony/http-kernel/Tests/DataCollector/RequestDataCollectorTest.php 2 patches
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -182,6 +182,8 @@
 block discarded – undo
182 182
 
183 183
     /**
184 184
      * Inject the given controller callable into the data collector.
185
+     * @param RequestDataCollector $collector
186
+     * @param Request $request
185 187
      */
186 188
     protected function injectController($collector, $controller, $request)
187 189
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,12 +75,12 @@
 block discarded – undo
75 75
 
76 76
             array(
77 77
                 'Closure',
78
-                function () { return 'foo'; },
78
+                function() { return 'foo'; },
79 79
                 array(
80 80
                     'class' => __NAMESPACE__.'\{closure}',
81 81
                     'method' => null,
82 82
                     'file' => __FILE__,
83
-                    'line' => __LINE__ - 5,
83
+                    'line' => __LINE__ -5,
84 84
                 ),
85 85
             ),
86 86
 
Please login to merge, or discard this patch.
vendor/symfony/http-kernel/Tests/Fragment/FragmentHandlerTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -72,6 +72,9 @@
 block discarded – undo
72 72
         $this->assertEquals('foo', $handler->render('/', 'foo', array('foo' => 'foo')));
73 73
     }
74 74
 
75
+    /**
76
+     * @param \PHPUnit_Framework_MockObject_Stub_Return $returnValue
77
+     */
75 78
     protected function getHandler($returnValue, $arguments = array())
76 79
     {
77 80
         $renderer = $this->getMock('Symfony\Component\HttpKernel\Fragment\FragmentRendererInterface');
Please login to merge, or discard this patch.
vendor/symfony/http-kernel/Tests/HttpCache/HttpCacheTestCase.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -78,6 +78,9 @@  discard block
 block discarded – undo
78 78
         $this->assertEquals(200, $this->response->getStatusCode());
79 79
     }
80 80
 
81
+    /**
82
+     * @param string $trace
83
+     */
81 84
     public function assertTraceContains($trace)
82 85
     {
83 86
         $traces = $this->cache->getTraces();
@@ -86,6 +89,9 @@  discard block
 block discarded – undo
86 89
         $this->assertRegExp('/'.$trace.'/', implode(', ', $traces));
87 90
     }
88 91
 
92
+    /**
93
+     * @param string $trace
94
+     */
89 95
     public function assertTraceNotContains($trace)
90 96
     {
91 97
         $traces = $this->cache->getTraces();
@@ -104,6 +110,9 @@  discard block
 block discarded – undo
104 110
         $this->assertFalse($this->kernel->isCatchingExceptions());
105 111
     }
106 112
 
113
+    /**
114
+     * @param string $method
115
+     */
107 116
     public function request($method, $uri = '/', $server = array(), $cookies = array(), $esi = false, $headers = array())
108 117
     {
109 118
         if (null === $this->kernel) {
@@ -152,6 +161,9 @@  discard block
 block discarded – undo
152 161
         $this->catch = $catch;
153 162
     }
154 163
 
164
+    /**
165
+     * @param string $directory
166
+     */
155 167
     public static function clearDirectory($directory)
156 168
     {
157 169
         if (!is_dir($directory)) {
Please login to merge, or discard this patch.