@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @license MIT |
|
7 | - * @copyright 2013-2015 Cross Solution <http://cross-solution.de> |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @license MIT |
|
7 | + * @copyright 2013-2015 Cross Solution <http://cross-solution.de> |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** */ |
11 | 11 | namespace Settings\Form\Element; |
@@ -235,7 +235,7 @@ |
||
235 | 235 | $elementName = $prefix . '[' . $element->getName() . ']'; |
236 | 236 | $options = $element->getOption('disable_capable'); |
237 | 237 | $boxOptions = array( |
238 | - 'long_label' => isset($options['label']) ? $options['label'] : ($element->getLabel() ? : $name), |
|
238 | + 'long_label' => isset($options['label']) ? $options['label'] : ($element->getLabel() ?: $name), |
|
239 | 239 | 'description' => isset($options['description']) ? $options['description'] |
240 | 240 | : 'Toggle availability of this element in the form.', |
241 | 241 | ); |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @license MIT |
|
7 | - * @copyright 2013-2015 Cross Solution <http://cross-solution.de> |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @license MIT |
|
7 | + * @copyright 2013-2015 Cross Solution <http://cross-solution.de> |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** */ |
11 | 11 | namespace Settings\Form\Filter; |
@@ -102,7 +102,7 @@ |
||
102 | 102 | $fieldset->setLabel(ucfirst($label)); |
103 | 103 | } |
104 | 104 | $fieldset->setName($name) |
105 | - ->setObject($child); |
|
105 | + ->setObject($child); |
|
106 | 106 | |
107 | 107 | |
108 | 108 | $this->add($fieldset); |
@@ -77,7 +77,7 @@ |
||
77 | 77 | ), |
78 | 78 | ); |
79 | 79 | if (is_bool($value)) { |
80 | - $input['type']= 'Checkbox'; |
|
80 | + $input['type'] = 'Checkbox'; |
|
81 | 81 | $input['attributes']['checked'] = $value; |
82 | 82 | } else { |
83 | 83 | $input['attributes']['value'] = $value; |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @license MIT |
|
7 | - * @copyright 2013-2015 Cross Solution <http://cross-solution.de> |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @license MIT |
|
7 | + * @copyright 2013-2015 Cross Solution <http://cross-solution.de> |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** */ |
11 | 11 | namespace Settings\Form\View\Helper; |
@@ -37,8 +37,8 @@ discard block |
||
37 | 37 | $headscript->appendFile($basepath('Settings/js/forms.decfs.js')); |
38 | 38 | |
39 | 39 | return '<ul class="disable-elements-list" id="' . $element->getAttribute('id') . '-list"' . '>' |
40 | - . $this->renderCheckboxes($element->getCheckboxes()) |
|
41 | - . '</ul>'; |
|
40 | + . $this->renderCheckboxes($element->getCheckboxes()) |
|
41 | + . '</ul>'; |
|
42 | 42 | |
43 | 43 | } |
44 | 44 |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * |
|
4 | - */ |
|
3 | + * |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | namespace Settings\Repository\Service; |
7 | 7 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** SettingsEntityResolverFactory.php */ |
11 | 11 | namespace Settings\Repository; |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @copyright (c) 2013-2014 Cross Solution <http://cross-solution.de> |
|
6 | - * @license MIT |
|
7 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @copyright (c) 2013-2014 Cross Solution <http://cross-solution.de> |
|
6 | + * @license MIT |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | ini_set('display_errors', true); |
10 | 10 | ini_set('error_reporting', E_ALL | E_STRICT); |
@@ -20,13 +20,13 @@ discard block |
||
20 | 20 | if (php_sapi_name() == 'cli-server') { |
21 | 21 | $route = parse_url(substr($_SERVER["REQUEST_URI"], 1))["path"]; |
22 | 22 | if (is_file($route)) { |
23 | - if(substr($route, -4) == ".php"){ |
|
24 | - require $route; // Include requested script files |
|
23 | + if (substr($route, -4) == ".php") { |
|
24 | + require $route; // Include requested script files |
|
25 | 25 | exit; |
26 | 26 | } |
27 | - return false; // Serve file as is |
|
27 | + return false; // Serve file as is |
|
28 | 28 | } else { // Fallback to index.php |
29 | - $_GET["q"] = $route; // Try to emulate the behaviour of a .htaccess here. |
|
29 | + $_GET["q"] = $route; // Try to emulate the behaviour of a .htaccess here. |
|
30 | 30 | } |
31 | 31 | } |
32 | 32 | |
@@ -46,8 +46,8 @@ discard block |
||
46 | 46 | } else { |
47 | 47 | echo '<p>Could not initialize autoloading. This happens, if the dependencies are not installed yet.</p>'; |
48 | 48 | echo '<p>Please try to install the dependencies via: </p>'; |
49 | - echo '<code>cd '. realpath('.') .'<br>./install.sh</code>'; |
|
50 | - echo '<p>exit at ' . __FILE__ . ' in line ' . __LINE__ .'</p>'; |
|
49 | + echo '<code>cd ' . realpath('.') . '<br>./install.sh</code>'; |
|
50 | + echo '<p>exit at ' . __FILE__ . ' in line ' . __LINE__ . '</p>'; |
|
51 | 51 | exit; |
52 | 52 | } |
53 | 53 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
37 | - * @return string|\Zend\View\Helper\HelperInterface |
|
37 | + * @return string |
|
38 | 38 | */ |
39 | 39 | public function getViewHelper() |
40 | 40 | { |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** SettingsEntityResolverFactory.php */ |
11 | 11 | namespace Settings\Repository; |
@@ -29,7 +29,6 @@ |
||
29 | 29 | * Attach to an event manager |
30 | 30 | * |
31 | 31 | * @param EventManagerInterface $events |
32 | - * @param integer $priority |
|
33 | 32 | */ |
34 | 33 | public function attach(EventManagerInterface $events) |
35 | 34 | { |