Completed
Push — master ( 309357...7ad46f )
by Andreas
18:00
created
lib/net/nehmer/blog/handler/create.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,10 +39,10 @@
 block discarded – undo
39 39
 
40 40
         $schema_name = $args[0];
41 41
         $schemadb = $data['schemadb'];
42
-        if (   $this->_config->get('simple_name_handling')
42
+        if ($this->_config->get('simple_name_handling')
43 43
             && !midcom::get()->auth->can_user_do('midcom:urlname')) {
44 44
             foreach ($schemadb->all() as $schema) {
45
-                $field =& $schema->get_field('name');
45
+                $field = & $schema->get_field('name');
46 46
                 $field['readonly'] = true;
47 47
             }
48 48
         }
Please login to merge, or discard this patch.
src/midcom/datamanager/extension/type/tinymce.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     {
34 34
         parent::configureOptions($resolver);
35 35
 
36
-        $map_attr = function (Options $options, $value) {
36
+        $map_attr = function(Options $options, $value) {
37 37
             if ($value === null) {
38 38
                 $value = [];
39 39
             }
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
             return $value;
44 44
         };
45 45
 
46
-        $get_config = function (Options $options, $value) {
46
+        $get_config = function(Options $options, $value) {
47 47
             return \midcom_baseclasses_components_configuration::get('midcom.datamanager', 'config');
48 48
         };
49 49
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
             'config' => $get_config
53 53
         ]);
54 54
 
55
-        $resolver->setNormalizer('widget_config', function (Options $options, $value) {
55
+        $resolver->setNormalizer('widget_config', function(Options $options, $value) {
56 56
             $widget_defaults = [
57 57
                 'mode' => 'exact',
58 58
                 'theme' => $options['config']->get('tinymce_default_theme'),
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
             ];
63 63
             return helper::resolve_options($widget_defaults, $value);
64 64
         });
65
-        $resolver->setNormalizer('type_config', function (Options $options, $value) {
65
+        $resolver->setNormalizer('type_config', function(Options $options, $value) {
66 66
             $type_defaults = [
67 67
 
68 68
             ];
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
             'elements' => $view->vars['id'],
96 96
             'local_config' => $options['widget_config']['local_config'],
97 97
             'language' => midcom::get()->i18n->get_current_language(),
98
-            'img' => ($options['widget_config']['use_imagepopup'])? $this->_get_image_popup($form) : '',
98
+            'img' => ($options['widget_config']['use_imagepopup']) ? $this->_get_image_popup($form) : '',
99 99
         ];
100 100
         $snippet = $this->_get_snippet($tiny_options);
101 101
         $view->vars['tinymce_snippet'] = $snippet;
Please login to merge, or discard this patch.
src/midcom/datamanager/extension/type/codemirror.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     {
34 34
         parent::configureOptions($resolver);
35 35
 
36
-        $map_attr = function (Options $options, $value) {
36
+        $map_attr = function(Options $options, $value) {
37 37
             if ($value === null) {
38 38
                 $value = [];
39 39
             }
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
             return $value;
44 44
         };
45 45
 
46
-        $get_config = function (Options $options, $value) {
46
+        $get_config = function(Options $options, $value) {
47 47
             return \midcom_baseclasses_components_configuration::get('midcom.datamanager', 'config');
48 48
         };
49 49
 
@@ -52,20 +52,20 @@  discard block
 block discarded – undo
52 52
             'config' => $get_config
53 53
         ]);
54 54
 
55
-        $resolver->setNormalizer('widget_config', function (Options $options, $value) {
55
+        $resolver->setNormalizer('widget_config', function(Options $options, $value) {
56 56
             $widget_defaults = [
57 57
                 'enabled' => true,
58 58
                 'language' => 'php',
59 59
             ];
60 60
             return helper::resolve_options($widget_defaults, $value);
61 61
         });
62
-        $resolver->setNormalizer('type_config', function (Options $options, $value) {
62
+        $resolver->setNormalizer('type_config', function(Options $options, $value) {
63 63
             $type_defaults = [
64 64
                 'modes' => ['xml', 'javascript', 'css', 'clike', 'php'],
65 65
             ];
66 66
             return helper::resolve_options($type_defaults, $value);
67 67
         });
68
-        $resolver->setNormalizer('constraints', function (Options $options, $value) {
68
+        $resolver->setNormalizer('constraints', function(Options $options, $value) {
69 69
             if ($options['dm2_type'] == 'php') {
70 70
                 $value[] = new php;
71 71
             }
Please login to merge, or discard this patch.
lib/midcom/style/midcom_datamanager_unlock.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,8 @@
 block discarded – undo
7 7
 try {
8 8
     $person = new midcom_db_person($metadata->locker);
9 9
     $name = $person->name;
10
-} catch (midcom_error $e) {
10
+}
11
+catch (midcom_error $e) {
11 12
     $name = $l10n_midcom->get('unknown user');
12 13
     $e->log();
13 14
 }
Please login to merge, or discard this patch.
src/midcom/datamanager/controller.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,13 +58,13 @@
 block discarded – undo
58 58
             }
59 59
         } elseif (!$this->form->isSubmitted()) {
60 60
             $this->form->handleRequest();
61
-            if (   $this->form->isSubmitted()
61
+            if ($this->form->isSubmitted()
62 62
                 && $button = $this->form->getClickedButton()) {
63 63
                 $operation = $button->getConfig()->getOption('operation');
64 64
             }
65 65
         }
66 66
 
67
-        if (   $operation == self::SAVE
67
+        if ($operation == self::SAVE
68 68
             && !$this->form->isValid()) {
69 69
             $operation = self::EDIT;
70 70
         }
Please login to merge, or discard this patch.
src/midcom/datamanager/extension/type/markdown.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     {
28 28
         parent::configureOptions($resolver);
29 29
 
30
-        $map_attr = function (Options $options, $value) {
30
+        $map_attr = function(Options $options, $value) {
31 31
             if ($value === null) {
32 32
                 $value = [];
33 33
             }
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
             'attr' => $map_attr,
42 42
         ]);
43 43
 
44
-        $resolver->setNormalizer('type_config', function (Options $options, $value) {
44
+        $resolver->setNormalizer('type_config', function(Options $options, $value) {
45 45
             $type_defaults = [
46 46
                 'output_mode' => 'html',
47 47
                 'specialchars_quotes' => ENT_QUOTES,
Please login to merge, or discard this patch.
lib/net/nemein/wiki/style/view-wikipage-raw.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,6 +7,6 @@
 block discarded – undo
7 7
     <?php
8 8
 
9 9
 } else {
10
-    echo "<p class=\"stub\">" . $data['l10n']->get('this page is stub')."</p>";
10
+    echo "<p class=\"stub\">" . $data['l10n']->get('this page is stub') . "</p>";
11 11
 }
12 12
 ?>
13 13
\ No newline at end of file
Please login to merge, or discard this patch.
lib/net/nemein/wiki/style/view-wikipage-whatlinks.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,8 @@
 block discarded – undo
12 12
     foreach ($data['wikilinks'] as $link) {
13 13
         try {
14 14
             $page = new net_nemein_wiki_wikipage($link->frompage);
15
-        } catch (midcom_error $e) {
15
+        }
16
+        catch (midcom_error $e) {
16 17
             $e->log();
17 18
             continue;
18 19
         }
Please login to merge, or discard this patch.
lib/net/nemein/wiki/style/view-latest-item.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     </td>
23 23
     <td class="revisor">
24 24
         <?php
25
-        if (   $history['user']
25
+        if ($history['user']
26 26
             && $user = midcom::get()->auth->get_user($history['user'])) {
27 27
             $person_label = org_openpsa_widgets_contact::get($user->guid)->show_inline();
28 28
             echo "                    {$person_label}\n";
Please login to merge, or discard this patch.