@@ -88,7 +88,7 @@ |
||
| 88 | 88 | |
| 89 | 89 | $this->eventDispatcher->dispatch(SculpinEvents::EVENT_BEFORE_RUN, new SourceSetEvent($sourceSet)); |
| 90 | 90 | |
| 91 | - if ($updatedSources = array_filter($sourceSet->updatedSources(), function ($source) { |
|
| 91 | + if ($updatedSources = array_filter($sourceSet->updatedSources(), function($source) { |
|
| 92 | 92 | return !$source->isGenerated(); |
| 93 | 93 | })) { |
| 94 | 94 | if (!$found) { |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | { |
| 20 | 20 | // We have special sorting rules for our items based on the date |
| 21 | 21 | // and title. This assumes that the items are actually Post instances. |
| 22 | - uasort($this->items, function ($a, $b) { |
|
| 22 | + uasort($this->items, function($a, $b) { |
|
| 23 | 23 | return strnatcmp($b->date().' '.$b->title(), $a->date().' '.$a->title()); |
| 24 | 24 | }); |
| 25 | 25 | parent::init(); |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | |
| 26 | 26 | private function createAndReturnTempDir() : string |
| 27 | 27 | { |
| 28 | - $tempDir = sys_get_temp_dir() . '/php7_sculpin'; |
|
| 28 | + $tempDir = sys_get_temp_dir().'/php7_sculpin'; |
|
| 29 | 29 | FileSystem::delete($tempDir); |
| 30 | 30 | FileSystem::createDir($tempDir); |
| 31 | 31 | return $tempDir; |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | public function loadConfiguration() |
| 48 | 48 | { |
| 49 | 49 | foreach ($this->serviceConfigFileNames as $serviceConfigFileName) { |
| 50 | - $this->loadDefinitionsFromFile(__DIR__ . '/../config/services/' . $serviceConfigFileName); |
|
| 50 | + $this->loadDefinitionsFromFile(__DIR__.'/../config/services/'.$serviceConfigFileName); |
|
| 51 | 51 | } |
| 52 | 52 | } |
| 53 | 53 | |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | $definition = $containerBuilder->getDefinition('sculpin_posts.posts_map'); |
| 64 | 64 | foreach ($containerBuilder->findByTag('sculpin_posts.posts_map') as $id => $tagAttributes) { |
| 65 | 65 | foreach ($tagAttributes as $attributes) { |
| 66 | - $definition->addSetup('addMap', ['@' . $id]); |
|
| 66 | + $definition->addSetup('addMap', ['@'.$id]); |
|
| 67 | 67 | } |
| 68 | 68 | } |
| 69 | 69 | |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | foreach ($data as $type => $extensions) { |
| 92 | - $data[$type] = array_filter($extensions, function ($var) { |
|
| 92 | + $data[$type] = array_filter($extensions, function($var) { |
|
| 93 | 93 | return strlen($var) > 0; |
| 94 | 94 | }); |
| 95 | 95 | } |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | // $calls = $definition->getMethodCalls(); |
| 119 | 119 | // $definition->setMethodCalls([]); |
| 120 | 120 | foreach ($this->getContainerBuilder()->findByType(Twig_ExtensionInterface::class) as $id => $attributes) { |
| 121 | - $definition->addSetup('addExtension', ['@' . $id]); |
|
| 121 | + $definition->addSetup('addExtension', ['@'.$id]); |
|
| 122 | 122 | } |
| 123 | 123 | // $definition->setMethodCalls(array_merge($definition->getMethodCalls(), $calls)); |
| 124 | 124 | |