Completed
Pull Request — develop (#241)
by ANTHONIUS
07:36
created
module/Settings/src/Settings/Controller/IndexController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         $mvcEvent->setParam('__settings_active_module', $moduleName);
54 54
         
55 55
         $formManager = $this->getServiceLocator()->get('FormElementManager');
56
-        $formName = $moduleName . '/SettingsForm';
56
+        $formName = $moduleName.'/SettingsForm';
57 57
         if (!$formManager->has($formName)) {
58 58
             $formName = "Settings/Form";
59 59
         }
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             $valid   = $form->isValid();
76 76
             $partial = $services->get('viewhelpermanager')->get('partial');
77 77
             $text    = $valid
78
-                     ?  /*@translate*/'Changes successfully saved'
78
+                     ? /*@translate*/'Changes successfully saved'
79 79
                      :  /*@translate*/'Changes could not be saved';
80 80
 
81 81
             $vars = array();
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
             return new JsonModel($vars);
96 96
         }
97 97
 
98
-        $vars['form']=$form;
98
+        $vars['form'] = $form;
99 99
         return $vars;
100 100
     }
101 101
 }
Please login to merge, or discard this patch.
module/Settings/Module.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     public function getConfig()
46 46
     {
47
-        return include __DIR__ . '/config/module.config.php';
47
+        return include __DIR__.'/config/module.config.php';
48 48
     }
49 49
 
50 50
     /**
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         return array(
58 58
             'Zend\Loader\StandardAutoloader' => array(
59 59
                 'namespaces' => array(
60
-                    __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
60
+                    __NAMESPACE__ => __DIR__.'/src/'.__NAMESPACE__,
61 61
                 ),
62 62
             ),
63 63
         );
Please login to merge, or discard this patch.
public/index.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -13,14 +13,14 @@  discard block
 block discarded – undo
13 13
 
14 14
 if (php_sapi_name() == 'cli-server') {
15 15
     $route = parse_url(substr($_SERVER["REQUEST_URI"], 1))["path"];
16
-    if (is_file(__DIR__ . '/' . $route)) {
17
-        if(substr($route, -4) == ".php"){
18
-            require __DIR__ . '/' . $route;     // Include requested script files
16
+    if (is_file(__DIR__.'/'.$route)) {
17
+        if (substr($route, -4) == ".php") {
18
+            require __DIR__.'/'.$route; // Include requested script files
19 19
             exit;
20 20
         }
21
-        return false;           // Serve file as is
21
+        return false; // Serve file as is
22 22
     } else {                    // Fallback to index.php
23
-        $_GET["q"] = $route;    // Try to emulate the behaviour of a .htaccess here.
23
+        $_GET["q"] = $route; // Try to emulate the behaviour of a .htaccess here.
24 24
     }
25 25
 }
26 26
 
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
 } else {
41 41
     echo '<p>Could not initialize autoloading. This happens, if the dependencies are not installed yet.</p>';
42 42
     echo '<p>Please try to install the dependencies via: </p>';
43
-    echo '<code>cd '. realpath('.') .'<br>./install.sh</code>';
44
-    echo '<p>exit at ' . __FILE__ . ' in line ' . __LINE__ .'</p>';
43
+    echo '<code>cd '.realpath('.').'<br>./install.sh</code>';
44
+    echo '<p>exit at '.__FILE__.' in line '.__LINE__.'</p>';
45 45
     exit;
46 46
 }
47 47
 
Please login to merge, or discard this patch.
module/Cv/Module.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     public function getConfig()
46 46
     {
47
-        return include __DIR__ . '/config/module.config.php';
47
+        return include __DIR__.'/config/module.config.php';
48 48
     }
49 49
 
50 50
     /**
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         return array(
58 58
             'Zend\Loader\StandardAutoloader' => array(
59 59
                 'namespaces' => array(
60
-                    __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
60
+                    __NAMESPACE__ => __DIR__.'/src/'.__NAMESPACE__,
61 61
                 ),
62 62
             ),
63 63
         );
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Filter/ChannelPrices.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -73,15 +73,15 @@
 block discarded – undo
73 73
             if ('yawik' == $channelKey) {
74 74
                 $absoluteDiscount = 100;
75 75
             }
76
-            if ($channel instanceof ChannelOptions && $channel->getPrice('base')>0) {
76
+            if ($channel instanceof ChannelOptions && $channel->getPrice('base') > 0) {
77 77
                 $sum += $channel->getPrice('base');
78 78
                 $amount++;
79 79
             }
80 80
         }
81
-        $discount=1-($amount-1)*13.5/100;
82
-        if ($discount>0) {
83
-            $sum= round($sum * $discount, 2);
81
+        $discount = 1 - ($amount - 1) * 13.5 / 100;
82
+        if ($discount > 0) {
83
+            $sum = round($sum * $discount, 2);
84 84
         }
85
-        return $sum-$absoluteDiscount;
85
+        return $sum - $absoluteDiscount;
86 86
     }
87 87
 }
Please login to merge, or discard this patch.
module/Organizations/src/Organizations/Filter/Recipients.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,10 +34,10 @@
 block discarded – undo
34 34
      */
