Completed
Push — master ( dc4dd2...16100a )
by Mathias
08:39
created
module/Settings/src/Entity/SettingsContainer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      */
139 139
     public function __get($property)
140 140
     {
141
-        $getter = "get" . ucfirst($property);
141
+        $getter = "get".ucfirst($property);
142 142
         if (method_exists($this, $getter)) {
143 143
             return $this->$getter();
144 144
         }
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     {
160 160
         $this->checkWriteAccess();
161 161
         
162
-        $setter = 'set' . ucfirst($property);
162
+        $setter = 'set'.ucfirst($property);
163 163
         if (method_exists($this, $setter)) {
164 164
             $this->$setter($value);
165 165
             return;
Please login to merge, or discard this patch.
src/Entity/Hydrator/Strategy/DisableElementsCapableFormSettings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     protected function filterArrayStrings($array, $search, $replace)
58 58
     {
59 59
         $return = array();
60
-        foreach ((array)$array as $key => $value) {
60
+        foreach ((array) $array as $key => $value) {
61 61
             $key = str_replace($search, $replace, $key);
62 62
             $value = is_array($value)
63 63
                 ? $this->filterArrayStrings($value, $search, $replace)
Please login to merge, or discard this patch.
module/Settings/src/Entity/Hydrator/SettingsEntityHydrator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
         parent::__construct();
24 24
         $this->addFilter(
25 25
             'ignoreInternalProperties',
26
-            function ($property) {
26
+            function($property) {
27 27
                 return "_" != $property{0};
28 28
             }
29 29
         );
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
             if (!$this->filterComposite->filter($propertyName)) {
44 44
                 continue;
45 45
             }
46
-            $getter = 'get' . ucfirst($propertyName);
46
+            $getter = 'get'.ucfirst($propertyName);
47 47
             $value = method_exists($object, $getter)
48 48
                    ? $object->$getter()
49 49
                    : $property->getValue($object);
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         foreach ($data as $key => $value) {
66 66
             if (isset($reflProperties[$key])) {
67 67
                 $value  = $this->hydrateValue($key, $value);
68
-                $setter = 'set' . ucfirst($key);
68
+                $setter = 'set'.ucfirst($key);
69 69
                 if (method_exists($object, $setter)) {
70 70
                     $object->$setter($value);
71 71
                 } else {
Please login to merge, or discard this patch.
module/Settings/src/Controller/IndexController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
         $mvcEvent->setParam('__settings_active_module', $moduleName);
86 86
         
87 87
         $formManager = $this->formManager;
88
-        $formName = $moduleName . '/SettingsForm';
88
+        $formName = $moduleName.'/SettingsForm';
89 89
         if (!$formManager->has($formName)) {
90 90
             $formName = "Settings/Form";
91 91
         }
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             $valid   = $form->isValid();
109 109
             $partial = $this->viewHelper->get('partial');
110 110
             $text    = $valid
111
-                     ?  /*@translate*/'Changes successfully saved'
111
+                     ? /*@translate*/'Changes successfully saved'
112 112
                      :  /*@translate*/'Changes could not be saved';
113 113
             $this->notification()->success($translator->translate($text));
114 114
 
Please login to merge, or discard this patch.
module/Install/config/module.config.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 	    'factories' => [
26 26
 		    'mvctranslator' => \Zend\Mvc\I18n\TranslatorFactory::class,
27 27
 		    'FilterManager' => \Zend\Filter\FilterPluginManagerFactory::class,
28
-            'Tracy' => [\Core\Service\Tracy::class,'factory'],
28
+            'Tracy' => [\Core\Service\Tracy::class, 'factory'],
29 29
             'Core/Options' => 'Core\Factory\ModuleOptionsFactory',
30 30
         ],
31 31
         'abstract_factories' => [
@@ -95,12 +95,12 @@  discard block
 block discarded – undo
95 95
         'exception_template' => 'error/index',
96 96
         // Map template to files. Speeds up the lookup through the template stack.
97 97
         'template_map' => [
98
-            'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
99
-            'error/index' => __DIR__ . '/../view/error/index.phtml',
98
+            'layout/layout' => __DIR__.'/../view/layout/layout.phtml',
99
+            'error/index' => __DIR__.'/../view/error/index.phtml',
100 100
         ],
101 101
         // Where to look for view templates not mapped above
102 102
         'template_path_stack' => [
103
-            __DIR__ . '/../view',
103
+            __DIR__.'/../view',
104 104
         ],
105 105
     ],
106 106
 
@@ -114,13 +114,13 @@  discard block
 block discarded – undo
114 114
         'translation_file_patterns' => [
115 115
             [
116 116
                 'type' => 'gettext',
117
-                'base_dir' => __DIR__ . '/../language',
117
+                'base_dir' => __DIR__.'/../language',
118 118
                 'pattern' => '%s.mo',
119 119
                 'text_domain' => 'Install',
120 120
             ],
121 121
             [
122 122
                 'type'     => 'phparray',
123
-                'base_dir' => __DIR__ . '/../../Core/language',
123
+                'base_dir' => __DIR__.'/../../Core/language',
124 124
                 'pattern' => 'Zend_Validate.%s.php',
125 125
                 'text_domain' => 'default',
126 126
             ],
Please login to merge, or discard this patch.
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -8,15 +8,15 @@  discard block
 block discarded – undo
8 8
  */
9 9
 
10 10
 return [
11
-	'tracy' => [
12
-		'enabled' => true, // flag whether to load tracy at all
13
-		'mode' => true, // true = production|false = development|null = autodetect|IP address(es) csv/array
14
-		'bar' => false, // bool = enabled|Toggle nette diagnostics bar.
15
-		'strict' => true, // bool = cause immediate death|int = matched against error severity
16
-		'log' => __DIR__.'/../../../var/log/tracy', // path to log directory (this directory keeps error.log, snoozing mailsent file & html exception trace files)
17
-		'email' => null, // in production mode notifies the recipient
18
-		'email_snooze' => 900 // interval for sending email in seconds
19
-	],
11
+    'tracy' => [
12
+        'enabled' => true, // flag whether to load tracy at all
13
+        'mode' => true, // true = production|false = development|null = autodetect|IP address(es) csv/array
14
+        'bar' => false, // bool = enabled|Toggle nette diagnostics bar.
15
+        'strict' => true, // bool = cause immediate death|int = matched against error severity
16
+        'log' => __DIR__.'/../../../var/log/tracy', // path to log directory (this directory keeps error.log, snoozing mailsent file & html exception trace files)
17
+        'email' => null, // in production mode notifies the recipient
18
+        'email_snooze' => 900 // interval for sending email in seconds
19
+    ],
20 20
 
21 21
     'doctrine' => [
22 22
         'driver' => [
@@ -35,9 +35,9 @@  discard block
 block discarded – undo
35 35
         'invokables' => [
36 36
             'Install/Listener/LanguageSetter' => 'Install\Listener\LanguageSetter',
37 37
         ],
38
-	    'factories' => [
39
-		    'mvctranslator' => \Zend\Mvc\I18n\TranslatorFactory::class,
40
-		    'FilterManager' => \Zend\Filter\FilterPluginManagerFactory::class,
38
+        'factories' => [
39
+            'mvctranslator' => \Zend\Mvc\I18n\TranslatorFactory::class,
40
+            'FilterManager' => \Zend\Filter\FilterPluginManagerFactory::class,
41 41
             'Tracy' => [\Core\Service\Tracy::class,'factory'],
42 42
             'Core/Options' => 'Core\Factory\ModuleOptionsFactory',
43 43
         ],
@@ -63,9 +63,9 @@  discard block
 block discarded – undo
63 63
     ],
64 64
 
65 65
     'controllers' => [
66
-	    'abstract_factories' => [
67
-	    	\Install\Factory\Controller\LazyControllerFactory::class
68
-	    ],
66
+        'abstract_factories' => [
67
+            \Install\Factory\Controller\LazyControllerFactory::class
68
+        ],
69 69
     ],
70 70
 
71 71
     'controller_plugins' => [
Please login to merge, or discard this patch.
module/Install/src/Factory/Controller/LazyControllerFactory.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
                             $parameter_instances[] = $container->get($cn);
55 55
                         } catch (\Exception $x) {
56 56
                             echo __CLASS__
57
-                                 . " couldn't create an instance of $cn to satisfy the constructor for $requestedName.";
57
+                                    . " couldn't create an instance of $cn to satisfy the constructor for $requestedName.";
58 58
                             exit;
59 59
                         }
60 60
                     } else {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@
 block discarded – undo
33 33
     
34 34
     public function canCreate(ContainerInterface $container, $requestedName)
35 35
     {
36
-        list($module, ) = explode('\\', __NAMESPACE__, 2);
37
-        return strstr($requestedName, $module . '\Controller') !== false;
36
+        list($module,) = explode('\\', __NAMESPACE__, 2);
37
+        return strstr($requestedName, $module.'\Controller') !== false;
38 38
     }
39 39
     
40 40
     public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
Please login to merge, or discard this patch.
module/Install/src/Controller/Index.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,8 @@
 block discarded – undo
61 61
             $routeMatch->setParam('action', $p);
62 62
             $response = $this->getResponse();
63 63
             $response->getHeaders()
64
-                     ->addHeaderLine('Content-Type', 'application/json')
65
-                     ->addHeaderLine('Content-Encoding', 'utf8');
64
+                        ->addHeaderLine('Content-Type', 'application/json')
65
+                        ->addHeaderLine('Content-Encoding', 'utf8');
66 66
         }
67 67
     }
68 68
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
162 162
         parent::attachDefaultListeners();
163 163
     
164 164
         $events = $this->getEventManager();
165
-        $events->attach(MvcEvent::EVENT_DISPATCH, array( $this, 'preDispatch' ), 100);
165
+        $events->attach(MvcEvent::EVENT_DISPATCH, array($this, 'preDispatch'), 100);
166 166
     }
167 167
 
168 168
     /**
Please login to merge, or discard this patch.
module/Organizations/src/Module.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
     public function getConfig()
29 29
     {
30
-        return ModuleConfigLoader::load(__DIR__ . '/../config');
30
+        return ModuleConfigLoader::load(__DIR__.'/../config');
31 31
     }
32 32
 
33 33
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         $createJobListener->attachShared($sharedManager);
42 42
 
43 43
         if ($e->getRequest() instanceof \Zend\Http\Request) {
44
-            $eventManager->attach(MvcEvent::EVENT_DISPATCH_ERROR, function (MvcEvent $event) {
44
+            $eventManager->attach(MvcEvent::EVENT_DISPATCH_ERROR, function(MvcEvent $event) {
45 45
                 $serviceManager = $event->getApplication()
46 46
                     ->getServiceManager();
47 47
                 $options = $serviceManager->get('Organizations/ImageFileCacheOptions');
Please login to merge, or discard this patch.
module/Core/src/View/Helper/ContactLink.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
                        : $email;
51 51
             
52 52
             $attributesStr = $attributes
53
-                       ? (' ' . $this->createAttributesString($attributes))
53
+                       ? (' '.$this->createAttributesString($attributes))
54 54
                        : '';
55 55
             
56 56
             return sprintf('<a%s href="mailto:%s">%s</a>', $attributesStr, $email, $label);
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         $attr       = array();
70 70
         
71 71
         foreach ($attributes as $name => $value) {
72
-            $attr[] = $escape($name) . (strlen($value) ? ('="' . $escapeAttr($value) . '"') : '');
72
+            $attr[] = $escape($name).(strlen($value) ? ('="'.$escapeAttr($value).'"') : '');
73 73
         }
74 74
         
75 75
         return implode(' ', $attr);
Please login to merge, or discard this patch.