Completed
Branch master (6d332f)
by Mikhail
06:45
created
src/SilexPinbaProvider/Cache/Filesystem.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     }
35 35
 
36 36
     /**
37
-     * @param $methodName
37
+     * @param string $methodName
38 38
      * @return StopwatchEvent
39 39
      */
40 40
     protected function getStopwatchEvent($methodName)
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
     /**
216 216
      * Gets the cache file extension.
217 217
      *
218
-     * @return string|null
218
+     * @return string
219 219
      */
220 220
     public function getExtension() {
221 221
         if ($this->stopwatch) {
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @author Mikhail Dolgov <[email protected]>
4
- * @date   09.03.2016 11:59
5
- */
3
+     * @author Mikhail Dolgov <[email protected]>
4
+     * @date   09.03.2016 11:59
5
+     */
6 6
 
7 7
 namespace SilexPinbaProvider\Cache;
8 8
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 use Intaro\PinbaBundle\Stopwatch\Stopwatch;
11 11
 use Intaro\PinbaBundle\Stopwatch\StopwatchEvent;
12 12
 
13
-class Filesystem extends FilesystemCache{
13
+class Filesystem extends FilesystemCache {
14 14
     /**
15 15
      * @var Stopwatch
16 16
      */
Please login to merge, or discard this patch.
src/SilexPinbaProvider/pinba_emulator.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,4 +40,4 @@
 block discarded – undo
40 40
         'hostname'    => 'emulate hostname',
41 41
         "server_name" => 'emulate server name',
42 42
     );
43
- }
44 43
\ No newline at end of file
44
+    }
45 45
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -15,26 +15,26 @@
 block discarded – undo
15 15
      */
16 16
     global $app;
17 17
     static $logger = null;
18
-    if(is_null($logger)) {
18
+    if (is_null($logger)) {
19 19
         $logger = $app['pinba_logger'];
20 20
     }
21 21
     return $logger;
22 22
 }
23 23
 
24
-function pinba_script_name_set ($name){
24
+function pinba_script_name_set($name) {
25 25
     get_pinba_logger()->debug(__FUNCTION__, func_get_args());
26 26
 }
27
-function pinba_timer_start ($tags){
27
+function pinba_timer_start($tags) {
28 28
     get_pinba_logger()->debug(__FUNCTION__, func_get_args());
29
-    return rand(100,999);
29
+    return rand(100, 999);
30 30
 }
31
-function pinba_timer_stop ($tags){
31
+function pinba_timer_stop($tags) {
32 32
     get_pinba_logger()->debug(__FUNCTION__, func_get_args());
33 33
 }
34
-function pinba_timer_add ($tags, $time){
34
+function pinba_timer_add($tags, $time) {
35 35
     get_pinba_logger()->debug(__FUNCTION__, func_get_args());
36 36
 }
37
-function pinba_get_info (){
37
+function pinba_get_info() {
38 38
     get_pinba_logger()->debug(__FUNCTION__);
39 39
     return array(
40 40
         'hostname'    => 'emulate hostname',
Please login to merge, or discard this patch.
src/SilexPinbaProvider/SilexPinbaProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 use Silex\Application;
13 13
 use Silex\ServiceProviderInterface;
14 14
 
15
-class SilexPinbaProvider implements ServiceProviderInterface{
15
+class SilexPinbaProvider implements ServiceProviderInterface {
16 16
 
17 17
     /**
18 18
      * Registers services on the given app.
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      * @param Application $app
23 23
      */
24 24
     public function register(Application $app) {
25
-        if( !function_exists('pinba_script_name_set') || PHP_SAPI === 'cli' )
25
+        if (!function_exists('pinba_script_name_set') || PHP_SAPI === 'cli')
26 26
         {
27 27
             return;
28 28
         }
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
             return new $app['intaro_pinba.script_name_configure.class'];
38 38
         });
39 39
 
40
-        $app['intaro_pinba.stopwatch']  = $app->share(function() use ($app) {
40
+        $app['intaro_pinba.stopwatch'] = $app->share(function() use ($app) {
41 41
             return new $app['intaro_pinba.stopwatch.class'];
42 42
         });
43 43
 
@@ -47,10 +47,10 @@  discard block
 block discarded – undo
47 47
              */
48 48
             $className = $app['intaro_pinba.dbal.logger.class'];
49 49
             $host      = isset($app["intaro_pinba.doctrine.database_host"]) ? $app["intaro_pinba.doctrine.database_host"] : 'localhost';
50
-            return new $className( $app["intaro_pinba.stopwatch"], $host);
50
+            return new $className($app["intaro_pinba.stopwatch"], $host);
51 51
         });
52 52
 
53
-        $app['dbs.config'] = $app->share(function ($app) {
53
+        $app['dbs.config'] = $app->share(function($app) {
54 54
             $app['dbs.options.initializer']();
55 55
 
56 56
             $configs = new \Pimple();
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      * @param Application $app
76 76
      */
77 77
     public function boot(Application $app) {
78
-        if(!function_exists('pinba_script_name_set') || PHP_SAPI === 'cli')
78
+        if (!function_exists('pinba_script_name_set') || PHP_SAPI === 'cli')
79 79
         {
80 80
             return;
81 81
         }
Please login to merge, or discard this patch.