Example #1
0
     *
     * This method SHOULD be last
     */
    public function funcWithGaps()
    {
        $this->func();
        /**
         * In end added gap
         * This method should be last
         */
        $this->func();
        //double gap above
        $this->func();
        if (1 == 1) {
            //one gap after bracket
            $a = 1;
            //gap below
        }
        $a = array('gap above and below');
        //gap below
    }
}
try {
    $shell = new stdClass();
    $shell->run();
} catch (My_Exception $e) {
    echo 'ERROR: ' . $e->getMessage() . PHP_EOL;
} catch (Exception $e) {
    echo $e . PHP_EOL;
}
$switch = $this->getRequest()->getGetParam('switch');
Example #2
0
 /**
  * Get Response.
  * 
  * @param  array $input Input (e.g: [0, 0, 0, 0, 0, 0, 0, 0, 0]).
  * @return array
  */
 public function getResponse(array $input)
 {
     $output = $this->neuralNetwork->run($input);
     return $output;
 }