35 35
     public function filter($value)
36 36
     {
37
-        if (!$value instanceof Job){
37
+        if (!$value instanceof Job) {
38 38
 
39 39
         }
40
-        $reciptients=[];
40
+        $reciptients = [];
41 41
 
42 42
         return $reciptients;
43 43
     }
Please login to merge, or discard this patch.
module/Orders/config/module.config.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
                  * for multiple paths.
24 24
                  * example https://github.com/doctrine/DoctrineORMModule
25 25
                  */
26
-                'paths' => array( __DIR__ . '/../src/Entity'),
26
+                'paths' => array(__DIR__.'/../src/Entity'),
27 27
             ),
28 28
         ],
29 29
     ],
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         'translation_file_patterns' => array(
34 34
             array(
35 35
                 'type'     => 'gettext',
36
-                'base_dir' => __DIR__ . '/../language',
36
+                'base_dir' => __DIR__.'/../language',
37 37
                 'pattern'  => '%s.mo',
38 38
             ),
39 39
         ),
@@ -42,11 +42,11 @@  discard block
 block discarded – undo
42 42
 
43 43
     'event_manager' => [
44 44
 
45
-        'Jobs/Events' => [ 'listeners' => [
46
-            'Orders/Listener/CreateJobOrder' => [ \Jobs\Listener\Events\JobEvent::EVENT_JOB_CREATED, true ],
45
+        'Jobs/Events' => ['listeners' => [
46
+            'Orders/Listener/CreateJobOrder' => [\Jobs\Listener\Events\JobEvent::EVENT_JOB_CREATED, true],
47 47
         ]],
48 48
 
49
-        'Jobs/JobContainer/Events' => [ 'listeners' => [
49
+        'Jobs/JobContainer/Events' => ['listeners' => [
50 50
             '\Orders\Form\Listener\DisableJobInvoiceAddress' => 'DisableElements',
51 51
             'Orders\Form\Listener\InjectInvoiceAddressInJobContainer' => \Core\Form\Event\FormEvent::EVENT_INIT,
52 52
             '\Orders\Form\Listener\ValidateJobInvoiceAddress' => 'ValidateJob',
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
             ],
60 60
         ],
61 61
 
62
-        'Core/AdminController/Events' => [ 'listeners' => [
62
+        'Core/AdminController/Events' => ['listeners' => [
63 63
             'Orders/Listener/AdminWidgetProvider' => \Core\Controller\AdminControllerEvent::EVENT_DASHBOARD,
64 64
         ]],
65 65
     ],
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     'view_helper_config' => [
83 83
         'headscript' => [
84 84
             'lang/orders' => [
85
-                [ \Zend\View\Helper\HeadScript::FILE, 'Orders/js/list.index.js', 'PREPEND' ],
85
+                [\Zend\View\Helper\HeadScript::FILE, 'Orders/js/list.index.js', 'PREPEND'],
86 86
                 'js/bootstrap-dialog.min.js'
87 87
             ],
88 88
         ],
Please login to merge, or discard this patch.
module/Orders/src/Form/InvoiceAddressSettingsFieldset.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      * map label of fieldset. You can set the order by using an array [<label>,<priority>]
25 25
      */
26 26
     protected $labelMap = [
27
-        'name'  => [ /*@translate*/ 'Contact Person', -20],
27
+        'name'  => [/*@translate*/ 'Contact Person', -20],
28 28
         'company' => /*@translate*/ 'Company',
29 29
         'street' => /*@translate*/ 'Street',
30 30
         'zipCode' => /*@translate*/ 'Postalcode',
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
                 'attributes' => [
55 55
                     'data-placeholder' => /*@translate*/ 'please select',
56 56
                     'data-allowclear' => 'false',
57
-                    'data-searchbox' => -1,  // hide the search box
57
+                    'data-searchbox' => -1, // hide the search box
58 58
                     'required' => true, // mark label as required
59 59
                 ],
60 60
             ],
Please login to merge, or discard this patch.
module/Auth/src/Auth/Form/SocialProfiles.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 	 */
68 68
 	public function setUseDefaultValidation($bool)
69 69
 	{
70
-		$this->useDefaultValidation = (bool)$bool;
70
+		$this->useDefaultValidation = (bool) $bool;
71 71
 		
72 72
 		return $this;
73 73
 	}
Please login to merge, or discard this patch.