@@ -95,6 +95,9 @@ |
||
| 95 | 95 | $this->assertNull($api->uname()); |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | + /** |
|
| 99 | + * @param integer $uid |
|
| 100 | + */ |
|
| 98 | 101 | private function getApi($uid = null) |
| 99 | 102 | { |
| 100 | 103 | $this->session->method('get')->with('uid')->willReturn($uid); |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | $this->userRepo |
| 54 | 54 | ->method('find') |
| 55 | 55 | ->with($this->logicalNot($this->isNull())) |
| 56 | - ->will($this->returnCallback(function ($uid) { |
|
| 56 | + ->will($this->returnCallback(function($uid) { |
|
| 57 | 57 | $this->user->setUid($uid); |
| 58 | 58 | |
| 59 | 59 | return $this->user; |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | public function load(array $configs, ContainerBuilder $container) |
| 25 | 25 | { |
| 26 | - $loader = new YamlFileLoader($container, new FileLocator(realpath(__DIR__.'/../Resources/config'))); |
|
| 26 | + $loader = new YamlFileLoader($container, new FileLocator(realpath(__DIR__ . '/../Resources/config'))); |
|
| 27 | 27 | |
| 28 | 28 | $loader->load('services.yml'); |
| 29 | 29 | $loader->load('twig.yml'); |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | public function load(array $configs, ContainerBuilder $container) |
| 28 | 28 | { |
| 29 | - $loader = new YamlFileLoader($container, new FileLocator(realpath(__DIR__.'/../Resources/config'))); |
|
| 29 | + $loader = new YamlFileLoader($container, new FileLocator(realpath(__DIR__ . '/../Resources/config'))); |
|
| 30 | 30 | |
| 31 | 31 | $loader->load('services.yml'); |
| 32 | 32 | $loader->load('helpers.yml'); |
@@ -131,8 +131,8 @@ |
||
| 131 | 131 | { |
| 132 | 132 | $string = preg_replace_callback( |
| 133 | 133 | '/(.)@(.)/s', |
| 134 | - function ($m) { |
|
| 135 | - return "&#" . sprintf("%03d", ord($m[1])) . ";@&#" .sprintf("%03d", ord($m[2])) . ";"; |
|
| 134 | + function($m) { |
|
| 135 | + return "&#" . sprintf("%03d", ord($m[1])) . ";@&#" . sprintf("%03d", ord($m[2])) . ";"; |
|
| 136 | 136 | }, |
| 137 | 137 | $string |
| 138 | 138 | ); |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | { |
| 65 | 65 | $variableApi = $this->getMockBuilder(VariableApiInterface::class)->getMock(); |
| 66 | 66 | $variableApi->method('getSystemVar')->willReturnCallback( |
| 67 | - function ($string, $default) use ($htmlEntities, $outputFilter) { |
|
| 67 | + function($string, $default) use ($htmlEntities, $outputFilter) { |
|
| 68 | 68 | switch ($string) { |
| 69 | 69 | case 'outputfilter': |
| 70 | 70 | return $outputFilter; |
@@ -104,9 +104,9 @@ |
||
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | // ensure proper variable types |
| 107 | - $value = (string) $value; |
|
| 108 | - $type = (string) $type; |
|
| 109 | - $weight = (int) $weight; |
|
| 107 | + $value = (string)$value; |
|
| 108 | + $type = (string)$type; |
|
| 109 | + $weight = (int)$weight; |
|
| 110 | 110 | |
| 111 | 111 | if ('stylesheet' == $type) { |
| 112 | 112 | $this->styleSheets->add([$value => $weight]); |