Completed
Pull Request — master (#3788)
by Craig
01:31
created
src/lib/Zikula/Bundle/CoreInstallerBundle/Stage/LocaleStage.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
     public function __construct(ContainerInterface $container)
46 46
     {
47 47
         $this->container = $container;
48
-        $this->yamlManager = new YamlDumper($this->container->get('kernel')->getRootDir() .'/config', 'custom_parameters.yml', 'parameters.yml');
48
+        $this->yamlManager = new YamlDumper($this->container->get('kernel')->getRootDir() . '/config', 'custom_parameters.yml', 'parameters.yml');
49 49
         $this->installedLocales = $container->get('zikula_settings_module.locale_api')->getSupportedLocales();
50 50
         $this->matchedLocale = $container->get('zikula_settings_module.locale_api')->getBrowserLocale();
51 51
     }
Please login to merge, or discard this patch.
src/lib/Zikula/Bundle/CoreInstallerBundle/Command/UpgradeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
         $io->newLine();
119 119
 
120 120
         // write the parameters to custom_parameters.yml
121
-        $yamlManager = new YamlDumper($this->getContainer()->get('kernel')->getRootDir() .'/config', 'custom_parameters.yml');
121
+        $yamlManager = new YamlDumper($this->getContainer()->get('kernel')->getRootDir() . '/config', 'custom_parameters.yml');
122 122
         $params = array_merge($yamlManager->getParameters(), $settings);
123 123
         $yamlManager->setParameters($params);
124 124
 
Please login to merge, or discard this patch.
src/lib/Zikula/Common/ClassProperties.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
         }
55 55
 
56 56
         foreach ($properties as $k => $v) {
57
-            $lookup = 'set'.strtolower($k);
57
+            $lookup = 'set' . strtolower($k);
58 58
             if (isset($methodMap[$lookup])) {
59 59
                 $reflectionMethod = new \ReflectionMethod($className, $methodMap[$lookup]);
60 60
                 $reflectionMethod->invoke($object, $v);
Please login to merge, or discard this patch.
src/lib/Zikula/Bundle/CoreBundle/Translation/ZikulaJsFileExtractor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         preg_match_all($argumentsRegex, file_get_contents($file), $singularMatches);
46 46
         foreach ($singularMatches[2] as $string) {
47 47
             $message = new Message($string, self::JAVASCRIPT_DOMAIN);
48
-            $message->addSource(new FileSource((string) $file));
48
+            $message->addSource(new FileSource((string)$file));
49 49
             $catalogue->add($message);
50 50
         }
51 51
         // plural type
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         foreach ($pluralMatches[2] as $key => $singularString) {
55 55
             $fullString = $singularString . '|' . $pluralMatches[4][$key];
56 56
             $message = new Message($fullString, self::JAVASCRIPT_DOMAIN);
57
-            $message->addSource(new FileSource((string) $file));
57
+            $message->addSource(new FileSource((string)$file));
58 58
             $catalogue->add($message);
59 59
         }
60 60
     }
Please login to merge, or discard this patch.
src/system/MenuModule/Controller/MenuController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,10 +75,10 @@
 block discarded – undo
75 75
             [
76 76
                 'decorate' => true,
77 77
                 'html' => true,
78
-                'childOpen' => function ($node) {
78
+                'childOpen' => function($node) {
79 79
                     return '<li class="jstree-open" id="' . $this->domTreeNodePrefix . $node['id'] . '">';
80 80
                 },
81
-                'nodeDecorator' => function ($node) {
81
+                'nodeDecorator' => function($node) {
82 82
                     return '<a href="#">' . $node['title'] . ' (' . $node['id'] . ')</a>';
83 83
                 }
84 84
             ]
Please login to merge, or discard this patch.
src/system/SearchModule/DependencyInjection/ZikulaSearchExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      */
27 27
     public function load(array $configs, ContainerBuilder $container)
28 28
     {
29
-        $loader = new YamlFileLoader($container, new FileLocator(realpath(__DIR__.'/../Resources/config')));
29
+        $loader = new YamlFileLoader($container, new FileLocator(realpath(__DIR__ . '/../Resources/config')));
30 30
 
31 31
         $loader->load('services.yml');
32 32
         $loader->load('doctrine.yml');
Please login to merge, or discard this patch.
src/system/SearchModule/Block/SearchBlock.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
         }
96 96
         // remove disabled
97 97
         foreach ($searchModules as $displayName => $moduleName) {
98
-            if ((bool) $this->getVar('disable_' . $moduleName, false)) {
98
+            if ((bool)$this->getVar('disable_' . $moduleName, false)) {
99 99
                 unset($searchModules[$displayName]);
100 100
             }
101 101
         }
Please login to merge, or discard this patch.
src/system/RoutesModule/Form/Type/Base/AbstractRouteType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -413,7 +413,7 @@
 block discarded – undo
413 413
             ->setDefaults([
414 414
                 // define class for underlying data (required for embedding forms)
415 415
                 'data_class' => 'Zikula\RoutesModule\Entity\RouteEntity',
416
-                'empty_data' => function (FormInterface $form) {
416
+                'empty_data' => function(FormInterface $form) {
417 417
                     return $this->entityFactory->createRoute();
418 418
                 },
419 419
                 'error_mapping' => [
Please login to merge, or discard this patch.
src/system/RoutesModule/Helper/Base/AbstractWorkflowHelper.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -93,31 +93,31 @@
 block discarded – undo
93 93
     }
94 94
 
95 95
     /**
96
-      * This method returns a list of possible object states.
97
-      *
98
-      * @return array List of collected state information
99
-      */
100
-     public function getObjectStates()
101
-     {
102
-         $states = [];
103
-         $states[] = [
104
-             'value' => 'initial',
105
-             'text' => $this->translator->__('Initial'),
106
-             'ui' => 'danger'
107
-         ];
108
-         $states[] = [
109
-             'value' => 'approved',
110
-             'text' => $this->translator->__('Approved'),
111
-             'ui' => 'success'
112
-         ];
113
-         $states[] = [
114
-             'value' => 'deleted',
115
-             'text' => $this->translator->__('Deleted'),
116
-             'ui' => 'danger'
117
-         ];
96
+     * This method returns a list of possible object states.
97
+     *
98
+     * @return array List of collected state information
99
+     */
100
+        public function getObjectStates()
101
+        {
102
+            $states = [];
103
+            $states[] = [
104
+                'value' => 'initial',
105
+                'text' => $this->translator->__('Initial'),
106
+                'ui' => 'danger'
107
+            ];
108
+            $states[] = [
109
+                'value' => 'approved',
110
+                'text' => $this->translator->__('Approved'),
111
+                'ui' => 'success'
112
+            ];
113
+            $states[] = [
114
+                'value' => 'deleted',
115
+                'text' => $this->translator->__('Deleted'),
116
+                'ui' => 'danger'
117
+            ];
118 118
     
119
-         return $states;
120
-     }
119
+            return $states;
120
+        }
121 121
     
122 122
     /**
123 123
      * This method returns information about a certain state.
Please login to merge, or discard this patch.