Passed
Pull Request — master (#25)
by Matthew
06:18
created
Generator/GridSourceGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
                 'tags' => array(array('name' => 'dtc_grid.source')),
97 97
                 'calls' => array(
98 98
                     array('autoDiscoverColumns'),
99
-        ), );
99
+        ),);
100 100
 
101 101
         if ($columns && isset($gridColumnsNamespace) && isset($gridColumnClass)) {
102 102
             $config[$serviceName]['calls'] = array(
Please login to merge, or discard this patch.
Grid/Renderer/DataTablesRenderer.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -100,12 +100,12 @@
 block discarded – undo
100 100
 
101 101
         // We need to pass filter information here.
102 102
         $params = array(
103
-               'id' => $this->gridSource->getId(),
104
-               'renderer' => 'datatables',
105
-               'filter' => $this->gridSource->getFilter(),
106
-               'parameters' => $this->gridSource->getParameters(),
107
-               'order' => $this->gridSource->getOrderBy(),
108
-               'fields' => $fields,
103
+                'id' => $this->gridSource->getId(),
104
+                'renderer' => 'datatables',
105
+                'filter' => $this->gridSource->getFilter(),
106
+                'parameters' => $this->gridSource->getParameters(),
107
+                'order' => $this->gridSource->getOrderBy(),
108
+                'fields' => $fields,
109 109
         );
110 110
 
111 111
         $sortInfo = $this->gridSource->getDefaultSort();
Please login to merge, or discard this patch.
Grid/Source/ColumnExtractionTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -386,7 +386,7 @@
 block discarded – undo
386 386
             return;
387 387
         }
388 388
 
389
-        uasort($ordered, function ($columnDef1, $columnDef2) {
389
+        uasort($ordered, function($columnDef1, $columnDef2) {
390 390
             $columnParts1 = $columnDef1['arguments'];
391 391
             $columnParts2 = $columnDef2['arguments'];
392 392
             $order1 = $columnParts1[5];
Please login to merge, or discard this patch.
DependencyInjection/Compiler/GridSourceCompilerPass.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     {
90 90
         $cacheDir = $container->getParameter('kernel.cache_dir');
91 91
         if ($container->hasParameter('kernel.project_dir')) {
92
-            $directory = $container->getParameter('kernel.project_dir') . \DIRECTORY_SEPARATOR . 'config' . \DIRECTORY_SEPARATOR . 'dtc_grid';
92
+            $directory = $container->getParameter('kernel.project_dir').\DIRECTORY_SEPARATOR.'config'.\DIRECTORY_SEPARATOR.'dtc_grid';
93 93
             if (is_dir($directory)) {
94 94
                 $finder = new Finder();
95 95
                 $finder->files()->in(str_replace(\DIRECTORY_SEPARATOR, '/', $directory));
@@ -104,8 +104,8 @@  discard block
 block discarded – undo
104 104
             $finder->files()->in($directory)->name('dtc_grid.yaml')->name('dtc_grid.yml')->path('Resources/config');
105 105
             self::cacheAllFiles($cacheDir, $finder);
106 106
             if (class_exists('Symfony\Component\Config\Resource\GlobResource')) {
107
-                $container->addResource(new \Symfony\Component\Config\Resource\GlobResource(str_replace('/', \DIRECTORY_SEPARATOR, $directory),str_replace('/', \DIRECTORY_SEPARATOR, '/**/Resources/config/dtc_grid.yaml'), false));
108
-                $container->addResource(new \Symfony\Component\Config\Resource\GlobResource(str_replace('/', \DIRECTORY_SEPARATOR, $directory),str_replace('/', \DIRECTORY_SEPARATOR, '/**/Resources/config/dtc_grid.yml'), false));
107
+                $container->addResource(new \Symfony\Component\Config\Resource\GlobResource(str_replace('/', \DIRECTORY_SEPARATOR, $directory), str_replace('/', \DIRECTORY_SEPARATOR, '/**/Resources/config/dtc_grid.yaml'), false));
108
+                $container->addResource(new \Symfony\Component\Config\Resource\GlobResource(str_replace('/', \DIRECTORY_SEPARATOR, $directory), str_replace('/', \DIRECTORY_SEPARATOR, '/**/Resources/config/dtc_grid.yml'), false));
109 109
             }
110 110
             // TODO: To cover symfony versions that don't support GlobResource, such as 2.x, it would probably be necessary to add a recursive set of FileExistenceResources here.
111 111
         }
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     private static function addLocalCssJs(ContainerBuilder $container, $type) {
115 115
         $parameter = 'dtc_grid.datatables.local.files.'.$type;
116 116
         if ($container->hasParameter($parameter)) {
117
-            foreach($container->getParameter($parameter) as $filepath) {
117
+            foreach ($container->getParameter($parameter) as $filepath) {
118 118
                 $container->addResource(new FileResource($filepath));
119 119
             }
120 120
         }
Please login to merge, or discard this patch.
Util/CamelCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
      */
12 12
     public static function fromCamelCase($str)
13 13
     {
14
-        $value = preg_replace_callback('/([A-Z])/', function ($str) {
14
+        $value = preg_replace_callback('/([A-Z])/', function($str) {
15 15
             return ' '.$str[0];
16 16
         }, $str);
17 17
         $value = ucfirst($value);
Please login to merge, or discard this patch.
Twig/Extension/TwigExtensionLegacy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
                     return $value->format(\DateTime::ISO8601);
46 46
                 }
47 47
 
48
-                return 'object: ' . get_class($value);
48
+                return 'object: '.get_class($value);
49 49
             } elseif (is_scalar($value)) {
50 50
                 return $value;
51 51
             } elseif (is_array($value)) {
Please login to merge, or discard this patch.
Grid/Source/ColumnSource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -386,7 +386,7 @@
 block discarded – undo
386 386
             return;
387 387
         }
388 388
 
389
-        uasort($ordered, function ($columnDef1, $columnDef2) {
389
+        uasort($ordered, function($columnDef1, $columnDef2) {
390 390
             $columnParts1 = $columnDef1['arguments'];
391 391
             $columnParts2 = $columnDef2['arguments'];
392 392
             $order1 = $columnParts1[5];
Please login to merge, or discard this patch.