@@ -28,7 +28,6 @@ discard block |
||
| 28 | 28 | * @param VisitorModel $visitor |
| 29 | 29 | * @param MealModel $meal |
| 30 | 30 | * @param BlockModel $block |
| 31 | - * @param Emailer $emailer |
|
| 32 | 31 | */ |
| 33 | 32 | public function __construct( |
| 34 | 33 | VisitorModel $visitor, |
@@ -42,7 +41,7 @@ discard block |
||
| 42 | 41 | |
| 43 | 42 | /** |
| 44 | 43 | * @param array $data |
| 45 | - * @return string |
|
| 44 | + * @return boolean |
|
| 46 | 45 | */ |
| 47 | 46 | public function create(array $data = []) |
| 48 | 47 | { |
@@ -161,7 +160,7 @@ discard block |
||
| 161 | 160 | |
| 162 | 161 | /** |
| 163 | 162 | * @param VisitorModel $model |
| 164 | - * @return VisitorModel |
|
| 163 | + * @return VisitorService |
|
| 165 | 164 | */ |
| 166 | 165 | protected function setVisitorModel(VisitorModel $model) |
| 167 | 166 | { |
@@ -103,11 +103,11 @@ |
||
| 103 | 103 | $blocks = $this->getBlockModel()->idsFromCurrentMeeting($data['meeting']); |
| 104 | 104 | |
| 105 | 105 | $programs = array_map(function($block) use ($data) { |
| 106 | - if(!array_key_exists('blck_' . $block['id'], $data)) { |
|
| 106 | + if(!array_key_exists('blck_'.$block['id'], $data)) { |
|
| 107 | 107 | return 0; |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | - return $data['blck_' . $block['id']]; |
|
| 110 | + return $data['blck_'.$block['id']]; |
|
| 111 | 111 | }, $blocks); |
| 112 | 112 | |
| 113 | 113 | return $programs; |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | $I->seeCurrentUrlMatches($this->succeededRegistrationUrl); |
| 96 | 96 | $I->see('úspěšně založena'); |
| 97 | 97 | $I->see('Registrace na srazy K + K'); |
| 98 | - foreach ($this->successVisitor['fields'] as $field => $value) { |
|
| 98 | + foreach($this->successVisitor['fields'] as $field => $value) { |
|
| 99 | 99 | $I->see($value); |
| 100 | 100 | } |
| 101 | 101 | $I->see($this->successVisitor['options']['province']); |
@@ -85,13 +85,13 @@ discard block |
||
| 85 | 85 | try { |
| 86 | 86 | $result = $this->getModel()->create($data); |
| 87 | 87 | |
| 88 | - Debugger::log('Creation of program successfull, result: ' . json_encode($result), Debugger::INFO); |
|
| 88 | + Debugger::log('Creation of program successfull, result: '.json_encode($result), Debugger::INFO); |
|
| 89 | 89 | |
| 90 | 90 | $this->flashMessage('Položka byla úspěšně vytvořena', 'ok'); |
| 91 | 91 | } catch(Exception $e) { |
| 92 | - Debugger::log('Creation of program with data ' . json_encode($data) . ' failed, result: ' . $e->getMessage(), Debugger::ERROR); |
|
| 92 | + Debugger::log('Creation of program with data '.json_encode($data).' failed, result: '.$e->getMessage(), Debugger::ERROR); |
|
| 93 | 93 | |
| 94 | - $this->flashMessage('Záznam se nepodařilo uložit, result: ' . $e->getMessage(), 'error'); |
|
| 94 | + $this->flashMessage('Záznam se nepodařilo uložit, result: '.$e->getMessage(), 'error'); |
|
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | $this->redirect($this->getBacklink() ?: 'Program:listing'); |
@@ -116,13 +116,13 @@ discard block |
||
| 116 | 116 | try { |
| 117 | 117 | $result = $this->getModel()->update($id, $data); |
| 118 | 118 | |
| 119 | - Debugger::log('Modification of program id ' . $id . ' with data ' . json_encode($data) . ' successfull, result: ' . json_encode($result), Debugger::INFO); |
|
| 119 | + Debugger::log('Modification of program id '.$id.' with data '.json_encode($data).' successfull, result: '.json_encode($result), Debugger::INFO); |
|
| 120 | 120 | |
| 121 | 121 | $this->flashMessage('Položka byla úspěšně upravena.', 'ok'); |
| 122 | 122 | } catch(Exception $e) { |
| 123 | - Debugger::log('Modification of program id ' . $id . ' failed, result: ' . $e->getMessage(), Debugger::ERROR); |
|
| 123 | + Debugger::log('Modification of program id '.$id.' failed, result: '.$e->getMessage(), Debugger::ERROR); |
|
| 124 | 124 | |
| 125 | - $this->flashMessage('Modification of program id ' . $id . ' failed, result: ' . $e->getMessage(), 'error'); |
|
| 125 | + $this->flashMessage('Modification of program id '.$id.' failed, result: '.$e->getMessage(), 'error'); |
|
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | $this->redirect($this->getBacklink() ?: 'Program:listing'); |
@@ -136,11 +136,11 @@ discard block |
||
| 136 | 136 | { |
| 137 | 137 | try { |
| 138 | 138 | $result = $this->getModel()->delete($id); |
| 139 | - Debugger::log('Destroying of program successfull, result: ' . json_encode($result), Debugger::INFO); |
|
| 139 | + Debugger::log('Destroying of program successfull, result: '.json_encode($result), Debugger::INFO); |
|
| 140 | 140 | $this->flashMessage('Položka byla úspěšně smazána.', 'ok'); |
| 141 | 141 | } catch(Exception $e) { |
| 142 | - Debugger::log('Destroying of program failed, result: ' . $e->getMessage(), Debugger::ERROR); |
|
| 143 | - $this->flashMessage('Smazání programu se nezdařilo, result: ' . $e->getMessage(), 'error'); |
|
| 142 | + Debugger::log('Destroying of program failed, result: '.$e->getMessage(), Debugger::ERROR); |
|
| 143 | + $this->flashMessage('Smazání programu se nezdařilo, result: '.$e->getMessage(), 'error'); |
|
| 144 | 144 | } |
| 145 | 145 | |
| 146 | 146 | $this->redirect('Program:listing'); |
@@ -156,13 +156,13 @@ discard block |
||
| 156 | 156 | $data = $this->getRequest()->getPost(); |
| 157 | 157 | $result = $this->updateByGuid($id, $data); |
| 158 | 158 | |
| 159 | - Debugger::log('Modification of program annotation id ' . $id . ' with data ' . json_encode($data) . ' successfull, result: ' . json_encode($result), Debugger::INFO); |
|
| 159 | + Debugger::log('Modification of program annotation id '.$id.' with data '.json_encode($data).' successfull, result: '.json_encode($result), Debugger::INFO); |
|
| 160 | 160 | |
| 161 | 161 | $this->flashMessage('Položka byla úspěšně upravena.', 'ok'); |
| 162 | 162 | } catch(Exception $e) { |
| 163 | - Debugger::log('Modification of program annotation guid ' . $id . ' failed, result: ' . $e->getMessage(), Debugger::ERROR); |
|
| 163 | + Debugger::log('Modification of program annotation guid '.$id.' failed, result: '.$e->getMessage(), Debugger::ERROR); |
|
| 164 | 164 | |
| 165 | - $this->flashMessage('Modification of program annotation guid ' . $id . ' failed, result: ' . $e->getMessage(), 'error'); |
|
| 165 | + $this->flashMessage('Modification of program annotation guid '.$id.' failed, result: '.$e->getMessage(), 'error'); |
|
| 166 | 166 | } |
| 167 | 167 | |
| 168 | 168 | $this->redirect('Program:annotation', $id); |
@@ -179,11 +179,11 @@ discard block |
||
| 179 | 179 | |
| 180 | 180 | $this->getEmailer()->tutor($recipients, $tutors->guid, 'program'); |
| 181 | 181 | |
| 182 | - Debugger::log('Sending email to program tutor successfull, result: ' . json_encode($recipients) . ', ' . $tutors->guid, Debugger::INFO); |
|
| 182 | + Debugger::log('Sending email to program tutor successfull, result: '.json_encode($recipients).', '.$tutors->guid, Debugger::INFO); |
|
| 183 | 183 | $this->flashMessage('Email lektorovi byl odeslán..', 'ok'); |
| 184 | 184 | } catch(Exception $e) { |
| 185 | - Debugger::log('Sending email to program tutor failed, result: ' . $e->getMessage(), Debugger::ERROR); |
|
| 186 | - $this->flashMessage('Email lektorovi nebyl odeslán, result: ' . $e->getMessage(), 'error'); |
|
| 185 | + Debugger::log('Sending email to program tutor failed, result: '.$e->getMessage(), Debugger::ERROR); |
|
| 186 | + $this->flashMessage('Email lektorovi nebyl odeslán, result: '.$e->getMessage(), 'error'); |
|
| 187 | 187 | } |
| 188 | 188 | |
| 189 | 189 | $this->redirect('Program:edit', $id); |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | $template->error_material = ''; |
| 244 | 244 | $template->display_in_reg_checkbox = $this->renderHtmlCheckBox('display_in_reg', 0, 1); |
| 245 | 245 | $template->block_select = $this->getBlockModel()->renderHtmlSelect(null); |
| 246 | - $template->selectedCategory = null; |
|
| 246 | + $template->selectedCategory = null; |
|
| 247 | 247 | } |
| 248 | 248 | |
| 249 | 249 | /** |
@@ -9,11 +9,11 @@ |
||
| 9 | 9 | * Never let user to set his ID himself. |
| 10 | 10 | * @author Hána František <[email protected]> |
| 11 | 11 | */ |
| 12 | -class SkautisAuthenticator extends Nette\Object implements Nette\Security\IAuthenticator |
|
| 13 | -{
|
|
| 12 | +class SkautisAuthenticator extends Nette\Object implements Nette\Security\IAuthenticator |
|
| 13 | +{ |
|
| 14 | 14 | |
| 15 | - public function authenticate(array $credentials) |
|
| 16 | - {
|
|
| 15 | + public function authenticate(array $credentials) |
|
| 16 | + { |
|
| 17 | 17 | $data = $credentials[0]; |
| 18 | 18 | return new Nette\Security\Identity($data->ID_User); |
| 19 | 19 | } |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | { |
| 44 | 44 | $id = __FUNCTION__; |
| 45 | 45 | // cache by the request |
| 46 | - if (!($res = $this->load($id))) { |
|
| 46 | + if(!($res = $this->load($id))) { |
|
| 47 | 47 | $res = $this->save($id, $this->skautis->user->UserDetail()); |
| 48 | 48 | } |
| 49 | 49 | return $res; |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | public function updateSkautISRole($id) |
| 60 | 60 | { |
| 61 | 61 | $unitId = $this->skautis->user->LoginUpdate(array("ID_UserRole" => $id, "ID" => $this->skautis->getToken())); |
| 62 | - if ($unitId) { |
|
| 62 | + if($unitId) { |
|
| 63 | 63 | $this->skautis->setRoleId($id); |
| 64 | 64 | $this->skautis->setUnitId($unitId->ID_Unit); |
| 65 | 65 | } |
@@ -157,17 +157,17 @@ discard block |
||
| 157 | 157 | )); |
| 158 | 158 | |
| 159 | 159 | // returns boolean if certain function for verifying is set |
| 160 | - if ($ID_Action !== NULL) { |
|
| 161 | - if ($res instanceof stdClass) { |
|
| 160 | + if($ID_Action !== NULL) { |
|
| 161 | + if($res instanceof stdClass) { |
|
| 162 | 162 | return false; |
| 163 | 163 | } |
| 164 | - if (is_array($res)) { |
|
| 164 | + if(is_array($res)) { |
|
| 165 | 165 | return true; |
| 166 | 166 | } |
| 167 | 167 | } |
| 168 | - if (is_array($res)) { |
|
| 168 | + if(is_array($res)) { |
|
| 169 | 169 | $tmp = array(); |
| 170 | - foreach ($res as $v) { |
|
| 170 | + foreach($res as $v) { |
|
| 171 | 171 | $tmp[$v->ID] = $v; |
| 172 | 172 | } |
| 173 | 173 | return $tmp; |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | * @param type $ID_Action tabulka v DB skautisu |
| 149 | 149 | * @return BOOL|stdClass|array |
| 150 | 150 | */ |
| 151 | - public function actionVerify($table, $id = NULL, $ID_Action = NULL) |
|
| 151 | + public function actionVerify($table, $id = null, $ID_Action = null) |
|
| 152 | 152 | { |
| 153 | 153 | $res = $this->skautis->user->ActionVerify(array( |
| 154 | 154 | "ID" => $id, |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | )); |
| 158 | 158 | |
| 159 | 159 | // returns boolean if certain function for verifying is set |
| 160 | - if ($ID_Action !== NULL) { |
|
| 160 | + if ($ID_Action !== null) { |
|
| 161 | 161 | if ($res instanceof stdClass) { |
| 162 | 162 | return false; |
| 163 | 163 | } |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | abstract class BaseControl extends Control |
| 8 | 8 | { |
| 9 | 9 | |
| 10 | - const TEMPLATE_DIR = __DIR__ . '/../templates/components'; |
|
| 10 | + const TEMPLATE_DIR = __DIR__.'/../templates/components'; |
|
| 11 | 11 | const TEMPLATE_EXT = 'latte'; |
| 12 | 12 | |
| 13 | 13 | /** |
@@ -40,9 +40,9 @@ discard block |
||
| 40 | 40 | ->register(); |
| 41 | 41 | |
| 42 | 42 | if ($configurator->isDebugMode()) { |
| 43 | - $configurator->addConfig(__DIR__ . '/config/config.development.neon'); |
|
| 43 | + $configurator->addConfig(__DIR__ . '/config/config.development.neon'); |
|
| 44 | 44 | } else { |
| 45 | - $configurator->addConfig(__DIR__ . '/config/config.production.neon'); |
|
| 45 | + $configurator->addConfig(__DIR__ . '/config/config.production.neon'); |
|
| 46 | 46 | } |
| 47 | 47 | $configurator->addConfig(__DIR__ . '/config/config.local.neon'); |
| 48 | 48 | |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | * DI Container and Session |
| 51 | 51 | */ |
| 52 | 52 | $configurator->addServices(array( |
| 53 | - 'session.session' => $session, |
|
| 53 | + 'session.session' => $session, |
|
| 54 | 54 | )); |
| 55 | 55 | $container = $configurator->createContainer(); |
| 56 | 56 | $parameters = $container->getParameters(); |
@@ -9,12 +9,12 @@ discard block |
||
| 9 | 9 | use Nette\Loaders\RobotLoader; |
| 10 | 10 | use App\Routers\RouterFactory; |
| 11 | 11 | |
| 12 | -require_once __DIR__ . '/../vendor/autoload.php'; |
|
| 12 | +require_once __DIR__.'/../vendor/autoload.php'; |
|
| 13 | 13 | |
| 14 | 14 | define('SESSION_PREFIX', md5('localhost'.'vodni'.'vodni'.'sunlight')."-"); |
| 15 | 15 | |
| 16 | 16 | //nastartovani session |
| 17 | -session_name(SESSION_PREFIX . 'session'); |
|
| 17 | +session_name(SESSION_PREFIX.'session'); |
|
| 18 | 18 | |
| 19 | 19 | $requestFatory = new Nette\Http\RequestFactory; |
| 20 | 20 | $httpRequest = $requestFatory->createHttpRequest(); |
@@ -28,23 +28,23 @@ discard block |
||
| 28 | 28 | * Enabling Debugger |
| 29 | 29 | */ |
| 30 | 30 | //$configurator->setDebugMode(TRUE); |
| 31 | -$configurator->enableDebugger(__DIR__ . '/../temp/log', '[email protected]'); |
|
| 32 | -$configurator->setTempDirectory(__DIR__ . '/../temp'); |
|
| 31 | +$configurator->enableDebugger(__DIR__.'/../temp/log', '[email protected]'); |
|
| 32 | +$configurator->setTempDirectory(__DIR__.'/../temp'); |
|
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * Autoloading |
| 36 | 36 | */ |
| 37 | 37 | $configurator->createRobotLoader() |
| 38 | 38 | ->addDirectory(__DIR__) |
| 39 | - ->addDirectory(__DIR__ . '/../inc') |
|
| 39 | + ->addDirectory(__DIR__.'/../inc') |
|
| 40 | 40 | ->register(); |
| 41 | 41 | |
| 42 | -if ($configurator->isDebugMode()) { |
|
| 43 | - $configurator->addConfig(__DIR__ . '/config/config.development.neon'); |
|
| 42 | +if($configurator->isDebugMode()) { |
|
| 43 | + $configurator->addConfig(__DIR__.'/config/config.development.neon'); |
|
| 44 | 44 | } else { |
| 45 | - $configurator->addConfig(__DIR__ . '/config/config.production.neon'); |
|
| 45 | + $configurator->addConfig(__DIR__.'/config/config.production.neon'); |
|
| 46 | 46 | } |
| 47 | -$configurator->addConfig(__DIR__ . '/config/config.local.neon'); |
|
| 47 | +$configurator->addConfig(__DIR__.'/config/config.local.neon'); |
|
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | 50 | * DI Container and Session |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | $parameters = $container->getParameters(); |
| 57 | 57 | |
| 58 | 58 | define('ROOT_DIR', $parameters['wwwDir']); |
| 59 | -define('HTTP_DIR', '//'.$_SERVER['HTTP_HOST'] . '/'); |
|
| 59 | +define('HTTP_DIR', '//'.$_SERVER['HTTP_HOST'].'/'); |
|
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | 62 | * Application's definitions |
@@ -65,24 +65,24 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | |
| 67 | 67 | /* System Directories */ |
| 68 | -define('PRJ_DIR', HTTP_DIR . 'srazvs/'); |
|
| 69 | -define('INC_DIR', ROOT_DIR . '/inc/'); |
|
| 70 | -define('IMG_DIR', PRJ_DIR . 'www/images/'); |
|
| 71 | -define('CSS_DIR', PRJ_DIR . 'www/css/'); |
|
| 72 | -define('JS_DIR', PRJ_DIR . 'www/js/'); |
|
| 68 | +define('PRJ_DIR', HTTP_DIR.'srazvs/'); |
|
| 69 | +define('INC_DIR', ROOT_DIR.'/inc/'); |
|
| 70 | +define('IMG_DIR', PRJ_DIR.'www/images/'); |
|
| 71 | +define('CSS_DIR', PRJ_DIR.'www/css/'); |
|
| 72 | +define('JS_DIR', PRJ_DIR.'www/js/'); |
|
| 73 | 73 | |
| 74 | 74 | /* Application */ |
| 75 | -define('TEMPLATE_DIR', $parameters['appDir'] . '/templates/'); |
|
| 76 | -define('TPL_DIR', TEMPLATE_DIR); |
|
| 75 | +define('TEMPLATE_DIR', $parameters['appDir'].'/templates/'); |
|
| 76 | +define('TPL_DIR', TEMPLATE_DIR); |
|
| 77 | 77 | |
| 78 | 78 | /* URLs */ |
| 79 | -define('BLOCK_DIR', PRJ_DIR.'block'); |
|
| 80 | -define('PROG_DIR', PRJ_DIR.'program'); |
|
| 81 | -define('MEET_DIR', PRJ_DIR.'meeting'); |
|
| 82 | -define('VISIT_DIR', PRJ_DIR.'visitor'); |
|
| 83 | -define('CAT_DIR', PRJ_DIR.'category'); |
|
| 84 | -define('EXP_DIR', PRJ_DIR.'export'); |
|
| 85 | -define('SET_DIR', PRJ_DIR.'settings'); |
|
| 79 | +define('BLOCK_DIR', PRJ_DIR.'block'); |
|
| 80 | +define('PROG_DIR', PRJ_DIR.'program'); |
|
| 81 | +define('MEET_DIR', PRJ_DIR.'meeting'); |
|
| 82 | +define('VISIT_DIR', PRJ_DIR.'visitor'); |
|
| 83 | +define('CAT_DIR', PRJ_DIR.'category'); |
|
| 84 | +define('EXP_DIR', PRJ_DIR.'export'); |
|
| 85 | +define('SET_DIR', PRJ_DIR.'settings'); |
|
| 86 | 86 | |
| 87 | 87 | /** |
| 88 | 88 | * Connecting to Database |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | die; |
| 110 | 110 | } |
| 111 | 111 | |
| 112 | -$target = $parameters['appDir'] . '/presenters/' . $controllerName . 'Presenter.php'; |
|
| 112 | +$target = $parameters['appDir'].'/presenters/'.$controllerName.'Presenter.php'; |
|
| 113 | 113 | $container->parameters['router'] = $appRequest; |
| 114 | 114 | |
| 115 | 115 | $publicPages = [ |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | if(file_exists($target)) { |
| 134 | 134 | // access control |
| 135 | 135 | if(array_search($controllerName.'.'.$action, $publicPages) === false) { |
| 136 | - include_once(INC_DIR . 'access.inc.php'); |
|
| 136 | + include_once(INC_DIR.'access.inc.php'); |
|
| 137 | 137 | } |
| 138 | 138 | } |
| 139 | 139 | |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | |
| 88 | 88 | $html_select = "<select style='width: 300px; font-size: 10px' name='block'>\n"; |
| 89 | 89 | |
| 90 | - foreach($result as $data){ |
|
| 90 | + foreach($result as $data) { |
|
| 91 | 91 | if($data['id'] == $blockId) $selected = "selected"; |
| 92 | 92 | else $selected = ""; |
| 93 | 93 | $html_select .= "<option ".$selected." value='".$data['id']."'>".$data['day'].", ".$data->from->format('%H:%I:%S')." - ".$data->to->format('%H:%I:%S')." : ".$data['name']."</option>\n"; |
@@ -88,8 +88,11 @@ |
||
| 88 | 88 | $html_select = "<select style='width: 300px; font-size: 10px' name='block'>\n"; |
| 89 | 89 | |
| 90 | 90 | foreach($result as $data){ |
| 91 | - if($data['id'] == $blockId) $selected = "selected"; |
|
| 92 | - else $selected = ""; |
|
| 91 | + if($data['id'] == $blockId) { |
|
| 92 | + $selected = "selected"; |
|
| 93 | + } else { |
|
| 94 | + $selected = ""; |
|
| 95 | + } |
|
| 93 | 96 | $html_select .= "<option ".$selected." value='".$data['id']."'>".$data['day'].", ".$data->from->format('%H:%I:%S')." - ".$data->to->format('%H:%I:%S')." : ".$data['name']."</option>\n"; |
| 94 | 97 | } |
| 95 | 98 | $html_select .= "</select>\n"; |
@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | * @return void |
| 9 | 9 | */ |
| 10 | 10 | function dd() { |
| 11 | - array_map(function ($x){ |
|
| 11 | + array_map(function($x) { |
|
| 12 | 12 | (\Tracy\Debugger::dump($x)); |
| 13 | 13 | }, func_get_args()); |
| 14 | 14 | |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | * @return string |
| 24 | 24 | */ |
| 25 | 25 | function appVersion() { |
| 26 | - $packagePath = realpath(__DIR__ . '/../package.json'); |
|
| 26 | + $packagePath = realpath(__DIR__.'/../package.json'); |
|
| 27 | 27 | $package = json_decode(file_get_contents($packagePath)); |
| 28 | 28 | |
| 29 | 29 | return $package->version; |
@@ -7,7 +7,8 @@ discard block |
||
| 7 | 7 | * @param mixed |
| 8 | 8 | * @return void |
| 9 | 9 | */ |
| 10 | - function dd() { |
|
| 10 | + function dd() |
|
| 11 | + { |
|
| 11 | 12 | array_map(function ($x){ |
| 12 | 13 | (\Tracy\Debugger::dump($x)); |
| 13 | 14 | }, func_get_args()); |
@@ -22,7 +23,8 @@ discard block |
||
| 22 | 23 | * |
| 23 | 24 | * @return string |
| 24 | 25 | */ |
| 25 | - function appVersion() { |
|
| 26 | + function appVersion() |
|
| 27 | + { |
|
| 26 | 28 | $packagePath = realpath(__DIR__ . '/../package.json'); |
| 27 | 29 | $package = json_decode(file_get_contents($packagePath)); |
| 28 | 30 | |