Passed
Branch convert_body_images (6b5f32)
by Paweł
31:56
created
src/SWP/Bundle/ContentBundle/Factory/ArticleFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
 
101 101
     private function populateBody(PackageInterface $package)
102 102
     {
103
-        return $package->getBody().' '.implode('', array_map(function (ItemInterface $item) {
103
+        return $package->getBody().' '.implode('', array_map(function(ItemInterface $item) {
104 104
             $this->ensureTypeIsAllowed($item->getType());
105 105
 
106 106
             return $item->getBody();
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/EventListener/ProcessArticleMediaListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
         $articleMedia->setArticle($article);
116 116
         $articleMedia->setFromItem($item);
117 117
 
118
-        if (ItemInterface::TYPE_PICTURE  === $item->getType()) {
118
+        if (ItemInterface::TYPE_PICTURE === $item->getType()) {
119 119
             $this->createImageMedia($articleMedia, $item);
120 120
         } elseif (ItemInterface::TYPE_FILE === $item->getType()) {
121 121
             //TODO: handle files upload
Please login to merge, or discard this patch.
src/SWP/Bundle/TemplateEngineBundle/Form/Type/WidgetType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,14 +35,14 @@
 block discarded – undo
35 35
                 'required' => false,
36 36
             ])
37 37
             ->addModelTransformer(new CallbackTransformer(
38
-                function ($originalDescription) {
38
+                function($originalDescription) {
39 39
                     if ($originalDescription && is_array($originalDescription->getParameters())) {
40 40
                         $originalDescription->setParameters(json_encode($originalDescription->getParameters()));
41 41
                     }
42 42
 
43 43
                     return $originalDescription;
44 44
                 },
45
-                function ($submittedDescription) {
45
+                function($submittedDescription) {
46 46
                     if ($submittedDescription && is_string($submittedDescription->getParameters())) {
47 47
                         $submittedDescription->setParameters(json_decode($submittedDescription->getParameters(), true));
48 48
                     } elseif ($submittedDescription && !is_array($submittedDescription->getParameters())) {
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Command/ThemeGenerateCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
 
107 107
             $tenant = reset($tenants);
108 108
             if ($numTenants > 1) {
109
-                $tenantNames = array_map(function ($tenant) {
109
+                $tenantNames = array_map(function($tenant) {
110 110
                     return $tenant->getName();
111 111
                 }, $tenants);
112 112
 
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Twig/StringyExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
     {
65 65
         $stringyClass = new \ReflectionClass('Stringy\Stringy');
66 66
         $methods = $stringyClass->getMethods(\ReflectionMethod::IS_PUBLIC);
67
-        $names = array_map(function ($value) {
67
+        $names = array_map(function($value) {
68 68
             return $value->getName();
69 69
         }, $methods);
70 70
 
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Form/Type/OrganizationCodeChoiceType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
     public function configureOptions(OptionsResolver $resolver)
51 51
     {
52 52
         $resolver
53
-            ->setNormalizer('choices', function () {
53
+            ->setNormalizer('choices', function() {
54 54
                 /** @var OrganizationInterface[] $organizations */
55 55
                 $organizations = $this->organizationRepository->findAvailable();
56 56
                 $choices = [];
Please login to merge, or discard this patch.
src/SWP/Bundle/CoreBundle/Form/Type/ThemeNameChoiceType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     public function configureOptions(OptionsResolver $resolver)
41 41
     {
42 42
         $resolver
43
-            ->setNormalizer('choices', function () {
43
+            ->setNormalizer('choices', function() {
44 44
                 /** @var ThemeInterface[] $themes */
45 45
                 $themes = $this->themeProvider->getCurrentTenantAvailableThemes();
46 46
                 $choices = [];
Please login to merge, or discard this patch.
src/SWP/Bundle/MultiTenancyBundle/Command/CreateTenantCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
         $default = $input->getOption('default');
123 123
         if (!$input->getArgument($name) && !$default) {
124 124
             $question = new Question(sprintf('<question>Please enter %s:</question>', $name));
125
-            $question->setValidator(function ($argument) use ($name) {
125
+            $question->setValidator(function($argument) use ($name) {
126 126
                 if (empty($argument)) {
127 127
                     throw new \RuntimeException(sprintf('The %s can not be empty', $name));
128 128
                 }
Please login to merge, or discard this patch.
src/SWP/Bundle/MultiTenancyBundle/Command/CreateOrganizationCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
 
101 101
         if (!$input->getArgument($name) && !$default) {
102 102
             $question = new Question(sprintf('<question>Please enter %s:</question>', $name));
103
-            $question->setValidator(function ($argument) use ($name) {
103
+            $question->setValidator(function($argument) use ($name) {
104 104
                 if (empty($argument)) {
105 105
                     throw new \RuntimeException(sprintf('The %s can not be empty', $name));
106 106
                 }
Please login to merge, or discard this patch.