Completed
Push — master ( b7c902...b4a3d6 )
by
unknown
31:13
created
src/Sculpin/Bundle/StandaloneBundle/Command/CacheClearCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
     protected function execute(InputInterface $input, OutputInterface $output)
53 53
     {
54 54
         $cacheDir = $this->getContainer()->getParameter('kernel.cache_dir');
55
-        $filesystem   = $this->getContainer()->get('filesystem');
55
+        $filesystem = $this->getContainer()->get('filesystem');
56 56
 
57 57
         if ($filesystem->exists($cacheDir)) {
58 58
             if (!is_writable($cacheDir)) {
Please login to merge, or discard this patch.
src/Sculpin/Bundle/ContentTypesBundle/Command/ContentCreateCommand.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     {
38 38
         $prefix = $this->isStandaloneSculpin() ? '' : 'sculpin:';
39 39
 
40
-        $this->setName($prefix . 'content:create');
40
+        $this->setName($prefix.'content:create');
41 41
         $this->setDescription('Create a new content type, including boilerplate template files.');
42 42
         $this->setDefinition(
43 43
             [
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         $dryRun       = $input->getOption('dry-run');
93 93
         $taxonomies   = $input->getOption('taxonomy');
94 94
 
95
-        $output->writeln('Generating new content type: <info>' . $pluralType . '</info>');
95
+        $output->writeln('Generating new content type: <info>'.$pluralType.'</info>');
96 96
 
97 97
         // TODO: Prompt the user with a preview before generating content
98 98
         $output->writeln($this->getOutputMessage($pluralType, $singularType, $taxonomies));
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
             $output->writeln("Dry run. Skipping creation of these boilerplate files:");
108 108
 
109 109
             foreach ($boilerplateManifest as $filename => $value) {
110
-                $output->writeln("\t<info>" . $filename . '</info>');
110
+                $output->writeln("\t<info>".$filename.'</info>');
111 111
             }
112 112
 
113 113
             $output->writeln("\nRemember to add the content type definition (displayed above) to sculpin_kernel.yml!");
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
             return 0;
116 116
         }
117 117
 
118
-        $output->writeln('Generating boilerplate for ' . $pluralType);
118
+        $output->writeln('Generating boilerplate for '.$pluralType);
119 119
         $fs = new Filesystem();
120 120
         foreach ($boilerplateManifest as $filename => $value) {
121 121
             // create directory and skip the rest of the loop
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
             }
126 126
 
127 127
             if ($fs->exists($filename)) {
128
-                $output->writeln('Warning: ' . $filename . ' already exists at the target location. Skipping.');
128
+                $output->writeln('Warning: '.$filename.' already exists at the target location. Skipping.');
129 129
                 continue;
130 130
             }
131 131
 
@@ -149,33 +149,33 @@  discard block
 block discarded – undo
149 149
         $manifest = [];
150 150
 
151 151
         // ensure the content type storage folder exists
152
-        $storageFolder            = $rootDir . '/source/_' . $plural;
152
+        $storageFolder            = $rootDir.'/source/_'.$plural;
153 153
         $manifest[$storageFolder] = static::DIRECTORY_FLAG;
154 154
 
155 155
         // content type index template
156
-        $index            = $rootDir . '/source/' . $plural . '.html';
156
+        $index            = $rootDir.'/source/'.$plural.'.html';
157 157
         $manifest[$index] = $this->getIndexTemplate($plural, $singular);
158 158
 
159 159
         // ensure the views folder exists
160
-        $storageFolder            = $rootDir . '/source/_views';
160
+        $storageFolder            = $rootDir.'/source/_views';
161 161
         $manifest[$storageFolder] = static::DIRECTORY_FLAG;
162 162
 
163 163
         // content type view template
164
-        $index            = $rootDir . '/source/_views/' . $singular . '.html';
164
+        $index            = $rootDir.'/source/_views/'.$singular.'.html';
165 165
         $manifest[$index] = $this->getViewTemplate($plural, $taxonomies);
166 166
 
167 167
         foreach ($taxonomies as $taxonomy) {
168 168
             $singularTaxonomy = Inflector::singularize($taxonomy);
169 169
             // content taxonomy index template
170
-            $index            = $rootDir . '/source/' . $plural . '/' . $taxonomy . '.html';
170
+            $index            = $rootDir.'/source/'.$plural.'/'.$taxonomy.'.html';
171 171
             $manifest[$index] = $this->getTaxonomyIndexTemplate($plural, $taxonomy, $singularTaxonomy);
172 172
 
173 173
             // content taxonomy directory
174
-            $storageFolder            = $rootDir . '/source/' . $plural . '/' . $taxonomy;
174
+            $storageFolder            = $rootDir.'/source/'.$plural.'/'.$taxonomy;
175 175
             $manifest[$storageFolder] = static::DIRECTORY_FLAG;
176 176
 
177 177
             // content taxonomy view template(s)
178
-            $index            = $rootDir . '/source/' . $plural . '/' . $taxonomy . '/' . $singularTaxonomy . '.html';
178
+            $index            = $rootDir.'/source/'.$plural.'/'.$taxonomy.'/'.$singularTaxonomy.'.html';
179 179
             $manifest[$index] = $this->getTaxonomyViewTemplate($plural, $singular, $singularTaxonomy);
180 180
         }
181 181
 
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
 EOT;
264 264
 
265 265
         if ($taxonomies) {
266
-            $output .= "\n" . '  <section class="taxonomies">' . "\n";
266
+            $output .= "\n".'  <section class="taxonomies">'."\n";
267 267
 
268 268
             foreach ($taxonomies as $taxonomy) {
269 269
                 $capitalTaxonomy  = ucwords($taxonomy);
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
 EOT;
281 281
             }
282 282
 
283
-            $output .= "\n" . '  </section>' . "\n";
283
+            $output .= "\n".'  </section>'."\n";
284 284
         }
285 285
 
286 286
         $output .= <<<EOT
Please login to merge, or discard this patch.