@@ -39,7 +39,7 @@ |
||
39 | 39 | $element = $this->getForm()->getNewElement('checkbox'); |
40 | 40 | $name = $this->getName(); |
41 | 41 | if (!strpos($name, '[]')) { |
42 | - $name = $name .'[]'; |
|
42 | + $name = $name . '[]'; |
|
43 | 43 | } |
44 | 44 | $element->setName($name); |
45 | 45 | return $element; |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | |
20 | 20 | |
21 | 21 | $oValue = $option->$valueKey; |
22 | - $oLabel = $option->$labelKey; |
|
22 | + $oLabel = $option->$labelKey; |
|
23 | 23 | $oDisabled = $option->disabled; |
24 | 24 | |
25 | 25 | if ($oDisabled) { |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | /** |
35 | 35 | * @return Nip_Form_Element_Input_Group |
36 | 36 | */ |
37 | - public function addOption($value, $label , $attribs=array()) { |
|
37 | + public function addOption($value, $label, $attribs = array()) { |
|
38 | 38 | $element = $this->getNewElement(); |
39 | 39 | $element->setValue($value); |
40 | 40 | $element->setLabel($label); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | */ |
15 | 15 | public function assemble() |
16 | 16 | { |
17 | - $query = "UPDATE ".$this->protect($this->getTable())." SET ".$this->parseUpdate(); |
|
17 | + $query = "UPDATE " . $this->protect($this->getTable()) . " SET " . $this->parseUpdate(); |
|
18 | 18 | |
19 | 19 | $query .= $this->assembleWhere(); |
20 | 20 | $query .= $this->assembleLimit(); |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | */ |
34 | 34 | public function getCacheId($table) |
35 | 35 | { |
36 | - return $this->getConnection()->getDatabase().'.'.$table; |
|
36 | + return $this->getConnection()->getDatabase() . '.' . $table; |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | */ |
103 | 103 | public function cachePath() |
104 | 104 | { |
105 | - return parent::cachePath().'/db-metadata/'; |
|
105 | + return parent::cachePath() . '/db-metadata/'; |
|
106 | 106 | } |
107 | 107 | |
108 | 108 | } |
109 | 109 | \ No newline at end of file |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | ->withArgument(Application::class) |
42 | 42 | ->withArgument(ConnectionFactory::class); |
43 | 43 | |
44 | - $this->getContainer()->share('db.connection', function () { |
|
44 | + $this->getContainer()->share('db.connection', function() { |
|
45 | 45 | return app('db')->connection(); |
46 | 46 | }); |
47 | 47 | } |
@@ -51,6 +51,6 @@ discard block |
||
51 | 51 | */ |
52 | 52 | public function provides() |
53 | 53 | { |
54 | - return ['db','db.factory','db.connection']; |
|
54 | + return ['db', 'db.factory', 'db.connection']; |
|
55 | 55 | } |
56 | 56 | } |
57 | 57 | \ No newline at end of file |
@@ -33,7 +33,7 @@ |
||
33 | 33 | |
34 | 34 | $container->share('container', $container); |
35 | 35 | |
36 | - $container->share('kernel.http', function () use ($container) { |
|
36 | + $container->share('kernel.http', function() use ($container) { |
|
37 | 37 | return $container->get(Kernel::class); |
38 | 38 | }); |
39 | 39 | $container->alias('kernel.http', KernelInterface::class); |
@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | protected function registerUrlGenerator() |
44 | 44 | { |
45 | - $this->getContainer()->share('url', function () { |
|
45 | + $this->getContainer()->share('url', function() { |
|
46 | 46 | $routes = app('router')->getRoutes(); |
47 | 47 | |
48 | 48 | // The URL generator needs the route collection that exists on the router. |
@@ -15,7 +15,7 @@ |
||
15 | 15 | */ |
16 | 16 | public function register() |
17 | 17 | { |
18 | - $this->getContainer()->share('inflector', function () { |
|
18 | + $this->getContainer()->share('inflector', function() { |
|
19 | 19 | $inflector = new Inflector(); |
20 | 20 | $path = app('path.storage') . DIRECTORY_SEPARATOR . 'cache'; |
21 | 21 | $inflector->setCachePath($path); |
@@ -38,7 +38,7 @@ |
||
38 | 38 | */ |
39 | 39 | protected function registerLoader() |
40 | 40 | { |
41 | - $this->getContainer()->share('translation.loader', function () { |
|
41 | + $this->getContainer()->share('translation.loader', function() { |
|
42 | 42 | $backend = new File(); |
43 | 43 | $languages = config('app.locale.enabled'); |
44 | 44 | $languages = is_array($languages) ? $languages : explode(',', $languages); |