Completed
Pull Request — master (#26)
by Lars
10:03
created
tests/unit/Product/ProductDoctrineGatewayTest.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -36,6 +36,9 @@  discard block
 block discarded – undo
36 36
         return new Intraface_modules_product_ProductDoctrine;
37 37
     }
38 38
 
39
+    /**
40
+     * @param string $name
41
+     */
39 42
     function createProduct($name)
40 43
     {
41 44
         $product = $this->createProductObject();
@@ -49,6 +52,10 @@  discard block
 block discarded – undo
49 52
         return $product;
50 53
     }
51 54
 
55
+    /**
56
+     * @param string $group_name
57
+     * @param string[] $attributes
58
+     */
52 59
     public function createAttribute($group_name, $attributes)
53 60
     {
54 61
         $group = new Intraface_modules_product_Attribute_Group;
Please login to merge, or discard this patch.
tests/unit/Product/VariationGatewayTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -6,6 +6,9 @@
 block discarded – undo
6 6
     
7 7
     private $groups;
8 8
     
9
+    /**
10
+     * @param integer $groups
11
+     */
9 12
     public function __construct($groups)
10 13
     {
11 14
         $this->groups = $groups;
Please login to merge, or discard this patch.
tests/unit/Shop/ShopBasketEvaluationTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -2,6 +2,10 @@
 block discarded – undo
2 2
 class FakeShopEvaluationCoordinator
3 3
 {
4 4
     public $kernel;
5
+
6
+    /**
7
+     * @param Stub_Kernel $kernel
8
+     */
5 9
     function __construct($kernel)
6 10
     {
7 11
         $this->kernel = $kernel;
Please login to merge, or discard this patch.
tests/unit/Stock/StockTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -6,6 +6,10 @@
 block discarded – undo
6 6
 class FakeStockProduct
7 7
 {
8 8
     public $kernel;
9
+
10
+    /**
11
+     * @param Stub_Kernel $kernel
12
+     */
9 13
     function __construct($kernel)
10 14
     {
11 15
         $this->kernel = $kernel;
Please login to merge, or discard this patch.
tests/unit/Stub/Keyword.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -1,6 +1,9 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 class MyKeyword extends Keyword
3 3
 {
4
+    /**
5
+     * @param FakeKeywordObject $object
6
+     */
4 7
     function __construct($object, $id = 0)
5 8
     {
6 9
         parent::__construct($object, $id);
@@ -113,6 +116,9 @@  discard block
 block discarded – undo
113 116
 
114 117
 class MyStringKeyword extends Keyword
115 118
 {
119
+    /**
120
+     * @param FakeKeywordObject $object
121
+     */
116 122
     function __construct($object, $id = 0)
117 123
     {
118 124
         parent::__construct($object, $id);
Please login to merge, or discard this patch.
tests/unit/Stub/Setting.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -12,6 +12,10 @@
 block discarded – undo
12 12
         return $this->setting[$type][$setting];
13 13
     }
14 14
 
15
+    /**
16
+     * @param string $type
17
+     * @param string $key
18
+     */
15 19
     function set($type, $key, $value)
16 20
     {
17 21
         $this->setting[$type][$key] = $value;
Please login to merge, or discard this patch.
generate_package_xml.php 3 patches
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -57,10 +57,10 @@  discard block
 block discarded – undo
57 57
         'packagefile'       => 'package.xml',
58 58
         'ignore'            => $ignore,
59 59
         'dir_roles'        => array(
60
-              'intraface.dk' => 'www'
60
+                'intraface.dk' => 'www'
61 61
         ),
62 62
         'exceptions' => array(
63
-              'intraface.dk/*.*' => 'www'
63
+                'intraface.dk/*.*' => 'www'
64 64
         ),
65 65
         'simpleoutput'      => true,
66 66
         'addhiddenfiles' => true
@@ -221,29 +221,29 @@  discard block
 block discarded – undo
221 221
 $post_install_script = $pfm->initPostinstallScript('intraface.php');
222 222
 $post_install_script->addParamGroup('setup',
223 223
     array($post_install_script->getParam('db_user', 'User', 'string', 'root'),
224
-          $post_install_script->getParam('db_pass', 'Password', 'string', ''),
225
-          $post_install_script->getParam('db_host', 'Host', 'string', 'localhost'),
226
-          $post_install_script->getParam('db_name', 'Database', 'string', 'intraface'),
227
-          $post_install_script->getParam('net_scheme', 'Net scheme', 'string', 'http://'),
228
-          $post_install_script->getParam('net_host', 'Net host', 'string', 'localhost'),
229
-          $post_install_script->getParam('net_directory', 'Net directory', 'string', '/'),
230
-          $post_install_script->getParam('path_root', 'Root path', 'string', '/home/intraface/'),
231
-          $post_install_script->getParam('path_include_path', 'Include path', 'string', ''),
232
-          $post_install_script->getParam('path_upload', 'Upload path', 'string', '/home/intraface/upload/'),
233
-          $post_install_script->getParam('path_cache', 'Cache path', 'string', '/home/intraface/cache'),
234
-          $post_install_script->getParam('connection_internet', 'Connection to intranet', 'boolean', true),
235
-          $post_install_script->getParam('server_status', 'Server status', 'string', 'PRODUCTION'),
236
-          $post_install_script->getParam('error_handle_level', 'Error handle error ', 'integer', E_ALL),
237
-          $post_install_script->getParam('error_level_continue_script', 'Error level continue script', 'integer' ^ E_NOTICE),
238
-          $post_install_script->getParam('error_report_email', 'Error report email', 'string', '[email protected]'),
239
-          $post_install_script->getParam('error_log', 'Error log', 'string', 'log/error.log'),
240
-          $post_install_script->getParam('timezone', 'Timezone', 'string', 'Europe/Copenhagen'),
241
-          $post_install_script->getParam('country_local', 'Country local', 'string', 'da_DK'),
242
-          $post_install_script->getParam('intraface_intranetmaintenance_intranet_private_key', 'Private key', 'string', ''),
243
-          $post_install_script->getParam('intraface_onlinepayment_provider', 'Online payment provider', 'string', 'Quickpay'),
244
-          $post_install_script->getParam('intraface_onlinepayment_merchant', 'Online payment merchant number', 'string', ''),
245
-          $post_install_script->getParam('intraface_onlinepayment_md5secret', 'Online payment md5secret', 'string', '')
246
-              ),
224
+            $post_install_script->getParam('db_pass', 'Password', 'string', ''),
225
+            $post_install_script->getParam('db_host', 'Host', 'string', 'localhost'),
226
+            $post_install_script->getParam('db_name', 'Database', 'string', 'intraface'),
227
+            $post_install_script->getParam('net_scheme', 'Net scheme', 'string', 'http://'),
228
+            $post_install_script->getParam('net_host', 'Net host', 'string', 'localhost'),
229
+            $post_install_script->getParam('net_directory', 'Net directory', 'string', '/'),
230
+            $post_install_script->getParam('path_root', 'Root path', 'string', '/home/intraface/'),
231
+            $post_install_script->getParam('path_include_path', 'Include path', 'string', ''),
232
+            $post_install_script->getParam('path_upload', 'Upload path', 'string', '/home/intraface/upload/'),
233
+            $post_install_script->getParam('path_cache', 'Cache path', 'string', '/home/intraface/cache'),
234
+            $post_install_script->getParam('connection_internet', 'Connection to intranet', 'boolean', true),
235
+            $post_install_script->getParam('server_status', 'Server status', 'string', 'PRODUCTION'),
236
+            $post_install_script->getParam('error_handle_level', 'Error handle error ', 'integer', E_ALL),
237
+            $post_install_script->getParam('error_level_continue_script', 'Error level continue script', 'integer' ^ E_NOTICE),
238
+            $post_install_script->getParam('error_report_email', 'Error report email', 'string', '[email protected]'),
239
+            $post_install_script->getParam('error_log', 'Error log', 'string', 'log/error.log'),
240
+            $post_install_script->getParam('timezone', 'Timezone', 'string', 'Europe/Copenhagen'),
241
+            $post_install_script->getParam('country_local', 'Country local', 'string', 'da_DK'),
242
+            $post_install_script->getParam('intraface_intranetmaintenance_intranet_private_key', 'Private key', 'string', ''),
243
+            $post_install_script->getParam('intraface_onlinepayment_provider', 'Online payment provider', 'string', 'Quickpay'),
244
+            $post_install_script->getParam('intraface_onlinepayment_merchant', 'Online payment merchant number', 'string', ''),
245
+            $post_install_script->getParam('intraface_onlinepayment_md5secret', 'Online payment md5secret', 'string', '')
246
+                ),
247 247
     '');
248 248
 
249 249
 $pfm->addPostInstallTask($post_install_script, 'intraface.php');
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -250,7 +250,7 @@
 block discarded – undo
250 250
 
251 251
 foreach ($web_files AS $file) {
252 252
     $src_file = substr($file, 4);
253
-    $formatted_file = substr($file, strlen($web_dir . '/'));
253
+    $formatted_file = substr($file, strlen($web_dir.'/'));
254 254
     if (in_array($src_file, $ignore)) continue;
255 255
     $pfm->addInstallAs($src_file, $formatted_file);
256 256
 }
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -251,7 +251,9 @@
 block discarded – undo
251 251
 foreach ($web_files AS $file) {
252 252
     $src_file = substr($file, 4);
253 253
     $formatted_file = substr($file, strlen($web_dir . '/'));
254
-    if (in_array($src_file, $ignore)) continue;
254
+    if (in_array($src_file, $ignore)) {
255
+        continue;
256
+    }
255 257
     $pfm->addInstallAs($src_file, $formatted_file);
256 258
 }
257 259
 
Please login to merge, or discard this patch.
src/intraface.dk/tools/index.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
 
128 128
 if (realpath($_SERVER['SCRIPT_FILENAME']) == __FILE__) {
129 129
     k()
130
-      ->setIdentityLoader(new MyIdentityLoader())
131
-      ->setComponentCreator(new k_InjectorAdapter(create_container()))
132
-      ->run('Intraface_Tools_Controller_Root')->out();
130
+        ->setIdentityLoader(new MyIdentityLoader())
131
+        ->setComponentCreator(new k_InjectorAdapter(create_container()))
132
+        ->run('Intraface_Tools_Controller_Root')->out();
133 133
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 {
106 106
     function create($filename)
107 107
     {
108
-        $filename = $filename . '.tpl.php';
108
+        $filename = $filename.'.tpl.php';
109 109
         $__template_filename__ = k_search_include_path($filename);
110 110
         if (!is_file($__template_filename__)) {
111 111
             throw new Exception("Failed opening '".$filename."' for inclusion. (include_path=".ini_get('include_path').")");
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 {
120 120
     $factory = new ToolsFactory();
121 121
     $container = new bucket_Container($factory);
122
-    $factory->db_dsn = 'mysql://' . DB_USER . ':' . DB_PASS . '@' . DB_HOST . '/' . DB_NAME;
122
+    $factory->db_dsn = 'mysql://'.DB_USER.':'.DB_PASS.'@'.DB_HOST.'/'.DB_NAME;
123 123
     $factory->error_log = ERROR_LOG;
124 124
     return $container;
125 125
 }
Please login to merge, or discard this patch.
src/intraface.dk/config.local.default.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 define('NET_DIRECTORY', '/src/intraface.dk/'); // subdirectory. if non keep empty
23 23
 
24 24
 // define paths - remember trailing slahs
25
-define('PATH_ROOT', dirname(__FILE__) . '/../');
25
+define('PATH_ROOT', dirname(__FILE__).'/../');
26 26
 
27 27
 // optional upload path - remember trailing slash
28 28
 define('PATH_UPLOAD', '/var/cache/intraface/upload/');
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 define('PATH_CACHE', '/var/cache/intraface/');
32 32
 
33 33
 // set include path
34
-define('PATH_INCLUDE_PATH', PATH_ROOT . PATH_SEPARATOR . get_include_path());
34
+define('PATH_INCLUDE_PATH', PATH_ROOT.PATH_SEPARATOR.get_include_path());
35 35
 set_include_path(PATH_INCLUDE_PATH);
36 36
 
37 37
 // error logs
Please login to merge, or discard this patch.