Completed
Push — master ( 456d8b...4951ed )
by Philip
07:49
created
src/CRUDlex/CRUDControllerProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function connect(Application $app) {
73 73
         if ($app->offsetExists('twig.loader.filesystem')) {
74
-            $app['twig.loader.filesystem']->addPath(__DIR__ . '/../views/', 'crud');
74
+            $app['twig.loader.filesystem']->addPath(__DIR__.'/../views/', 'crud');
75 75
         }
76 76
 
77 77
         if (!$app->offsetExists('crud.layout')) {
@@ -520,9 +520,9 @@  discard block
 block discarded – undo
520 520
 
521 521
         $size = filesize($file);
522 522
 
523
-        $response = new StreamedResponse(function () use ($file) {
523
+        $response = new StreamedResponse(function() use ($file) {
524 524
             set_time_limit(0);
525
-            $handle = fopen($file,"rb");
525
+            $handle = fopen($file, "rb");
526 526
             if ($handle !== false) {
527 527
                 $chunkSize = 1024 * 1024;
528 528
                 while (!feof($handle)) {
Please login to merge, or discard this patch.
src/CRUDlex/CRUDServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 
124 124
         if (!$app->offsetExists('twig')) {
125 125
             $app->register(new \Silex\Provider\TwigServiceProvider());
126
-            $app['twig.loader.filesystem']->addPath(__DIR__ . '/../views/', 'crud');
126
+            $app['twig.loader.filesystem']->addPath(__DIR__.'/../views/', 'crud');
127 127
         }
128 128
 
129 129
         $app['translator']->addLoader('yaml', new YamlFileLoader());
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 
146 146
             $localeLabels = array();
147 147
             foreach ($locales as $locale) {
148
-                if (array_key_exists('label_' . $locale, $crud)) {
148
+                if (array_key_exists('label_'.$locale, $crud)) {
149 149
                     $localeLabels[$locale] = $crud['label_'.$locale];
150 150
                 }
151 151
             }
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
 
412 412
         // We don't want values like 0.004 converted to  0.00400000000000000008
413 413
         if ($float > 0.0001) {
414
-            return $float . ($zeroFraction === '0' ? '.'.$zeroFraction : '');
414
+            return $float.($zeroFraction === '0' ? '.'.$zeroFraction : '');
415 415
         }
416 416
 
417 417
         // We don't want values like 0.00004 converted to its scientific notation 4.0E-5
Please login to merge, or discard this patch.