@@ -92,9 +92,9 @@ discard block |
||
92 | 92 | |
93 | 93 | // Create a file with the class/file map. |
94 | 94 | // Stupid syntax highlighters make separating < from PHP declaration necessary |
95 | - $content = '<' . "?php\n" |
|
95 | + $content = '<'."?php\n" |
|
96 | 96 | . "\n" |
97 | - . 'return ' . var_export($config, true) . ';'; |
|
97 | + . 'return '.var_export($config, true).';'; |
|
98 | 98 | |
99 | 99 | // Fix \' strings from injected DIRECTORY_SEPARATOR usage in iterator_apply op |
100 | 100 | $content = str_replace("\\'", "'", $content); |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | $content = str_replace('array (', 'array(', $content); |
108 | 108 | |
109 | 109 | // Make the file end by EOL |
110 | - $content = rtrim($content, "\n") . "\n"; |
|
110 | + $content = rtrim($content, "\n")."\n"; |
|
111 | 111 | |
112 | 112 | return $content; |
113 | 113 |
@@ -1,15 +1,15 @@ |
||
1 | 1 | <?php |
2 | 2 | // Generated by ZF2's ./bin/classmap_generator.php |
3 | 3 | return array( |
4 | - 'Install\Filter\DbNameExtractor' => __DIR__ . '/Filter/DbNameExtractor.php', |
|
5 | - 'Install\Form\Installation' => __DIR__ . '/Form/Installation.php', |
|
6 | - 'Install\Controller\Index' => __DIR__ . '/Controller/Index.php', |
|
7 | - 'Install\Controller\Plugin\Prerequisites' => __DIR__ . '/Controller/Plugin/Prerequisites.php', |
|
8 | - 'Install\Controller\Plugin\YawikConfigCreator' => __DIR__ . '/Controller/Plugin/YawikConfigCreator.php', |
|
9 | - 'Install\Controller\Plugin\UserCreator' => __DIR__ . '/Controller/Plugin/UserCreator.php', |
|
10 | - 'Install\Listener\LanguageSetter' => __DIR__ . '/Listener/LanguageSetter.php', |
|
11 | - 'Install\Validator\MongoDbConnection' => __DIR__ . '/Validator/MongoDbConnection.php', |
|
12 | - 'Install\Validator\MongoDbConnectionString' => __DIR__ . '/Validator/MongoDbConnectionString.php', |
|
13 | - 'Install\Factory\Controller\Plugin\UserCreatorFactory' => __DIR__ . '/Factory/Controller/Plugin/UserCreatorFactory.php', |
|
14 | - 'Install\Factory\Controller\Plugin\YawikConfigCreatorFactory' => __DIR__ . '/Factory/Controller/Plugin/YawikConfigCreatorFactory.php', |
|
4 | + 'Install\Filter\DbNameExtractor' => __DIR__.'/Filter/DbNameExtractor.php', |
|
5 | + 'Install\Form\Installation' => __DIR__.'/Form/Installation.php', |
|
6 | + 'Install\Controller\Index' => __DIR__.'/Controller/Index.php', |
|
7 | + 'Install\Controller\Plugin\Prerequisites' => __DIR__.'/Controller/Plugin/Prerequisites.php', |
|
8 | + 'Install\Controller\Plugin\YawikConfigCreator' => __DIR__.'/Controller/Plugin/YawikConfigCreator.php', |
|
9 | + 'Install\Controller\Plugin\UserCreator' => __DIR__.'/Controller/Plugin/UserCreator.php', |
|
10 | + 'Install\Listener\LanguageSetter' => __DIR__.'/Listener/LanguageSetter.php', |
|
11 | + 'Install\Validator\MongoDbConnection' => __DIR__.'/Validator/MongoDbConnection.php', |
|
12 | + 'Install\Validator\MongoDbConnectionString' => __DIR__.'/Validator/MongoDbConnectionString.php', |
|
13 | + 'Install\Factory\Controller\Plugin\UserCreatorFactory' => __DIR__.'/Factory/Controller/Plugin/UserCreatorFactory.php', |
|
14 | + 'Install\Factory\Controller\Plugin\YawikConfigCreatorFactory' => __DIR__.'/Factory/Controller/Plugin/YawikConfigCreatorFactory.php', |
|
15 | 15 | ); |
@@ -24,23 +24,23 @@ |
||
24 | 24 | |
25 | 25 | public function getConfig() |
26 | 26 | { |
27 | - return include __DIR__ . '/config/module.config.php'; |
|
27 | + return include __DIR__.'/config/module.config.php'; |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | public function getAutoloaderConfig() |
31 | 31 | { |
32 | 32 | return array( |
33 | 33 | 'Zend\Loader\ClassMapAutoloader' => array( |
34 | - __DIR__ . '/autoload_classmap.php', |
|
34 | + __DIR__.'/autoload_classmap.php', |
|
35 | 35 | array( |
36 | 36 | // We need this filter for initial user creation. |
37 | - 'Auth\Entity\Filter\CredentialFilter' => __DIR__ . '/../Auth/src/Auth/Entity/Filter/CredentialFilter.php', |
|
37 | + 'Auth\Entity\Filter\CredentialFilter' => __DIR__.'/../Auth/src/Auth/Entity/Filter/CredentialFilter.php', |
|
38 | 38 | ), |
39 | 39 | ), |
40 | 40 | 'Zend\Loader\StandardAutoloader' => array( |
41 | 41 | 'namespaces' => array( |
42 | - __NAMESPACE__ => __DIR__ . '/src' /* . __NAMESPACE__*/, |
|
43 | - __NAMESPACE__ . 'Test' => __DIR__ . '/test/' . __NAMESPACE__ . 'Test', |
|
42 | + __NAMESPACE__ => __DIR__.'/src' /* . __NAMESPACE__*/, |
|
43 | + __NAMESPACE__.'Test' => __DIR__.'/test/'.__NAMESPACE__.'Test', |
|
44 | 44 | ), |
45 | 45 | ), |
46 | 46 | ); |
@@ -8,5 +8,5 @@ |
||
8 | 8 | $env = getenv('APPLICATION_ENV') ?: 'production'; |
9 | 9 | |
10 | 10 | return 'production' == $env |
11 | - ? include __DIR__ . '/src/autoload_classmap.php' |
|
11 | + ? include __DIR__.'/src/autoload_classmap.php' |
|
12 | 12 | : array(); /* no class map in test and development. */ |
@@ -33,6 +33,6 @@ |
||
33 | 33 | */ |
34 | 34 | public function getUri() |
35 | 35 | { |
36 | - return "/file/Applications.Attachment/" . $this->id . "/" .urlencode($this->name); |
|
36 | + return "/file/Applications.Attachment/".$this->id."/".urlencode($this->name); |
|
37 | 37 | } |
38 | 38 | } |
@@ -50,12 +50,12 @@ |
||
50 | 50 | |
51 | 51 | public function __construct($status = self::INCOMING) |
52 | 52 | { |
53 | - $constant = 'self::' . strtoupper($status); |
|
53 | + $constant = 'self::'.strtoupper($status); |
|
54 | 54 | if (!defined($constant)) { |
55 | - throw new \DomainException('Unknown status: ' . $status); |
|
55 | + throw new \DomainException('Unknown status: '.$status); |
|
56 | 56 | } |
57 | - $this->name=constant($constant); |
|
58 | - $this->order=$this->getOrder(); |
|
57 | + $this->name = constant($constant); |
|
58 | + $this->order = $this->getOrder(); |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | /** |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * |
24 | 24 | * @var String |
25 | 25 | */ |
26 | - protected $repositoryName="Applications/Application"; |
|
26 | + protected $repositoryName = "Applications/Application"; |
|
27 | 27 | |
28 | 28 | /** |
29 | 29 | * Sortable fields |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | $searchPatterns = array(); |
82 | 82 | |
83 | 83 | foreach (explode(' ', $search) as $searchItem) { |
84 | - $searchPatterns[] = new \MongoRegex('/^' . $searchItem . '/'); |
|
84 | + $searchPatterns[] = new \MongoRegex('/^'.$searchItem.'/'); |
|
85 | 85 | } |
86 | 86 | $queryBuilder->field('keywords')->all($searchPatterns); |
87 | 87 | } |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | public function getConfig() |
51 | 51 | { |
52 | - return ModuleConfigLoader::load(__DIR__ . '/config'); |
|
52 | + return ModuleConfigLoader::load(__DIR__.'/config'); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
@@ -62,8 +62,8 @@ discard block |
||
62 | 62 | return array( |
63 | 63 | 'Zend\Loader\StandardAutoloader' => array( |
64 | 64 | 'namespaces' => array( |
65 | - __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, |
|
66 | - __NAMESPACE__ . 'Test' => __DIR__ . '/test/' . __NAMESPACE__ .'Test', |
|
65 | + __NAMESPACE__ => __DIR__.'/src/'.__NAMESPACE__, |
|
66 | + __NAMESPACE__.'Test' => __DIR__.'/test/'.__NAMESPACE__.'Test', |
|
67 | 67 | ), |
68 | 68 | ), |
69 | 69 | ); |
@@ -8,7 +8,7 @@ |
||
8 | 8 | ), |
9 | 9 | 'view_manager' => array( |
10 | 10 | 'template_map' => array( |
11 | - 'pdf/application/details/button' => __DIR__ . '/../view/applicationDetailsButton.phtml', |
|
11 | + 'pdf/application/details/button' => __DIR__.'/../view/applicationDetailsButton.phtml', |
|
12 | 12 | ) |
13 | 13 | ), |
14 | 14 | ); |