Completed
Push — develop ( a5396a...45a0ea )
by Mathias
05:23
created
module/Core/src/Core/Form/View/Helper/SearchForm.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      * @param array $colMap
36 36
      * @return Form|string
37 37
      */
38
-    public function __invoke(FormInterface $form = null, $colMap=null)
38
+    public function __invoke(FormInterface $form = null, $colMap = null)
39 39
     {
40 40
         if (!$form) {
41 41
             return $this;
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         return $this->render($form, $colMap);
45 45
     }
46 46
 
47
-    public function render(FormInterface $form, $colMap=null, $buttonsSpan = null)
47
+    public function render(FormInterface $form, $colMap = null, $buttonsSpan = null)
48 48
     {
49 49
         $headscript = $this->getView()->plugin('headscript');
50 50
         $basepath   = $this->getView()->plugin('basepath');
@@ -61,14 +61,14 @@  discard block
 block discarded – undo
61 61
         $form->prepare();
62 62
 
63 63
         if ($form instanceOf ViewPartialProviderInterface) {
64
-            return $this->getView()->partial($form->getViewPartial(), [ 'element' => $form, 'colMap' => $colMap, 'buttonsSpan' => $buttonsSpan ]);
64
+            return $this->getView()->partial($form->getViewPartial(), ['element' => $form, 'colMap' => $colMap, 'buttonsSpan' => $buttonsSpan]);
65 65
         }
66 66
 
67 67
         $content = $this->renderElements($form, $colMap, $buttonsSpan);
68 68
 
69 69
         return $this->openTag($form)
70 70
              . '<div class="row" style="padding: 0 15px;">'
71
-             . $content . '</div>' . $this->closeTag();
71
+             . $content.'</div>'.$this->closeTag();
72 72
 
73 73
     }
74 74
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
             $button->removeAttribute('name');
82 82
             $attrs = $helper->createAttributesString($button->getAttributes());
83 83
 
84
-            $content.= '<button ' . $attrs . '>'
84
+            $content .= '<button '.$attrs.'>'
85 85
                        . $this->getTranslator()->translate($button->getLabel(), $this->getTranslatorTextDomain())
86 86
                        . '</button>';
87 87
         }
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     public function renderElements($form, $colMap = null, $buttonsSpan = null)
93 93
     {
94 94
         if ($form instanceOf ViewPartialProviderInterface) {
95
-            return $this->getView()->partial($form->getViewPartial(), [ 'element' => $form, 'colMap' => $colMap, 'buttonsSpan' => $buttonsSpan ]);
95
+            return $this->getView()->partial($form->getViewPartial(), ['element' => $form, 'colMap' => $colMap, 'buttonsSpan' => $buttonsSpan]);
96 96
         }
97 97
 
98 98
         if (null === $colMap) {
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         }
101 101
 
102 102
         $formElement = $this->getView()->plugin('formElement');
103
-        $content = ''; $buttonsRendered = false; $i=0;
103
+        $content = ''; $buttonsRendered = false; $i = 0;
104 104
         foreach ($form as $element) {
105 105
 
106 106
             if ($element instanceOf Hidden) {
@@ -119,14 +119,14 @@  discard block
 block discarded – undo
119 119
             }
120 120
 
121 121
             if ($element->getName() == $form->getButtonElement()) {
122
-                $content.='<div class="input-group col-md-' . $cols . '">'
122
+                $content .= '<div class="input-group col-md-'.$cols.'">'
123 123
                               . $formElement($element)
124 124
                               . '<div class="input-group-btn search-form-buttons" style="width: 1px;">'
125
-                              . $this->renderButtons($form->getButtons()) . '</div>'
125
+                              . $this->renderButtons($form->getButtons()).'</div>'
126 126
                               . '</div>';
127 127
                 $buttonsRendered = true;
128 128
             } else {
129
-                $content .= '<div class="input-group col-md-' . $cols . '">'
129
+                $content .= '<div class="input-group col-md-'.$cols.'">'
130 130
                           . $formElement($element)
131 131
                           . '</div>';
132 132
             }
@@ -138,8 +138,8 @@  discard block
 block discarded – undo
138 138
             if (null === $buttonsSpan) {
139 139
                 $buttonsSpan = $form->getOption('buttons_span') ?: 12;
140 140
             }
141
-            $content .= '<div class="input-group search-form-buttons col-md-' . $buttonsSpan . ' text-right">'
142
-                      . '<div class="btn-group">' . $this->renderButtons($form->getButtons()) .'</div></div>';
141
+            $content .= '<div class="input-group search-form-buttons col-md-'.$buttonsSpan.' text-right">'
142
+                      . '<div class="btn-group">'.$this->renderButtons($form->getButtons()).'</div></div>';
143 143
         }
144 144
 
145 145
         return $content;
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Listener/Events/JobEvent.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,13 +33,13 @@  discard block
 block discarded – undo
33 33
      * Event is fired when a users has created a new job opening and accepted the
34 34
      * terms and conditions
35 35
      */
36
-    const EVENT_JOB_CREATED   = 'job.created';
36
+    const EVENT_JOB_CREATED = 'job.created';
37 37
 
38 38
     /**
39 39
      * Event is fired when the owner of the YAWIK installation has accepted the job
40 40
      * opening
41 41
      */
42
-    const EVENT_JOB_ACCEPTED   = 'job.accepted';
42
+    const EVENT_JOB_ACCEPTED = 'job.accepted';
43 43
 
44 44
     /**
45 45
      * Event is fired, when the owner of the YAWIK installation has rejected the job
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     /**
56 56
      * get all available names for publishing
57 57
      */
58
-    const PORTAL_AVAIL_NAME    = 'portal.availname';
58
+    const PORTAL_AVAIL_NAME = 'portal.availname';
59 59
 
60 60
     /**
61 61
      * portals to be published
Please login to merge, or discard this patch.
module/Core/src/Core/Entity/Tree/Node.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@
 block discarded – undo
153 153
 
154 154
     public function getValueWithParents($withRoot = false, $useNames = false)
155 155
     {
156
-        $parts = [ ($useNames ? $this->getName() : $this->getValue()) ];
156
+        $parts = [($useNames ? $this->getName() : $this->getValue())];
157 157
         $item = $this;
158 158
 
159 159
         while ($item = $item->getParent()) {
Please login to merge, or discard this patch.
module/Core/src/Core/Form/Hydrator/Strategy/TreeSelectStrategy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -222,7 +222,7 @@
 block discarded – undo
222 222
      */
223 223
     private function findLeaf(NodeInterface $leaf, $value)
224 224
     {
225
-        $parts = is_array($value) ? $value : explode($this->shouldUseNames() ? ' | ': '-', $value);
225
+        $parts = is_array($value) ? $value : explode($this->shouldUseNames() ? ' | ' : '-', $value);
226 226
         $value = array_shift($parts);
227 227
 
228 228
         /* @var NodeInterface $item */
Please login to merge, or discard this patch.
module/Core/src/Core/Entity/AbstractLocation.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -90,14 +90,14 @@  discard block
 block discarded – undo
90 90
         
91 91
         $str = '';
92 92
         if ($street) { $str .= $street; if (!$number) { $str .= ', '; } }
93
-        if ($number) { $str .= ' ' . $number . ', '; }
94
-        if ($postalCode) { $str .= $postalCode . ' '; }
93
+        if ($number) { $str .= ' '.$number.', '; }
94
+        if ($postalCode) { $str .= $postalCode.' '; }
95 95
         if ($city) { $str .= $city; }
96
-        if ($region) { $str .= ', ' . $region; }
97
-        if ($country) { $str .= ', ' . $country; }
96
+        if ($region) { $str .= ', '.$region; }
97
+        if ($country) { $str .= ', '.$country; }
98 98
         if ($coords) {
99 99
             $coords = $coords->getCoordinates();
100
-            $str .= ' ( ' . join(', ', $coords) . ' )';
100
+            $str .= ' ( '.join(', ', $coords).' )';
101 101
         }
102 102
         
103 103
         return $str;
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
             if (!$value) { continue; }
139 139
 
140 140
             if ('coordinates' == $key) {
141
-                $class = '\\Geo\\Entity\\Geometry\\' . $value['type'];
141
+                $class = '\\Geo\\Entity\\Geometry\\'.$value['type'];
142 142
                 $value = new $class($value['coordinates']);
143 143
             }
144 144
 
Please login to merge, or discard this patch.
module/Core/src/Core/Entity/SnapshotTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
             : SnapshotMeta::class;
38 38
 
39 39
         $this->snapshotMeta = new $snapshotMetaClass();
40
-        $this->snapshotEntity       = $source;
40
+        $this->snapshotEntity = $source;
41 41
     }
42 42
 
43 43
     public function getOriginalEntity()
Please login to merge, or discard this patch.
module/Cv/src/Cv/Factory/Form/LanguageSkillCollectionFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 	 * @return \Core\Form\CollectionContainer
20 20
 	 */
21 21
     public function __invoke(ContainerInterface $container, $requestedName, array $options = null) {
22
-	    $collectionContainer = new CollectionContainer( 'Cv/LanguageSkillForm', new Language() );
22
+	    $collectionContainer = new CollectionContainer('Cv/LanguageSkillForm', new Language());
23 23
 	    $collectionContainer->setLabel(/*@translate */ 'Additional Language Skills' );
24 24
 	
25 25
 	    return $collectionContainer;
Please login to merge, or discard this patch.
module/Behat/src/SummaryFormContext.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
 		$name = Inflector::camelize($name);
40 40
 		$type = $this->elementMap[$name];
41 41
 		$locator = $type.' .sf-summary .sf-controls button';
42
-		$element = $this->minkContext->getSession()->getPage()->find('css',$locator);
43
-		if(!$element){
42
+		$element = $this->minkContext->getSession()->getPage()->find('css', $locator);
43
+		if (!$element) {
44 44
 			throw new \Exception('No element found with this locator: "'.$locator.'"');
45 45
 		}
46 46
 		$element->click();
@@ -70,12 +70,12 @@  discard block
 block discarded – undo
70 70
 	{
71 71
 		$type = Inflector::camelize($type);
72 72
 		$method = 'iSave'.$type;
73
-		if(method_exists($this,$method)){
74
-			call_user_func([$this,$method]);
75
-		}else{
73
+		if (method_exists($this, $method)) {
74
+			call_user_func([$this, $method]);
75
+		} else {
76 76
 			$locator = $this->elementMap[$type].'-buttons-submit';
77 77
 			$this->coreContext->scrollIntoView($locator);
78
-			$element = $this->minkContext->getSession()->getPage()->find('css',$locator);
78
+			$element = $this->minkContext->getSession()->getPage()->find('css', $locator);
79 79
 			$element->click();
80 80
 		}
81 81
 	}
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 	{
85 85
 		$locator = '#nameForm-buttons-submit';
86 86
 		$this->coreContext->scrollIntoView($locator);
87
-		$element = $this->minkContext->getSession()->getPage()->find('css',$locator);
87
+		$element = $this->minkContext->getSession()->getPage()->find('css', $locator);
88 88
 		$element->click();
89 89
 	}
90 90
 	
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 	public function iSaveWorkflow()
95 95
 	{
96 96
 		$locator = '#workflowSettings-buttons-submit';
97
-		$element = $this->minkContext->getSession()->getPage()->find('css',$locator);
97
+		$element = $this->minkContext->getSession()->getPage()->find('css', $locator);
98 98
 		$element->click();
99 99
 	}
100 100
 	
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 	{
103 103
 		$locator = '#locationForm-buttons-submit';
104 104
 		$this->coreContext->scrollIntoView($locator);
105
-		$element = $this->minkContext->getSession()->getPage()->find('css',$locator);
105
+		$element = $this->minkContext->getSession()->getPage()->find('css', $locator);
106 106
 		$element->click();
107 107
 	}
108 108
 	
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 	{
112 112
 		$locator = '#general-classifications-buttons-submit';
113 113
 		$this->coreContext->scrollIntoView($locator);
114
-		$element = $this->minkContext->getSession()->getPage()->find('css',$locator);
114
+		$element = $this->minkContext->getSession()->getPage()->find('css', $locator);
115 115
 		$element->click();
116 116
 	}
117 117
 	
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 	{
120 120
 		$locator = '#general-customerNote-buttons-submit';
121 121
 		$this->coreContext->scrollIntoView('#sf-general-customerNote');
122
-		$element = $this->minkContext->getSession()->getPage()->find('css',$locator);
122
+		$element = $this->minkContext->getSession()->getPage()->find('css', $locator);
123 123
 		$element->click();
124 124
 	}
125 125
 	
Please login to merge, or discard this patch.
public/index.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -11,23 +11,23 @@  discard block
 block discarded – undo
11 11
 
12 12
 date_default_timezone_set('Europe/Berlin');
13 13
 
14
-if(!version_compare(PHP_VERSION, '5.6.0', 'ge')){
15
-    echo sprintf('<p>Sorry, YAWIK requires at least PHP 5.6.0 to run, but this server currently provides PHP %s</p>',PHP_VERSION);
14
+if (!version_compare(PHP_VERSION, '5.6.0', 'ge')) {
15
+    echo sprintf('<p>Sorry, YAWIK requires at least PHP 5.6.0 to run, but this server currently provides PHP %s</p>', PHP_VERSION);
16 16
     echo '<p>Please ask your servers\' administrator to install the proper PHP version.</p>';
17 17
     exit;
18 18
 }
19 19
 
20 20
 if (php_sapi_name() == 'cli-server') {
21 21
     $parseUrl = parse_url(substr($_SERVER["REQUEST_URI"], 1));
22
-    $route = isset($parseUrl['path']) ? $parseUrl['path']:null;
23
-    if (is_file(__DIR__ . '/' . $route)) {
24
-        if(substr($route, -4) == ".php"){
25
-            require __DIR__ . '/' . $route;     // Include requested script files
22
+    $route = isset($parseUrl['path']) ? $parseUrl['path'] : null;
23
+    if (is_file(__DIR__.'/'.$route)) {
24
+        if (substr($route, -4) == ".php") {
25
+            require __DIR__.'/'.$route; // Include requested script files
26 26
             exit;
27 27
         }
28
-        return false;           // Serve file as is
28
+        return false; // Serve file as is
29 29
     } else {                    // Fallback to index.php
30
-        $_GET["q"] = $route;    // Try to emulate the behaviour of a .htaccess here.
30
+        $_GET["q"] = $route; // Try to emulate the behaviour of a .htaccess here.
31 31
     }
32 32
 }
33 33
 
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
 } else {
48 48
     echo '<p>Could not initialize autoloading. This happens, if the dependencies are not installed yet.</p>';
49 49
     echo '<p>Please try to install the dependencies via: </p>';
50
-    echo '<code>cd '. realpath('.') .'<br>./install.sh</code>';
51
-    echo '<p>exit at ' . __FILE__ . ' in line ' . __LINE__ .'</p>';
50
+    echo '<code>cd '.realpath('.').'<br>./install.sh</code>';
51
+    echo '<p>exit at '.__FILE__.' in line '.__LINE__.'</p>';
52 52
     exit;
53 53
 }
54 54
 
Please login to merge, or discard this patch.